mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-22 16:09:33 +01:00
Add barrier node
This commit is contained in:
parent
b6f94f8bd2
commit
d4cf25d1d0
3 changed files with 17 additions and 0 deletions
|
@ -4,6 +4,22 @@
|
|||
-- Node definitions
|
||||
--
|
||||
|
||||
minetest.register_node("default:barrier", {
|
||||
description = "Barrier",
|
||||
drawtype = "airlike",
|
||||
paramtype = "light",
|
||||
inventory_image = "default_barrier.png",
|
||||
wield_image = "default_barrier.png",
|
||||
stack_max = 64,
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
groups = { not_in_creative_inventory = 1 },
|
||||
on_blast = function() end,
|
||||
on_destruct = function () end,
|
||||
can_dig = function() return false end,
|
||||
diggable = false,
|
||||
})
|
||||
|
||||
minetest.register_node("default:stone", {
|
||||
description = "Stone",
|
||||
tiles = {"default_stone.png"},
|
||||
|
|
BIN
mods/default/textures/default_barrier.png
Normal file
BIN
mods/default/textures/default_barrier.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
|
@ -130,3 +130,4 @@ mesecon:register_mvps_stopper("default:furnace")
|
|||
mesecon:register_mvps_stopper("default:sign")
|
||||
mesecon:register_mvps_stopper("default:obsidian")
|
||||
mesecon:register_mvps_stopper("default:bedrock")
|
||||
mesecon:register_mvps_stopper("default:barrier")
|
||||
|
|
Loading…
Reference in a new issue