devtest: Add sam to testentities (#14882)

This commit is contained in:
Lars Müller 2024-08-11 20:18:30 +02:00 committed by GitHub
parent c6c2c4f60f
commit 5b19d315b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,7 @@
Original model by MirceaKitsune (CC BY-SA 3.0).
Various alterations and fixes by kilbith, sofar, xunto, Rogier-5, TeTpaAka, Desour,
stujones11, An0n3m0us (CC BY-SA 3.0):
testentities_sam.b3d
Jordach (CC BY-SA 3.0):
testentities_sam.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -66,6 +66,19 @@ minetest.register_entity("testentities:mesh_unshaded", {
},
})
minetest.register_entity("testentities:sam", {
initial_properties = {
visual = "mesh",
mesh = "testentities_sam.b3d",
textures = {
"testentities_sam.png"
},
},
on_activate = function(self)
self.object:set_animation({x = 0, y = 219}, 30, 0, true)
end,
})
-- Advanced visual tests
-- An entity for testing animated and yaw-modulated sprites