1
0
Fork 0

Add barrier node

objects
Wuzzy 2017-01-04 09:57:20 +01:00
parent b6f94f8bd2
commit d4cf25d1d0
3 changed files with 17 additions and 0 deletions

View File

@ -4,6 +4,22 @@
-- Node definitions -- 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", { minetest.register_node("default:stone", {
description = "Stone", description = "Stone",
tiles = {"default_stone.png"}, tiles = {"default_stone.png"},

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -130,3 +130,4 @@ mesecon:register_mvps_stopper("default:furnace")
mesecon:register_mvps_stopper("default:sign") mesecon:register_mvps_stopper("default:sign")
mesecon:register_mvps_stopper("default:obsidian") mesecon:register_mvps_stopper("default:obsidian")
mesecon:register_mvps_stopper("default:bedrock") mesecon:register_mvps_stopper("default:bedrock")
mesecon:register_mvps_stopper("default:barrier")