fix bug, add power node(not implemented yet)
parent
d4e7540664
commit
7e1d4d07d8
Binary file not shown.
32
nodes.lua
32
nodes.lua
|
@ -62,13 +62,12 @@ for name,color in pairs(wormball.colors) do
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("wormball:straight_", {
|
minetest.register_node("wormball:power", {
|
||||||
description = "wormball node straight",
|
description = "wormball node straight",
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
mesh = 'wormball_straight.b3d',
|
mesh = 'wormball_power.b3d',
|
||||||
tiles = {"wormball_straight.png", "wormball_end.png"},
|
tiles = {"wormball_power.png^[colorize:#a38800599"},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
place_param2 = 4,
|
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
backface_culling = true,
|
backface_culling = true,
|
||||||
sunlight_propagates = true, -- Sunlight can shine through block
|
sunlight_propagates = true, -- Sunlight can shine through block
|
||||||
|
@ -77,3 +76,28 @@ minetest.register_node("wormball:straight_", {
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
minetest.register_entity('wormball:player_att',{
|
||||||
|
initial_properties = {
|
||||||
|
physical = false,
|
||||||
|
pointable = false,
|
||||||
|
visual = "sprite",
|
||||||
|
textures = {'wormball_alpha.png'},
|
||||||
|
use_texture_alpha = true,
|
||||||
|
is_visible = false,
|
||||||
|
},
|
||||||
|
_timer = 1,
|
||||||
|
|
||||||
|
on_step = function(self, dtime, moveresult)
|
||||||
|
-- self._timer = self._timer + dtime
|
||||||
|
-- if self._timer < 6 and not(self.object:get_attach()) then
|
||||||
|
-- self.object:remove()
|
||||||
|
-- end
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
|
end,
|
||||||
|
|
||||||
|
})
|
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 5.5 KiB |
Loading…
Reference in New Issue