forked from Mirrorlandia_minetest/portalgun
33 lines
1.1 KiB
Lua
33 lines
1.1 KiB
Lua
stone_sounds = {}
|
|
stone_sounds.footstep = {name = "stone_walk", gain = 1.0}
|
|
stone_sounds.dug = {name = "stone_break", gain = 1.0}
|
|
stone_sounds.place = {name = "block_place", gain = 1.0}
|
|
glass_sounds = {}
|
|
glass_sounds.footstep = {name = "glass_walk", gain = 1.0}
|
|
glass_sounds.dug = {name = "glass_break", gain = 1.0}
|
|
glass_sounds.place = {name = "block_place", gain = 1.0}
|
|
wood_sounds = {}
|
|
wood_sounds.footstep = {name = "wood_walk", gain = 1.0}
|
|
wood_sounds.dug = {name = "wood_break", gain = 1.0}
|
|
wood_sounds.place = {name = "block_place", gain = 1.0}
|
|
minetest.register_node(
|
|
"portalgun:warntape",
|
|
{
|
|
description = "Warntape",
|
|
groups = {dig_immediate = 3, not_in_creative_inventory = 0},
|
|
paramtype = "light",
|
|
paramtype2 = "facedir",
|
|
sunlight_propagates = true,
|
|
sounds = stone_sounds,
|
|
tiles = {"portalgun_warntape.png"},
|
|
walkable = false,
|
|
drawtype = "nodebox",
|
|
node_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.5, -0.5, 0.3125, 0.5, -0.4375, 0.5}
|
|
}
|
|
}
|
|
}
|
|
)
|