telepro/balao_decor.lua

47 lines
1.2 KiB
Lua
Raw Permalink Normal View History

2018-07-11 14:46:22 -07:00
--[[
Mod Telepro para Minetest
Copyright (C) 2018 BrunoMine (https://github.com/BrunoMine)
Recebeste uma cópia da GNU Lesser General
Public License junto com esse software,
se não, veja em <http://www.gnu.org/licenses/>.
Balao Decorativo para Spawn
]]
2018-07-12 21:13:10 -07:00
local S = telepro.S
2018-07-11 14:46:22 -07:00
-- Node
2018-07-11 15:04:52 -07:00
minetest.register_node("telepro:node_balao_decorativo", {
2018-07-12 21:13:10 -07:00
description = S("Node de Balao Decorativo"),
2018-07-11 14:46:22 -07:00
tiles = {"telepro_balao.png"},
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
drawtype = "mesh",
mesh = "telepro_node_balao.b3d",
visual_scale = 0.45,
2018-07-11 15:04:52 -07:00
groups = {choppy = 2, oddly_breakable_by_hand = 2, not_in_creative_inventory = 1},
sounds = default.node_sound_wood_defaults(),
drop = "",
})
-- Node de inventario
minetest.register_node("telepro:balao_decorativo", {
2018-07-12 21:13:10 -07:00
description = S("Balao Decorativo"),
2018-07-11 15:04:52 -07:00
tiles = {"telepro_balao.png"},
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
drawtype = "mesh",
mesh = "telepro_node_balao_inv.b3d",
visual_scale = 1,
2018-07-11 14:46:22 -07:00
groups = {choppy = 2, oddly_breakable_by_hand = 2},
sounds = default.node_sound_wood_defaults(),
drop = "",
2018-07-11 15:04:52 -07:00
on_construct = function(pos)
minetest.set_node(pos, {name = "telepro:node_balao_decorativo"})
end,
2018-07-11 14:46:22 -07:00
})