mirror of
git://repo.or.cz/minetest_schemedit.git
synced 2025-01-09 09:30:32 +01:00
Add use_texture_alpha compability
This commit is contained in:
parent
e9ad4bcf00
commit
433878a938
9
init.lua
9
init.lua
@ -1219,12 +1219,19 @@ S("The node HUD is not updated automatically and may be outdated. The node HUD o
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local use_texture_alpha_void
|
||||||
|
if minetest.features.use_texture_alpha_string_modes then
|
||||||
|
use_texture_alpha_void = "clip"
|
||||||
|
else
|
||||||
|
use_texture_alpha_void = true
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_node("schemedit:void", {
|
minetest.register_node("schemedit:void", {
|
||||||
description = S("Schematic Void"),
|
description = S("Schematic Void"),
|
||||||
_doc_items_longdesc = S("This is an utility block used in the creation of schematic files. It should be used together with a schematic creator. When saving a schematic, all nodes with a schematic void will be left unchanged when the schematic is placed again. Technically, this is equivalent to a block with the node probability set to 0."),
|
_doc_items_longdesc = S("This is an utility block used in the creation of schematic files. It should be used together with a schematic creator. When saving a schematic, all nodes with a schematic void will be left unchanged when the schematic is placed again. Technically, this is equivalent to a block with the node probability set to 0."),
|
||||||
_doc_items_usagehelp = S("Just place the schematic void like any other block and use the schematic creator to save a portion of the world."),
|
_doc_items_usagehelp = S("Just place the schematic void like any other block and use the schematic creator to save a portion of the world."),
|
||||||
tiles = { "schemedit_void.png" },
|
tiles = { "schemedit_void.png" },
|
||||||
use_texture_alpha = "clip",
|
use_texture_alpha = use_texture_alpha_void,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
Loading…
Reference in New Issue
Block a user