nicer box
This commit is contained in:
parent
b61e8c874d
commit
2c49ac1e55
10
init.lua
10
init.lua
@ -1,7 +1,6 @@
|
|||||||
local staffbox = {}
|
local staffbox = {}
|
||||||
staffs = { --add names in this table
|
local staffs = { --add staff nicknames here
|
||||||
"singleplayer"
|
"singleplayer",
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
local function intable(table, element)
|
local function intable(table, element)
|
||||||
@ -16,7 +15,10 @@ end
|
|||||||
minetest.register_node("staffbox:box", {
|
minetest.register_node("staffbox:box", {
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
description = "StaffBox",
|
description = "StaffBox",
|
||||||
tiles = {"staffbox.png"},
|
tiles = {"staffbox_top.png", "staffbox_tile.png",
|
||||||
|
"staffbox_tile.png", "staffbox_tile.png",
|
||||||
|
"staffbox_tile.png", "staffbox.png"},
|
||||||
|
paramtype2 = "facedir",
|
||||||
after_place_node = function(pos, placer, itemstack)
|
after_place_node = function(pos, placer, itemstack)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:set_string("infotext", "StaffBox")
|
meta:set_string("infotext", "StaffBox")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user