From be1427205e8c857555bd7cb4684ae286263b32e7 Mon Sep 17 00:00:00 2001 From: TheRandomLegoBrick Date: Wed, 6 Jul 2022 13:14:29 -0700 Subject: [PATCH] Move progress to separate mod and add packed mud --- mods/ITEMS/mcl_core/nodes_base.lua | 13 ------- mods/ITEMS/mcl_mud/init.lua | 34 ++++++++++++++++++ mods/ITEMS/mcl_mud/mod.conf | 2 ++ .../textures/mcl_mud.png} | Bin .../mcl_mud/textures/mcl_mud_packed_mud.png | Bin 0 -> 354 bytes mods/ITEMS/mcl_potions/init.lua | 12 +++---- 6 files changed, 42 insertions(+), 19 deletions(-) create mode 100644 mods/ITEMS/mcl_mud/init.lua create mode 100644 mods/ITEMS/mcl_mud/mod.conf rename mods/ITEMS/{mcl_core/textures/mcl_core_mud.png => mcl_mud/textures/mcl_mud.png} (100%) create mode 100644 mods/ITEMS/mcl_mud/textures/mcl_mud_packed_mud.png diff --git a/mods/ITEMS/mcl_core/nodes_base.lua b/mods/ITEMS/mcl_core/nodes_base.lua index 58c6902bf..957b1f24a 100644 --- a/mods/ITEMS/mcl_core/nodes_base.lua +++ b/mods/ITEMS/mcl_core/nodes_base.lua @@ -457,19 +457,6 @@ minetest.register_node("mcl_core:podzol", { }) mcl_core.register_snowed_node("mcl_core:podzol_snow", "mcl_core:podzol", nil, nil, false, S("Podzol with Snow")) -minetest.register_node("mcl_core:mud", { - description = S("Mud"), - _doc_items_longdesc = S("Mud is a decorative block that generates in mangrove swamps. Mud can also be obtained by using water bottles on dirt or coarse dirt."), - _doc_items_hidden = false, - tiles = {"mcl_core_mud.png"}, - is_ground_content = true, - stack_max = 64, - groups = {handy=1,shovely=1, enderman_takable=1, building_block=1}, - sounds = mcl_sounds.node_sound_dirt_defaults(), - _mcl_blast_resistance = 0.5, - _mcl_hardness = 0.5, -}) - minetest.register_node("mcl_core:dirt", { description = S("Dirt"), _doc_items_longdesc = S("Dirt acts as a soil for a few plants. When in light, this block may grow a grass or mycelium cover if such blocks are nearby."), diff --git a/mods/ITEMS/mcl_mud/init.lua b/mods/ITEMS/mcl_mud/init.lua new file mode 100644 index 000000000..00ca8b715 --- /dev/null +++ b/mods/ITEMS/mcl_mud/init.lua @@ -0,0 +1,34 @@ +local S = minetest.get_translator(minetest.get_current_modname()) + +minetest.register_node("mcl_mud:mud", { + description = S("Mud"), + _doc_items_longdesc = S("Mud is a decorative block that generates in mangrove swamps. Mud can also be obtained by using water bottles on dirt or coarse dirt."), + _doc_items_hidden = false, + tiles = {"mcl_mud.png"}, + is_ground_content = true, + stack_max = 64, + groups = {handy=1,shovely=1, enderman_takable=1, building_block=1}, + _mcl_blast_resistance = 0.5, + _mcl_hardness = 0.5, +}) + +minetest.register_node("mcl_mud:packed_mud", { + description = S("Packed Mud"), + _doc_items_longdesc = S("Packed mud is a decorative block used to craft mud bricks."), + _doc_items_hidden = false, + tiles = {"mcl_mud_packed_mud.png"}, + is_ground_content = true, + stack_max = 64, + groups = {handy=1,shovely=1, enderman_takable=1, building_block=1}, + _mcl_blast_resistance = 0.5, + _mcl_hardness = 0.5, +}) + +minetest.register_craft({ + type = "shapeless", + output = "mcl_mud:packed_mud", + recipe = { + "mcl_mud:mud", + "mcl_farming:wheat_item", + } +}) \ No newline at end of file diff --git a/mods/ITEMS/mcl_mud/mod.conf b/mods/ITEMS/mcl_mud/mod.conf new file mode 100644 index 000000000..44d96b06b --- /dev/null +++ b/mods/ITEMS/mcl_mud/mod.conf @@ -0,0 +1,2 @@ +author = TheRandomLegoBrick +description = Adds various mud blocks. \ No newline at end of file diff --git a/mods/ITEMS/mcl_core/textures/mcl_core_mud.png b/mods/ITEMS/mcl_mud/textures/mcl_mud.png similarity index 100% rename from mods/ITEMS/mcl_core/textures/mcl_core_mud.png rename to mods/ITEMS/mcl_mud/textures/mcl_mud.png diff --git a/mods/ITEMS/mcl_mud/textures/mcl_mud_packed_mud.png b/mods/ITEMS/mcl_mud/textures/mcl_mud_packed_mud.png new file mode 100644 index 0000000000000000000000000000000000000000..fd8624b3e75f7a744b4f20f6ecf880a28fd1b228 GIT binary patch literal 354 zcmV-o0iFJdP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0QX5mK~y+TMUlG> zfOakU_13qHYE_)Qj;{(mee3?am`dxqgAY-a9b_QB=zehnSJjd;N-4{-z^W1M8#Juzs;xK`ibfO20=N$=9@;YiWlbT72?Fr7R@S(K zGXyPpdEj7R8+X|E9f5=DNRW3H1|;e@5)`tv4r@sm2T`{GvS^m$mTmh3@{p`WtN3=P zrFEWX)^H5N89>fcfxG~Gsub}`ntV9etaB^K2=D;}Ry7Z1?Vc3cDB80^`R9?LXtS86 z$&7A1@vIb%7 literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_potions/init.lua b/mods/ITEMS/mcl_potions/init.lua index 8551442be..d36ed391e 100644 --- a/mods/ITEMS/mcl_potions/init.lua +++ b/mods/ITEMS/mcl_potions/init.lua @@ -222,7 +222,7 @@ minetest.register_craftitem("mcl_potions:water", { end -- convert to mud - minetest.set_node(pointed_thing.under, {name="mcl_core:mud"}) + minetest.set_node(pointed_thing.under, {name="mcl_mud:mud"}) minetest.sound_play("mcl_potions_bottle_pour", {pos=pointed_thing.under, gain=0.5, max_hear_range=16}, true) if minetest.is_creative_enabled(placer:get_player_name()) then return itemstack @@ -238,10 +238,10 @@ minetest.register_craftitem("mcl_potions:water", { _on_dispense = function(stack, pos, droppos) local node = minetest.get_node(droppos) if node.name == "mcl_core:dirt" or node.name == "mcl_core:coarse_dirt" then - minetest.set_node(droppos, {name = "mcl_core:mud"}) + minetest.set_node(droppos, {name = "mcl_mud:mud"}) minetest.sound_play("mcl_potions_bottle_pour", {pos=droppos, gain=0.5, max_hear_range=16}, true) return ItemStack("mcl_potions:glass_bottle") - elseif node.name == "mcl_core:mud" then + elseif node.name == "mcl_mud:mud" then return stack end end, @@ -295,7 +295,7 @@ minetest.register_craftitem("mcl_potions:river_water", { end -- convert to mud - minetest.set_node(pointed_thing.under, {name="mcl_core:mud"}) + minetest.set_node(pointed_thing.under, {name="mcl_mud:mud"}) minetest.sound_play("mcl_potions_bottle_pour", {pos=pointed_thing.under, gain=0.5, max_hear_range=16}, true) if minetest.is_creative_enabled(placer:get_player_name()) then return itemstack @@ -311,10 +311,10 @@ minetest.register_craftitem("mcl_potions:river_water", { _on_dispense = function(stack, pos, droppos) local node = minetest.get_node(droppos) if node.name == "mcl_core:dirt" or node.name == "mcl_core:coarse_dirt" then - minetest.set_node(droppos, {name = "mcl_core:mud"}) + minetest.set_node(droppos, {name = "mcl_mud:mud"}) minetest.sound_play("mcl_potions_bottle_pour", {pos=droppos, gain=0.5, max_hear_range=16}, true) return ItemStack("mcl_potions:glass_bottle") - elseif node.name == "mcl_core:mud" then + elseif node.name == "mcl_mud:mud" then return stack end end,