nicer box

master
Zemtzov7 2022-08-26 20:51:43 +05:00 committed by GitHub
parent b61e8c874d
commit 2c49ac1e55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,6 @@
local staffbox = {}
staffs = { --add names in this table
"singleplayer"
local staffs = { --add staff nicknames here
"singleplayer",
}
local function intable(table, element)
@ -16,7 +15,10 @@ end
minetest.register_node("staffbox:box", {
paramtype = "light",
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)
local meta = minetest.get_meta(pos)
meta:set_string("infotext", "StaffBox")