From 973dc7fa418576f27f93f8ccf338c11855c0d626 Mon Sep 17 00:00:00 2001 From: TheRandomLegoBrick Date: Wed, 6 Jul 2022 12:14:21 -0700 Subject: [PATCH] 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