mirror of
git://repo.or.cz/minetest_schemedit.git
synced 2025-01-09 17:40:32 +01:00
Remove border entities more liberally
This commit is contained in:
parent
2fea0b3d27
commit
16950a773d
12
init.lua
12
init.lua
@ -1004,6 +1004,7 @@ minetest.register_entity("schemedit:display", {
|
|||||||
visual_size = {x=10, y=10},
|
visual_size = {x=10, y=10},
|
||||||
pointable = false,
|
pointable = false,
|
||||||
physical = false,
|
physical = false,
|
||||||
|
static_save = false,
|
||||||
glow = minetest.LIGHT_MAX,
|
glow = minetest.LIGHT_MAX,
|
||||||
|
|
||||||
on_step = function(self, dtime)
|
on_step = function(self, dtime)
|
||||||
@ -1018,6 +1019,17 @@ minetest.register_entity("schemedit:display", {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_lbm({
|
||||||
|
label = "Reset schematic creator border entities",
|
||||||
|
name = "schemedit:reset_border",
|
||||||
|
nodenames = "schemedit:creator",
|
||||||
|
run_at_every_load = true,
|
||||||
|
action = function(pos, node)
|
||||||
|
local meta = minetest.get_meta(pos)
|
||||||
|
meta:set_string("schem_border", "false")
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
-- [chatcommand] Place schematic
|
-- [chatcommand] Place schematic
|
||||||
minetest.register_chatcommand("placeschem", {
|
minetest.register_chatcommand("placeschem", {
|
||||||
description = S("Place schematic at the position specified or the current player position (loaded from @1)", export_path_trunc),
|
description = S("Place schematic at the position specified or the current player position (loaded from @1)", export_path_trunc),
|
||||||
|
Loading…
Reference in New Issue
Block a user