From 0b4456cf7e41b208736bc6f98addeca42ab2895b Mon Sep 17 00:00:00 2001 From: Kacper Kostka Date: Sat, 4 Feb 2023 16:17:05 +0100 Subject: [PATCH] cool craftings --- mods/amogus_blocks/init.lua | 18 +++++++++++- mods/amogus_blocks/textures/iron_ore.png | Bin 0 -> 338 bytes mods/amogus_craftings/init.lua | 33 ++++++++++++++++++++++ mods/amogus_general/init.lua | 10 +++---- mods/amogus_generator/init.lua | 10 +++++++ mods/amogus_items/init.lua | 6 +++- mods/amogus_items/textures/iron_ingot.png | Bin 0 -> 259 bytes mods/player_api/init.lua | 2 +- 8 files changed, 71 insertions(+), 8 deletions(-) create mode 100644 mods/amogus_blocks/textures/iron_ore.png create mode 100644 mods/amogus_items/textures/iron_ingot.png diff --git a/mods/amogus_blocks/init.lua b/mods/amogus_blocks/init.lua index dce84cb..f39d73e 100644 --- a/mods/amogus_blocks/init.lua +++ b/mods/amogus_blocks/init.lua @@ -25,7 +25,15 @@ minetest.register_node("amogus_blocks:tv", { "crt.png" }, paramtype2 = "facedir", - drop = 'amogus_blocks:amogus_blocks', groups = {stone=3}, + drop = { -- amogus_items:capacitor amogus_items:pcb + -- drop two items + max_items = 2, + items = { + {items = {'amogus_items:capacitor'}, rarity = 1}, + {items = {'amogus_items:pcb'}, rarity = 1}, + + }, + }, groups = {stone=3}, }) minetest.register_node("amogus_blocks:bricks", { @@ -376,6 +384,14 @@ minetest.register_node("amogus_blocks:sussium_ore", { --sounds = default.node_sound_stone_defaults(), }) +minetest.register_node("amogus_blocks:iron_ore", { + description = "Iron Ore", + tiles = {"iron_ore.png"}, + groups = {stone = 3}, + drop = 'amogus_items:iron_ingot', + --sounds = default.node_sound_stone_defaults(), +}) + local loot = { "amogus_items:amogus", "amogus_items:sprite", diff --git a/mods/amogus_blocks/textures/iron_ore.png b/mods/amogus_blocks/textures/iron_ore.png new file mode 100644 index 0000000000000000000000000000000000000000..6ad7a3eb8fb31de00757b2c9102a7741b9e8765c GIT binary patch literal 338 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sDEfH31!Z9ZwB;B!wG#}EturNNebOolu$0{0g8biFMGmIBPlob?1u8|AgsYIGk=I^?`kd z{rxS|4^I<|cYA-FWtuC~TLZnW+6Yb4 feU7J}$AsE{`de1>!PQ|4(8~;-u6{1-oD!MPx#y-7qtR5(xFlOYa-Fc3vQ8dFyRuBqVwCD?k7gR89L8k_)<-T?#`;072f@ZA)# z$p*rft=pQK`7iTk+60j&iOl0)0pmEjvMhu2PDOp+J4z{j26SELwrztD;=Q0d*kuPk zxvnereMePQnCBVB7!1R3s=xH~8q+j^F$O}&(MeGhu-2Z`ZU?25avqSTDWsIgo#**S z<||-X7I4myWf|(aeg^O=ZQG)08h9nGb=VA^{Ewi=atDkCyZ}+tJ`wfewRHdh002ov JPDHLkV1hihYL5T_ literal 0 HcmV?d00001 diff --git a/mods/player_api/init.lua b/mods/player_api/init.lua index 99e3135..a32ca1f 100644 --- a/mods/player_api/init.lua +++ b/mods/player_api/init.lua @@ -22,7 +22,7 @@ player_api.register_model("amogus_entity.obj", { collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3}, visual = "mesh", - visual_size = {x=10, y=10, z=10}, + visual_size = {x=15, y=15, z=15}, })