Work Table : support oresplus nodes
This commit is contained in:
parent
a08630588c
commit
46ef36663b
@ -2,3 +2,4 @@ default
|
||||
doors
|
||||
xpanes
|
||||
bucket
|
||||
oresplus?
|
||||
|
@ -14,10 +14,12 @@ local nodes = { -- Nodes allowed to be cut.
|
||||
|
||||
"xdecor:coalstone_tile", "xdecor:desertstone_tile", "xdecor:stone_rune", "xdecor:stone_tile",
|
||||
"xdecor:hard_clay", "xdecor:packed_ice", "xdecor:moonbrick",
|
||||
"xdecor:woodframed_glass", "xdecor:wood_tile"
|
||||
"xdecor:woodframed_glass", "xdecor:wood_tile",
|
||||
|
||||
"oresplus:emerald_block", "oresplus:glowstone",
|
||||
}
|
||||
|
||||
local def = { -- Nodebox name, anzhal, definition.
|
||||
local def = { -- Nodebox name, yield, definition.
|
||||
{"nanoslab", 16, {-.5,-.5,-.5,0,-.4375,0}},
|
||||
{"micropanel", 16, {-.5,-.5,-.5,.5,-.4375,0}},
|
||||
{"microslab", 8, {-.5,-.5,-.5,.5,-.4375,.5}},
|
||||
@ -91,8 +93,7 @@ function worktable.dig(pos, _)
|
||||
local inv = minetest.get_meta(pos):get_inventory()
|
||||
if not inv:is_empty("input") or not inv:is_empty("hammer") or not
|
||||
inv:is_empty("tool") or not inv:is_empty("storage") then
|
||||
return false
|
||||
end
|
||||
return false end
|
||||
return true
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user