VoxeLibre/mods/ITEMS/mcl_mud/init.lua

66 lines
1.9 KiB
Lua
Raw Permalink Normal View History

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,
2022-07-08 18:18:42 +02:00
sounds = {
footstep = {name="mud_footsteps", gain=1},
dug = {name="mud_place_dug", gain=1},
place = {name="mud_place_dug", gain=1},
},
2022-07-11 17:24:42 +02:00
groups = {handy=1, shovely=1, enderman_takable=1, grass_block=1, soil_sugarcane=1, building_block=1},
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
2022-07-07 20:54:36 +02:00
collision_box = {
type = "fixed",
fixed = {
2022-07-11 17:24:42 +02:00
{-8 / 16, -8 / 16, -8 / 16, 8 / 16, 6 / 16, 8 / 16},
2022-07-07 20:54:36 +02:00
},
},
})
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"},
2022-07-08 18:18:42 +02:00
groups = {handy=1, pickaxey=1, building_block=1},
sounds = mcl_sounds.node_sound_dirt_defaults(),
_mcl_blast_resistance = 3,
_mcl_hardness = 1,
})
2022-07-07 20:54:36 +02:00
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"},
2023-11-13 21:27:42 +01:00
groups = {handy=1, pickaxey=1, building_block=1},
2022-07-08 19:02:06 +02:00
sounds = mcl_sounds.node_sound_stone_defaults(),
2022-07-07 20:54:36 +02:00
_mcl_blast_resistance = 3,
_mcl_hardness = 1.5,
})
-- packed mud
minetest.register_craft({
type = "shapeless",
output = "mcl_mud:packed_mud",
recipe = {
"mcl_mud:mud",
"mcl_farming:wheat_item",
}
2022-07-07 20:54:36 +02:00
})
-- 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"}
}
2023-11-13 21:27:42 +01:00
})