1
0
Fork 0
This commit is contained in:
TheRandomLegoBrick 2022-07-06 12:14:21 -07:00
parent 24ab7ff825
commit 973dc7fa41
3 changed files with 4 additions and 11 deletions

View File

@ -459,7 +459,7 @@ 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,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 509 B

After

Width:  |  Height:  |  Size: 483 B

View File

@ -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