From 24ab7ff8254b7eb7688bded408fbe0927f01536b Mon Sep 17 00:00:00 2001 From: TheRandomLegoBrick Date: Wed, 6 Jul 2022 11:33:25 -0700 Subject: [PATCH 01/12] Add mud block --- mods/ITEMS/mcl_core/nodes_base.lua | 13 ++++++ mods/ITEMS/mcl_core/textures/mcl_core_mud.png | Bin 0 -> 509 bytes mods/ITEMS/mcl_potions/init.lua | 37 ++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 mods/ITEMS/mcl_core/textures/mcl_core_mud.png diff --git a/mods/ITEMS/mcl_core/nodes_base.lua b/mods/ITEMS/mcl_core/nodes_base.lua index 957b1f24ae..f25794bd1a 100644 --- a/mods/ITEMS/mcl_core/nodes_base.lua +++ b/mods/ITEMS/mcl_core/nodes_base.lua @@ -457,6 +457,19 @@ 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 found in mangrove swamps. Mud can be obtained by using a watter bottle on a dirt or coarse dirt block."), + _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_core/textures/mcl_core_mud.png b/mods/ITEMS/mcl_core/textures/mcl_core_mud.png new file mode 100644 index 0000000000000000000000000000000000000000..060b8792aaa91e118ffdb8acf9ca152b2534a0c1 GIT binary patch literal 509 zcmVPx#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0g_2XK~y+TO_6C* z!!Qhm6K_en(GCM#gy9eOzYer%v)W1dWEBRDiy0B6zvTd5ic{hyH zIF1~xG3>_L;QcsFa+qUms_JmqTjz-UkA7HLZt6M&k85H|P#SCIIqK`J>tl>o4SLWS z@O{3>1>DZrloleFWg!5CAP)N-J_+}`9RNiGFreU`W-$=lDgsp;@l#5?axd`&K&;#f zg?Q7{pvmLC@B4ljhA9VQB8eZ|DyA$8pkL<;zA;Ao=Dgo-H^;*sUo!APtQnP2z_u-k6C;n6fBU3Y?3qX#Hy+iOX>vIITNk(~66oNyVfj||>9k3?&D6LHzbX=Wgb zUUO2TGVlq|kugUtfSu6_>o59rd@`Vg>V9Wy>e^WgpYZ1-z}UG_G;|DDT0|e9Kez3z z>!9Qr3UCjpF#we1WPe*8^biTa*M-z-NI&o>QMN#|!?2Ji|P6OQe00000NkvXXu0mjf(cj)} literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_potions/init.lua b/mods/ITEMS/mcl_potions/init.lua index 5b9f1fab35..1740f7f8d2 100644 --- a/mods/ITEMS/mcl_potions/init.lua +++ b/mods/ITEMS/mcl_potions/init.lua @@ -214,6 +214,25 @@ minetest.register_craftitem("mcl_potions:water", { else return "mcl_potions:glass_bottle" end + + -- convert dirt to mud + elseif node.name == "mcl_core:dirt" or node.name == "mcl_core:coarse_dirt" then + + local pname = placer:get_player_name() + if minetest.is_protected(pointed_thing.under, pname) then + minetest.record_protection_violation(pointed_thing.under, pname) + return itemstack + end + + -- set the node to mud + minetest.set_node(pointed_thing.under, {name="mcl_core: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 + else + return "mcl_potions:glass_bottle" + end end end @@ -256,6 +275,24 @@ minetest.register_craftitem("mcl_potions:river_water", { -- Increase water level of cauldron by 1 minetest.set_node(pointed_thing.under, {name=cauldron}) 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 + else + return "mcl_potions:glass_bottle" + end + -- convert dirt to mud + elseif node.name == "mcl_core:dirt" or node.name == "mcl_core:coarse_dirt" then + + local pname = placer:get_player_name() + if minetest.is_protected(pointed_thing.under, pname) then + minetest.record_protection_violation(pointed_thing.under, pname) + return itemstack + end + + -- set the node to mud + minetest.set_node(pointed_thing.under, {name="mcl_core: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 else From 973dc7fa418576f27f93f8ccf338c11855c0d626 Mon Sep 17 00:00:00 2001 From: TheRandomLegoBrick Date: Wed, 6 Jul 2022 12:14:21 -0700 Subject: [PATCH 02/12] Add mud --- mods/ITEMS/mcl_core/nodes_base.lua | 4 ++-- mods/ITEMS/mcl_core/textures/mcl_core_mud.png | Bin 509 -> 483 bytes mods/ITEMS/mcl_potions/init.lua | 11 ++--------- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/mods/ITEMS/mcl_core/nodes_base.lua b/mods/ITEMS/mcl_core/nodes_base.lua index f25794bd1a..58c6902bf1 100644 --- a/mods/ITEMS/mcl_core/nodes_base.lua +++ b/mods/ITEMS/mcl_core/nodes_base.lua @@ -459,12 +459,12 @@ mcl_core.register_snowed_node("mcl_core:podzol_snow", "mcl_core:podzol", nil, ni minetest.register_node("mcl_core:mud", { description = S("Mud"), - _doc_items_longdesc = S("Mud is a decorative block found in mangrove swamps. Mud can be obtained by using a watter bottle on a dirt or coarse dirt block."), + _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}, + 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, diff --git a/mods/ITEMS/mcl_core/textures/mcl_core_mud.png b/mods/ITEMS/mcl_core/textures/mcl_core_mud.png index 060b8792aaa91e118ffdb8acf9ca152b2534a0c1..4952255ec168ad6395deafeb72caddbef7e6f356 100644 GIT binary patch delta 407 zcmV;I0cigH1LFgbR)2U&L_t(IPeqY!Pr@)1g-6%H%23d#pd`ll*@T3|5B~qZV_<{T z@v?%?c4ED0ntSd!_pKd#eXb`(VXZBzD(P)Dow|I4b3C0k+j2AR6WU#`2{%%bQEMt#B4xEBvfJ$qm|j_Co5PX5 zNGT&VH%A+5D`2`_ePq_+ZOh8#Ib2=)+WQcK%CnNTLenihe|!L=0MG%0kkqCrj-=!x zpub^1LIU`3NPju_jLJNEP!0mdHvDnilJb&bMD#`RL%P>*n*WcB1XAV4pnML6jG}r0 zIJ${bkO-o#%-`7Qaxn)m2w$$RVCtugGz+Ti^-O>&rHY^v&T*jwj_{EvQE zS#Ih&1dnTCN>CbW<~i!?t?OfqRtpG$UPif>xskC~4bkNxHHG zJQ bMN#|!?2Ji|P6OQe00000NkvXXu0mjfb*#|v diff --git a/mods/ITEMS/mcl_potions/init.lua b/mods/ITEMS/mcl_potions/init.lua index 1740f7f8d2..4d7d76687a 100644 --- a/mods/ITEMS/mcl_potions/init.lua +++ b/mods/ITEMS/mcl_potions/init.lua @@ -214,20 +214,16 @@ minetest.register_craftitem("mcl_potions:water", { else return "mcl_potions:glass_bottle" end - - -- convert dirt to mud elseif node.name == "mcl_core:dirt" or node.name == "mcl_core:coarse_dirt" then - local pname = placer:get_player_name() if minetest.is_protected(pointed_thing.under, pname) then minetest.record_protection_violation(pointed_thing.under, pname) return itemstack end - -- set the node to mud + -- convert to mud minetest.set_node(pointed_thing.under, {name="mcl_core: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 else @@ -280,19 +276,16 @@ minetest.register_craftitem("mcl_potions:river_water", { else return "mcl_potions:glass_bottle" end - -- convert dirt to mud elseif node.name == "mcl_core:dirt" or node.name == "mcl_core:coarse_dirt" then - local pname = placer:get_player_name() if minetest.is_protected(pointed_thing.under, pname) then minetest.record_protection_violation(pointed_thing.under, pname) return itemstack end - -- set the node to mud + -- convert to mud minetest.set_node(pointed_thing.under, {name="mcl_core: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 else From 0142b58edc3d9335abad936e131f48becef87968 Mon Sep 17 00:00:00 2001 From: TheRandomLegoBrick Date: Wed, 6 Jul 2022 12:43:54 -0700 Subject: [PATCH 03/12] Allow dispensers to convert dirt to mud --- mods/ITEMS/mcl_potions/init.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/mods/ITEMS/mcl_potions/init.lua b/mods/ITEMS/mcl_potions/init.lua index 4d7d76687a..8551442bed 100644 --- a/mods/ITEMS/mcl_potions/init.lua +++ b/mods/ITEMS/mcl_potions/init.lua @@ -235,6 +235,17 @@ minetest.register_craftitem("mcl_potions:water", { -- Drink the water by default return minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, placer, pointed_thing) end, + _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.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 + return stack + end + end, + _dispense_into_walkable = true, on_secondary_use = minetest.item_eat(0, "mcl_potions:glass_bottle"), }) @@ -297,6 +308,17 @@ minetest.register_craftitem("mcl_potions:river_water", { -- Drink the water by default return minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, placer, pointed_thing) end, + _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.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 + return stack + end + end, + _dispense_into_walkable = true, on_secondary_use = minetest.item_eat(0, "mcl_potions:glass_bottle"), }) From be1427205e8c857555bd7cb4684ae286263b32e7 Mon Sep 17 00:00:00 2001 From: TheRandomLegoBrick Date: Wed, 6 Jul 2022 13:14:29 -0700 Subject: [PATCH 04/12] 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 58c6902bf1..957b1f24ae 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 0000000000..00ca8b715d --- /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 0000000000..44d96b06b9 --- /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 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1quc!S9|fjv*HQt`m3jH8}{l7H(BY;kG*%@xxba z+P``o4IafKo2%O%s^z4;Oa6B7>E}9L+5LSRm2XG4uMG+m2(p#CvCUUA`TFz6eB2AX zG*53juuAZqw8@&+tJYeGcDV_kVA{d2EqBY9A=Ov0gOlmQ*05_knvGd>D=Qx)BuJOv z_%7Sn{K{iOxfq+uD+?i!O Date: Wed, 6 Jul 2022 20:27:13 -0700 Subject: [PATCH 05/12] Fix hardness and blast resistance for packed mud --- mods/ITEMS/mcl_mud/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/ITEMS/mcl_mud/init.lua b/mods/ITEMS/mcl_mud/init.lua index 00ca8b715d..b6895c744e 100644 --- a/mods/ITEMS/mcl_mud/init.lua +++ b/mods/ITEMS/mcl_mud/init.lua @@ -19,9 +19,9 @@ minetest.register_node("mcl_mud:packed_mud", { 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, + groups = {handy=1, pickaxey=1, enderman_takable=1, building_block=1}, + _mcl_blast_resistance = 3, + _mcl_hardness = 1, }) minetest.register_craft({ From 4f1960d6ef283601d265efe5e2944986a9dd926a Mon Sep 17 00:00:00 2001 From: TheRandomLegoBrick Date: Thu, 7 Jul 2022 08:29:32 -0700 Subject: [PATCH 06/12] Fix mod.conf --- mods/ITEMS/mcl_mud/mod.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ITEMS/mcl_mud/mod.conf b/mods/ITEMS/mcl_mud/mod.conf index 44d96b06b9..f4cdb505ac 100644 --- a/mods/ITEMS/mcl_mud/mod.conf +++ b/mods/ITEMS/mcl_mud/mod.conf @@ -1,2 +1,3 @@ +name = mcl_mud author = TheRandomLegoBrick description = Adds various mud blocks. \ No newline at end of file From f3dd3e92fa12e69b499bee9ed97456222d2357a8 Mon Sep 17 00:00:00 2001 From: TheRandomLegoBrick Date: Thu, 7 Jul 2022 11:54:36 -0700 Subject: [PATCH 07/12] Add various mud brick blocks --- mods/ITEMS/mcl_mud/init.lua | 30 ++++++++++++++++-- .../ITEMS/mcl_mud/textures/mcl_mud_bricks.png | Bin 0 -> 438 bytes mods/ITEMS/mcl_stairs/mod.conf | 2 +- mods/ITEMS/mcl_stairs/register.lua | 2 ++ mods/ITEMS/mcl_walls/mod.conf | 2 +- mods/ITEMS/mcl_walls/register.lua | 1 + 6 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 mods/ITEMS/mcl_mud/textures/mcl_mud_bricks.png diff --git a/mods/ITEMS/mcl_mud/init.lua b/mods/ITEMS/mcl_mud/init.lua index b6895c744e..787655a561 100644 --- a/mods/ITEMS/mcl_mud/init.lua +++ b/mods/ITEMS/mcl_mud/init.lua @@ -6,10 +6,15 @@ minetest.register_node("mcl_mud:mud", { _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, + collision_box = { + type = "fixed", + fixed = { + {-8 / 16, -8 / 16, -8 / 16, 8 / 16, 7 / 16, 8 / 16}, + }, + }, }) minetest.register_node("mcl_mud:packed_mud", { @@ -17,13 +22,22 @@ minetest.register_node("mcl_mud: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, pickaxey=1, enderman_takable=1, building_block=1}, _mcl_blast_resistance = 3, _mcl_hardness = 1, }) +minetest.register_node("mcl_mud:mud_bricks", { + description = S("Mud Bricks"), + _doc_items_longdesc = S("Decorative block crafted from packed mud."), + _doc_items_hidden = false, + tiles = {"mcl_mud_bricks.png"}, + groups = {handy=1, pickaxey=1, building_block=1}, + _mcl_blast_resistance = 3, + _mcl_hardness = 1.5, +}) + +-- packed mud minetest.register_craft({ type = "shapeless", output = "mcl_mud:packed_mud", @@ -31,4 +45,14 @@ minetest.register_craft({ "mcl_mud:mud", "mcl_farming:wheat_item", } +}) + +-- mud bricks +minetest.register_craft({ + type = "shaped", + output = "mcl_mud:mud_bricks 4", + recipe = { + {"mcl_mud:packed_mud", "mcl_mud:packed_mud"}, + {"mcl_mud:packed_mud", "mcl_mud:packed_mud"} + } }) \ No newline at end of file diff --git a/mods/ITEMS/mcl_mud/textures/mcl_mud_bricks.png b/mods/ITEMS/mcl_mud/textures/mcl_mud_bricks.png new file mode 100644 index 0000000000000000000000000000000000000000..8df3bacd4596e7c4d69ee2019f26d261bedcc53c GIT binary patch literal 438 zcmV;n0ZIOeP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0ZU0lK~y+Tb&<_Z z!!Qtp9sjgVp*_%7Kpc1oB#sCPaX_4S{~H_{njgnW`0TZ;s;HxpwO&s)_DuEp_NtUx ztsLure1HEO4tIHzpz8!ars z?zig)NWqq3n&u?SKzeFB22tlR<1#YRRgVAEn>Aa0B}am(nivP;2OGOa#{i^$93dU( z{U~a{)+`2@d3?AJAq?I}&SRLT;6vMX!{E_*@2$1eOT>((dU<~8+cuBcZlwUFSs~_0ru>g(z5byW#&Dsjxtbl2qUK$EG0 gAu6u8ehH=i0DYUz#p6Yi$^ZZW07*qoM6N<$f*-@aNdN!< literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_stairs/mod.conf b/mods/ITEMS/mcl_stairs/mod.conf index a357c2c791..2fb3180b20 100644 --- a/mods/ITEMS/mcl_stairs/mod.conf +++ b/mods/ITEMS/mcl_stairs/mod.conf @@ -1,2 +1,2 @@ name = mcl_stairs -depends = mcl_core, mcl_sounds, mcl_nether, mcl_end, mcl_ocean +depends = mcl_core, mcl_sounds, mcl_nether, mcl_end, mcl_ocean, mcl_mud diff --git a/mods/ITEMS/mcl_stairs/register.lua b/mods/ITEMS/mcl_stairs/register.lua index 5de3805850..eee4c5dc23 100644 --- a/mods/ITEMS/mcl_stairs/register.lua +++ b/mods/ITEMS/mcl_stairs/register.lua @@ -138,6 +138,8 @@ mcl_stairs.register_slab("purpur_block", "group:purpur_block", mcl_stairs.register_stair_and_slab_simple("prismarine", "mcl_ocean:prismarine", S("Prismarine Stairs"), S("Prismarine Slab"), S("Double Prismarine Slab")) +mcl_stairs.register_stair_and_slab_simple("mud_brick", "mcl_mud:mud_bricks", S("Mud Brick Stair"), S("Mud Brick Slab"), S("Double Mud Brick Slab")) + mcl_stairs.register_stair_and_slab_simple("prismarine_brick", "mcl_ocean:prismarine_brick", S("Prismarine Brick Stairs"), S("Prismarine Brick Slab"), S("Double Prismarine Brick Slab")) mcl_stairs.register_stair_and_slab_simple("prismarine_dark", "mcl_ocean:prismarine_dark", S("Dark Prismarine Stairs"), S("Dark Prismarine Slab"), S("Double Dark Prismarine Slab")) diff --git a/mods/ITEMS/mcl_walls/mod.conf b/mods/ITEMS/mcl_walls/mod.conf index 8839312de5..b6b2210078 100644 --- a/mods/ITEMS/mcl_walls/mod.conf +++ b/mods/ITEMS/mcl_walls/mod.conf @@ -1,3 +1,3 @@ name = mcl_walls -depends = mcl_core, mcl_end, mcl_ocean, mcl_nether, mcl_sounds +depends = mcl_core, mcl_end, mcl_ocean, mcl_nether, mcl_sounds, mcl_mud optional_depends = doc diff --git a/mods/ITEMS/mcl_walls/register.lua b/mods/ITEMS/mcl_walls/register.lua index 483af493ec..96a1b9b9f6 100644 --- a/mods/ITEMS/mcl_walls/register.lua +++ b/mods/ITEMS/mcl_walls/register.lua @@ -14,3 +14,4 @@ mcl_walls.register_wall("mcl_walls:prismarine", S("Prismarine Wall"), "mcl_ocean mcl_walls.register_wall("mcl_walls:endbricks", S("End Stone Brick Wall"), "mcl_end:end_bricks") mcl_walls.register_wall("mcl_walls:netherbrick", S("Nether Brick Wall"), "mcl_nether:nether_brick") mcl_walls.register_wall("mcl_walls:rednetherbrick", S("Red Nether Brick Wall"), "mcl_nether:red_nether_brick") +mcl_walls.register_wall("mcl_walls:mudbrick", S("Mud Brick Wall"), "mcl_mud:mud_bricks") \ No newline at end of file From 06f8688f2603a842531e71b10c4e5cab7fe44a3b Mon Sep 17 00:00:00 2001 From: TheRandomLegoBrick Date: Thu, 7 Jul 2022 15:16:43 -0700 Subject: [PATCH 08/12] Improve mud bricks and packed mud textures --- mods/ITEMS/mcl_mud/textures/mcl_mud_bricks.png | Bin 438 -> 465 bytes .../mcl_mud/textures/mcl_mud_packed_mud.png | Bin 354 -> 487 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/mods/ITEMS/mcl_mud/textures/mcl_mud_bricks.png b/mods/ITEMS/mcl_mud/textures/mcl_mud_bricks.png index 8df3bacd4596e7c4d69ee2019f26d261bedcc53c..c102118e7e099ae9f4f73fc6015f8344da780533 100644 GIT binary patch delta 388 zcmV-~0ek+o1JMJJR)1zmL_t(IPj!(!Ps2bAhA($%0z!NUgv10wh)Q(hk1(*avhxr4 zl?+G>Fd!C6AuY)zxeL$5*B}a5Z&QD~w$FBQdvmS+mxsrflcR%Z^kU8@r`FoGZR%h0 z_Ffe8YJYG0c{VMo(%S~6Zk-1oZEfpT;G7r4no8wf17YesOMg?Nz3)op0H!f97U{jf zk*LOiv964O4zt=yj8L9u;oDasO52dY9|iCNsCag=obMo1DXRt!X?juGs%`)Z7&!$* zk94KNSe+M6a&>tjUTbSnAz&DV62 zkSwPR+qBxVV{VBpv*M&JB}k(pQHqiu68I65I|S;o1A<>d5+xt}xI-lJo~3gD9@BIn i-eG0yE2sEwtJD{}p)Sg%uSyjF0000fz5 z8k!%+N%-uwtg5J^k+oh=Hug;Q`Sz-mTCE)Ge|&%c91eGRlc4JaW2~|j>n6du70eQ) z=of0|?9H}@`}&r(4+C0bG|ch@jzk%|$L_c52S~w|Vw&b8%YQ(6YC8r|=P~0lGSXF! z|J0i`TYe=+f~lGq2jd4DyGF+Vq<$PB9q9ciYQWYk2AO$$xDO!=-bc=3n5W=F+jhg? z(RuH!wbV<*jHY^de(KvckJ)ae0Hs+Vr`6ZTyX@rxP1EdlyKAukjr|bs_xr4iYigd` zU&7J6LtcDg3u3Rt&61K>f|D9gN&*)k4e?$KMM41`;!e_M8i1P@#Qg!Y94@y-pnG(xa| z`rowS%g$0FD{}0yJ)SmweR)pKr|G7)pRRU=p1~zub9qklGW!L8Ul#@r`~2>OCWNJB znl7=7AO^bL$4Zdy_;A0hYY3sPV(9b}E3?dX-E?=mXHMZZzyW&Gn9~dpbTci?m-LmT+l~sB2fC z3|T@LdLMUCB6Ds-K*KT-Ku$ggp74}nkYO5zgBi_G&@5FND4IcC za=(2vKv|bYIDcfVwEq=Jvma@4n`qGv7ggwJ@;FRfxPvnUEqQt1U|<_}*njsOfrIKukardaBhvpf&c&j From cbe0f80d68711cbcdfe4cf3853aba8c73180160a Mon Sep 17 00:00:00 2001 From: TheRandomLegoBrick Date: Thu, 7 Jul 2022 16:50:51 -0700 Subject: [PATCH 09/12] Move redundant water bottle code to functions --- mods/ITEMS/mcl_potions/init.lua | 190 +++++++++++++------------------- 1 file changed, 74 insertions(+), 116 deletions(-) diff --git a/mods/ITEMS/mcl_potions/init.lua b/mods/ITEMS/mcl_potions/init.lua index d36ed391ec..2ea7e2879c 100644 --- a/mods/ITEMS/mcl_potions/init.lua +++ b/mods/ITEMS/mcl_potions/init.lua @@ -176,6 +176,76 @@ local fill_cauldron = function(cauldron, water_type) end end +-- function to set node and empty water bottle (used for cauldrons and mud) +local function set_node_empty_bottle(itemstack, placer, pointed_thing, newitemstring) + local pname = placer:get_player_name() + if minetest.is_protected(pointed_thing.under, pname) then + minetest.record_protection_violation(pointed_thing.under, pname) + return itemstack + end + + -- set the node to `itemstring` + minetest.set_node(pointed_thing.under, {name=newitemstring}) + + -- play sound + 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 + else + return "mcl_potions:glass_bottle" + end +end + +-- used for water bottles and river water bottles +local function dispense_water_bottle(stack, pos, droppos) + local node = minetest.get_node(droppos) + if node.name == "mcl_core:dirt" or node.name == "mcl_core:coarse_dirt" then + -- convert dirt/coarse dirt to 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_mud:mud" then + -- dont dispense into mud + return stack + end +end + +-- on_place function for `mcl_potions:water` and `mcl_potions:river_water` + +local function water_bottle_on_place(itemstack, placer, pointed_thing) + if pointed_thing.type == "node" then + local node = minetest.get_node(pointed_thing.under) + local def = minetest.registered_nodes[node.name] + + -- Call on_rightclick if the pointed node defines it + if placer and not placer:get_player_control().sneak then + if def and def.on_rightclick then + return def.on_rightclick(pointed_thing.under, node, placer, itemstack) or itemstack + end + end + + local cauldron = nil + if itemstack:get_name() == "mcl_potions:water" then -- regular water + cauldron = fill_cauldron(node.name, "mcl_core:water_source") + elseif itemstack:get_name() == "mcl_potions:river_water" then -- river water + cauldron = fill_cauldron(node.name, "mclx_core:river_water_source") + end + + + if cauldron then + set_node_empty_bottle(itemstack, placer, pointed_thing, cauldron) + elseif node.name == "mcl_core:dirt" or node.name == "mcl_core:coarse_dirt" then + set_node_empty_bottle(itemstack, placer, pointed_thing, "mcl_mud:mud") + end + end + + -- Drink the water by default + return minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, placer, pointed_thing) +end + -- Itemstring of potions is “mcl_potions:” minetest.register_craftitem("mcl_potions:water", { @@ -187,64 +257,8 @@ minetest.register_craftitem("mcl_potions:water", { inventory_image = potion_image("#0022FF"), wield_image = potion_image("#0022FF"), groups = {brewitem=1, food=3, can_eat_when_full=1, water_bottle=1}, - on_place = function(itemstack, placer, pointed_thing) - if pointed_thing.type == "node" then - local node = minetest.get_node(pointed_thing.under) - local def = minetest.registered_nodes[node.name] - - -- Call on_rightclick if the pointed node defines it - if placer and not placer:get_player_control().sneak then - if def and def.on_rightclick then - return def.on_rightclick(pointed_thing.under, node, placer, itemstack) or itemstack - end - end - - local cauldron = fill_cauldron(node.name, "mcl_core:water_source") - if cauldron then - local pname = placer:get_player_name() - if minetest.is_protected(pointed_thing.under, pname) then - minetest.record_protection_violation(pointed_thing.under, pname) - return itemstack - end - -- Increase water level of cauldron by 1 - minetest.set_node(pointed_thing.under, {name=cauldron}) - 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 - else - return "mcl_potions:glass_bottle" - end - elseif node.name == "mcl_core:dirt" or node.name == "mcl_core:coarse_dirt" then - local pname = placer:get_player_name() - if minetest.is_protected(pointed_thing.under, pname) then - minetest.record_protection_violation(pointed_thing.under, pname) - return itemstack - end - - -- convert to 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 - else - return "mcl_potions:glass_bottle" - end - end - end - - -- Drink the water by default - return minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, placer, pointed_thing) - end, - _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_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_mud:mud" then - return stack - end - end, + on_place = water_bottle_on_place, + _on_dispense = dispense_water_bottle, _dispense_into_walkable = true, on_secondary_use = minetest.item_eat(0, "mcl_potions:glass_bottle"), }) @@ -260,64 +274,8 @@ minetest.register_craftitem("mcl_potions:river_water", { inventory_image = potion_image("#0044FF"), wield_image = potion_image("#0044FF"), groups = {brewitem=1, food=3, can_eat_when_full=1, water_bottle=1}, - on_place = function(itemstack, placer, pointed_thing) - if pointed_thing.type == "node" then - local node = minetest.get_node(pointed_thing.under) - local def = minetest.registered_nodes[node.name] - - -- Call on_rightclick if the pointed node defines it - if placer and not placer:get_player_control().sneak then - if def and def.on_rightclick then - return def.on_rightclick(pointed_thing.under, node, placer, itemstack) or itemstack - end - end - - local cauldron = fill_cauldron(node.name, "mclx_core:river_water_source") - if cauldron then - local pname = placer:get_player_name() - if minetest.is_protected(pointed_thing.under, pname) then - minetest.record_protection_violation(pointed_thing.under, pname) - return itemstack - end - -- Increase water level of cauldron by 1 - minetest.set_node(pointed_thing.under, {name=cauldron}) - 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 - else - return "mcl_potions:glass_bottle" - end - elseif node.name == "mcl_core:dirt" or node.name == "mcl_core:coarse_dirt" then - local pname = placer:get_player_name() - if minetest.is_protected(pointed_thing.under, pname) then - minetest.record_protection_violation(pointed_thing.under, pname) - return itemstack - end - - -- convert to 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 - else - return "mcl_potions:glass_bottle" - end - end - end - - -- Drink the water by default - return minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, placer, pointed_thing) - end, - _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_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_mud:mud" then - return stack - end - end, + on_place = water_bottle_on_place, + _on_dispense = dispense_water_bottle, _dispense_into_walkable = true, on_secondary_use = minetest.item_eat(0, "mcl_potions:glass_bottle"), From c26a9aded54dea2b33049cfacce146d7ee829880 Mon Sep 17 00:00:00 2001 From: TheRandomLegoBrick Date: Fri, 8 Jul 2022 09:18:42 -0700 Subject: [PATCH 10/12] Add mud sounds --- mods/ITEMS/mcl_mud/init.lua | 8 +++++++- mods/ITEMS/mcl_mud/mod.conf | 3 ++- mods/ITEMS/mcl_mud/sounds/mud_footsteps.ogg | Bin 0 -> 6071 bytes mods/ITEMS/mcl_mud/sounds/mud_place_dug.ogg | Bin 0 -> 5927 bytes 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 mods/ITEMS/mcl_mud/sounds/mud_footsteps.ogg create mode 100644 mods/ITEMS/mcl_mud/sounds/mud_place_dug.ogg diff --git a/mods/ITEMS/mcl_mud/init.lua b/mods/ITEMS/mcl_mud/init.lua index 787655a561..d1d1eb3303 100644 --- a/mods/ITEMS/mcl_mud/init.lua +++ b/mods/ITEMS/mcl_mud/init.lua @@ -6,6 +6,11 @@ minetest.register_node("mcl_mud:mud", { _doc_items_hidden = false, tiles = {"mcl_mud.png"}, is_ground_content = true, + sounds = { + footstep = {name="mud_footsteps", gain=1}, + dug = {name="mud_place_dug", gain=1}, + place = {name="mud_place_dug", gain=1}, + }, groups = {handy=1,shovely=1, enderman_takable=1, building_block=1}, _mcl_blast_resistance = 0.5, _mcl_hardness = 0.5, @@ -22,7 +27,8 @@ minetest.register_node("mcl_mud: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"}, - groups = {handy=1, pickaxey=1, enderman_takable=1, building_block=1}, + groups = {handy=1, pickaxey=1, building_block=1}, + sounds = mcl_sounds.node_sound_dirt_defaults(), _mcl_blast_resistance = 3, _mcl_hardness = 1, }) diff --git a/mods/ITEMS/mcl_mud/mod.conf b/mods/ITEMS/mcl_mud/mod.conf index f4cdb505ac..70f48ef1ec 100644 --- a/mods/ITEMS/mcl_mud/mod.conf +++ b/mods/ITEMS/mcl_mud/mod.conf @@ -1,3 +1,4 @@ name = mcl_mud author = TheRandomLegoBrick -description = Adds various mud blocks. \ No newline at end of file +description = Adds various mud blocks. +depends = mcl_sounds \ No newline at end of file diff --git a/mods/ITEMS/mcl_mud/sounds/mud_footsteps.ogg b/mods/ITEMS/mcl_mud/sounds/mud_footsteps.ogg new file mode 100644 index 0000000000000000000000000000000000000000..e18c93965488f58b80d3c3eae619eb56195cdfa4 GIT binary patch literal 6071 zcmai13p~^7|Nky`M#E^bYLmr8Y@wzUx-nE{BP4CJduU#&Jt7OAP(oM&=TV zqKj@DA-QCdIx0ocIl7$EbUA`MqAh-}8F*?D;;Q=lNXUpXdAe?g$C-h895I zTHnCoNAjt4^{Q8}rLedt4kMH+Uw|cCkpF>p0H*jm58EL>`B#&llv9QeonYyHHTwGh z+D)Z-PTF9D2R&||-I`T)_NxdsHkx1o4}MGzi_Qy;Vh8a;BUz3_8zRxlW{s82S}MWb z!G`2Ov|nYTX#Q}pIfBj(iKU0I9AnwRM&NlrogEy(;smkj;H-BPSaqFWSq6wKHZv-i z#c>2;nLw<)Ef7nbp*Vco!;1uE<_8M|uJW10 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)Kv9isLJnG zWfalitVYnjrqCJ3&QWA^s21hwo^SpI?tr|Krob$jWgp+FylRcn`;s@Dk5|5oqKB;Y zbl6{Ts4nD&>%;J(IZKPQcK3xn>ao4Y<4bz{oxOneFAkVdtVHvJzTFd|2C!V&b-w% zkG@8l~^SP4m>sL8o6E zUY^jhQ;@779nzh-s8H5n@j$ib`_MAq3f2+D%}WRIHxJx7!MSwTZ!;lWJcAG#lD;W? z=3t#BP&M^e)=Z0Sr0o#arL@_5U7V7|Op5nMh%Q82JmJbW-m7~cmy=PnMY&eIHtz!| zK{mT?`Q*Vb&Q%T^Zyn(Gl>3xt9J>;9$ttx~n4Bp)3q>1hIM(>M2e)lL+2_Wj1x5g3~z`lv(U_fQga;AELtq_u!NOks1^xFMn7uu>odEM8j+MNtWKw?;A$x GasLOUtF9dY literal 0 HcmV?d00001 From dfd16d1110a2367437f0c85027e18b5e7805e76b Mon Sep 17 00:00:00 2001 From: TheRandomLegoBrick Date: Fri, 8 Jul 2022 10:02:06 -0700 Subject: [PATCH 11/12] Add license --- mods/ITEMS/mcl_mud/README.txt | 21 +++++++++++++++++++++ mods/ITEMS/mcl_mud/init.lua | 1 + 2 files changed, 22 insertions(+) create mode 100644 mods/ITEMS/mcl_mud/README.txt diff --git a/mods/ITEMS/mcl_mud/README.txt b/mods/ITEMS/mcl_mud/README.txt new file mode 100644 index 0000000000..fe0a3f91cf --- /dev/null +++ b/mods/ITEMS/mcl_mud/README.txt @@ -0,0 +1,21 @@ +License of Code +---------------- + +Author: TheRandomLegoBrick +License: GPLv3 +See https://www.gnu.org/licenses/gpl-3.0.en.html for further information + + +License of Media (textures & sounds) +------------------------------------- + +Author: TheRandomLegoBrick +Liscense: CC0 1.0 Universal (CC0 1.0) +Files: + mud_footsteps.ogg + mud_place_dug.ogg + mcl_mud_bricks.png + mcl_mud_packed_mud.png + mcl_mud.png + +See https://creativecommons.org/publicdomain/zero/1.0/legalcode for further information \ No newline at end of file diff --git a/mods/ITEMS/mcl_mud/init.lua b/mods/ITEMS/mcl_mud/init.lua index d1d1eb3303..e938ae5f24 100644 --- a/mods/ITEMS/mcl_mud/init.lua +++ b/mods/ITEMS/mcl_mud/init.lua @@ -39,6 +39,7 @@ minetest.register_node("mcl_mud:mud_bricks", { _doc_items_hidden = false, tiles = {"mcl_mud_bricks.png"}, groups = {handy=1, pickaxey=1, building_block=1}, + sounds = mcl_sounds.node_sound_stone_defaults(), _mcl_blast_resistance = 3, _mcl_hardness = 1.5, }) From 05186c9a197c36df06a0934c4eb1caef2f82640c Mon Sep 17 00:00:00 2001 From: TheRandomLegoBrick Date: Fri, 8 Jul 2022 10:31:38 -0700 Subject: [PATCH 12/12] Non-copyright-infringey mud texture --- mods/ITEMS/mcl_mud/textures/mcl_mud.png | Bin 483 -> 506 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/mods/ITEMS/mcl_mud/textures/mcl_mud.png b/mods/ITEMS/mcl_mud/textures/mcl_mud.png index 4952255ec168ad6395deafeb72caddbef7e6f356..6298311247dc0f003a207eaebf4dc69a68cd3465 100644 GIT binary patch delta 430 zcmV;f0a5Q07*qoM6N<$f^6;3eER6WU#`2{%%bQEMt#B4xEBvfJ$qm|j_Co5PX5 zNGT&VH%A+5D`2`_ePq_+ZOh8#Ib2=)+WQcK%CnNTLenihe|!L=0MG%0kkqCrj-=!x zpub^1LIU`3NPju_jLJNEP!0mdHvDnilJb&bMD#`RL%P>*n*WcB1XAV4pnML6jG}r0 zIJ${bkO-o#%-`7Qaxn)m2w$ B#<~Ci