minetest_x_bows/arrow.lua

14 lines
358 B
Lua
Raw Normal View History

2022-10-24 09:52:00 -05:00
XBows:register_entity('arrow_entity', {
initial_properties = {
visual = 'mesh',
mesh = 'x_bows_arrow.b3d',
2022-11-03 12:06:43 -05:00
textures = { 'x_bows_arrow_mesh.png' },
2022-10-24 09:52:00 -05:00
},
_custom = {
animations = {
2022-11-03 12:06:43 -05:00
idle = { { x = 41, y = 42 }, 0, 0, false },
on_hit_node = { { x = 1, y = 40 }, 40, 0, false }
2022-10-24 09:52:00 -05:00
}
}
})