Ajustes de balao decorativo
parent
be9173f69e
commit
4543703cb8
|
@ -17,7 +17,7 @@ minetest.register_on_joinplayer(function(player)
|
|||
local name = player:get_player_name()
|
||||
|
||||
-- Verifica se o registro de balao existe no banco de dados
|
||||
if telepro.bd.verif(name, "pos") == false then
|
||||
if telepro.bd.verif("jogador_"..name, "pos") == false then
|
||||
telepro.gerar_balao_aleatorio(name)
|
||||
end
|
||||
end)
|
||||
|
|
|
@ -29,7 +29,7 @@ minetest.register_node("telepro:balao_jogador", {
|
|||
drawtype = "mesh",
|
||||
mesh = "telepro_node_balao.b3d",
|
||||
visual_scale = 0.45,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, not_in_creative_inventory = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "",
|
||||
})
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
]]
|
||||
|
||||
-- Node
|
||||
minetest.register_node("telepro:balao_decorativo", {
|
||||
description = "Balao Decorativo",
|
||||
minetest.register_node("telepro:node_balao_decorativo", {
|
||||
description = "Node de Balao Decorativo",
|
||||
tiles = {"telepro_balao.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
|
@ -19,7 +19,26 @@ minetest.register_node("telepro:balao_decorativo", {
|
|||
drawtype = "mesh",
|
||||
mesh = "telepro_node_balao.b3d",
|
||||
visual_scale = 0.45,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2},
|
||||
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", {
|
||||
description = "Balao Decorativo",
|
||||
tiles = {"telepro_balao.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
drawtype = "mesh",
|
||||
mesh = "telepro_node_balao_inv.b3d",
|
||||
visual_scale = 1,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "",
|
||||
|
||||
on_construct = function(pos)
|
||||
minetest.set_node(pos, {name = "telepro:node_balao_decorativo"})
|
||||
end,
|
||||
})
|
||||
|
|
2
bau.lua
2
bau.lua
|
@ -31,7 +31,7 @@ minetest.register_node("telepro:bau", {
|
|||
"default_chest_front.png" -- Frente
|
||||
},
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, not_in_creative_inventory = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_rightclick = function(pos, node, player)
|
||||
local meta = minetest.get_meta(pos)
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue