diff --git a/models/wormball_power.b3d b/models/wormball_power.b3d new file mode 100644 index 0000000..e95d19d Binary files /dev/null and b/models/wormball_power.b3d differ diff --git a/nodes.lua b/nodes.lua index c6d2018..a2223f2 100644 --- a/nodes.lua +++ b/nodes.lua @@ -62,13 +62,12 @@ for name,color in pairs(wormball.colors) do end -minetest.register_node("wormball:straight_", { +minetest.register_node("wormball:power", { description = "wormball node straight", drawtype = "mesh", - mesh = 'wormball_straight.b3d', - tiles = {"wormball_straight.png", "wormball_end.png"}, + mesh = 'wormball_power.b3d', + tiles = {"wormball_power.png^[colorize:#a38800599"}, paramtype2 = "facedir", - place_param2 = 4, paramtype = "light", backface_culling = true, 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, + +}) \ No newline at end of file diff --git a/power.blend b/power.blend new file mode 100644 index 0000000..9d953c7 Binary files /dev/null and b/power.blend differ diff --git a/textures/wormball_power.png b/textures/wormball_power.png new file mode 100644 index 0000000..c777842 Binary files /dev/null and b/textures/wormball_power.png differ