Move progress to separate mod and add packed mud
This commit is contained in:
parent
0142b58edc
commit
be1427205e
|
@ -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."),
|
||||
|
|
34
mods/ITEMS/mcl_mud/init.lua
Normal file
34
mods/ITEMS/mcl_mud/init.lua
Normal 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",
|
||||
}
|
||||
})
|
2
mods/ITEMS/mcl_mud/mod.conf
Normal file
2
mods/ITEMS/mcl_mud/mod.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
author = TheRandomLegoBrick
|
||||
description = Adds various mud blocks.
|
Before Width: | Height: | Size: 483 B After Width: | Height: | Size: 483 B |
BIN
mods/ITEMS/mcl_mud/textures/mcl_mud_packed_mud.png
Normal file
BIN
mods/ITEMS/mcl_mud/textures/mcl_mud_packed_mud.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 354 B |
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user