0
0
Fork 0

Move progress to separate mod and add packed mud

This commit is contained in:
TheRandomLegoBrick 2022-07-06 13:14:29 -07:00
parent 0142b58edc
commit be1427205e
6 changed files with 42 additions and 19 deletions

View File

@ -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."),

View File

@ -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",
}
})

View File

@ -0,0 +1,2 @@
author = TheRandomLegoBrick
description = Adds various mud blocks.

View File

Before

Width:  |  Height:  |  Size: 483 B

After

Width:  |  Height:  |  Size: 483 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 B

View File

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