mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-24 17:00:18 +01:00
add hd inbox
This commit is contained in:
parent
3cbf8dcc82
commit
e3a6ed9ddb
@ -1,20 +0,0 @@
|
||||
unused_args = false
|
||||
allow_defined_top = true
|
||||
max_comment_line_length = 999
|
||||
|
||||
read_globals = {
|
||||
"DIR_DELIM",
|
||||
"minetest", "core",
|
||||
"unpack",
|
||||
"dump",
|
||||
table = { fields = { "copy", "getn" } },
|
||||
"vector", "nodeupdate",
|
||||
"VoxelManip", "VoxelArea",
|
||||
"PseudoRandom", "ItemStack",
|
||||
"default",
|
||||
"screwdriver", "homedecor",
|
||||
}
|
||||
|
||||
globals = {
|
||||
}
|
||||
|
@ -2,15 +2,6 @@ local S = minetest.get_translator("inbox")
|
||||
|
||||
local inbox = {}
|
||||
|
||||
minetest.register_craft({
|
||||
output ="homedecor:inbox",
|
||||
recipe = {
|
||||
{"","default:steel_ingot",""},
|
||||
{"default:steel_ingot","","default:steel_ingot"},
|
||||
{"default:steel_ingot","default:steel_ingot","default:steel_ingot"}
|
||||
}
|
||||
})
|
||||
|
||||
local mb_cbox = {
|
||||
type = "fixed",
|
||||
fixed = { -5/16, -8/16, -8/16, 5/16, 2/16, 8/16 }
|
||||
@ -31,7 +22,9 @@ homedecor.register("inbox", {
|
||||
collision_box = mb_cbox,
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy=2,oddly_breakable_by_hand=2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
_sound_def = {
|
||||
key = "node_sound_wood_defaults",
|
||||
},
|
||||
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple or nil,
|
||||
after_place_node = function(pos, placer, itemstack)
|
||||
local meta = minetest.get_meta(pos)
|
||||
@ -103,6 +96,15 @@ homedecor.register("inbox", {
|
||||
allow_metadata_inventory_move = function(pos)
|
||||
return 0
|
||||
end,
|
||||
crafts = {
|
||||
{
|
||||
recipe = {
|
||||
{"","steel_ingot",""},
|
||||
{"steel_ingot","","steel_ingot"},
|
||||
{"steel_ingot","steel_ingot","steel_ingot"}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_alias("inbox:empty", "homedecor:inbox")
|
||||
|
@ -1,3 +1,3 @@
|
||||
name = homedecor_inbox
|
||||
depends = default, homedecor_common
|
||||
depends = homedecor_common
|
||||
optional_depends = screwdriver
|
||||
|
Loading…
Reference in New Issue
Block a user