DevTest: Move callback entities to callbacks mod

This commit is contained in:
Wuzzy 2022-10-08 18:29:22 +02:00 committed by sfan5
parent cb7b96fc90
commit 2da92ed81e
5 changed files with 5 additions and 5 deletions

@ -22,10 +22,10 @@ local spos = function(self)
end
-- Callback test entity (all callbacks except on_step)
minetest.register_entity("testentities:callback", {
minetest.register_entity("callbacks:callback", {
initial_properties = {
visual = "upright_sprite",
textures = { "testentities_callback.png" },
textures = { "callbacks_callback_entity.png" },
},
on_activate = function(self, staticdata, dtime_s)
@ -69,9 +69,9 @@ minetest.register_entity("testentities:callback", {
})
-- Only test on_step callback
minetest.register_entity("testentities:callback_step", {
minetest.register_entity("callbacks:callback_step", {
visual = "upright_sprite",
textures = { "testentities_callback_step.png" },
textures = { "callbacks_callback_entity_step.png" },
on_step = function(self, dtime)
message("on_step callback entity: on_step! pos="..spos(self).."; dtime="..dtime)
end,

@ -1,2 +1,3 @@
dofile(minetest.get_modpath("callbacks").."/items.lua")
dofile(minetest.get_modpath("callbacks").."/nodes.lua")
dofile(minetest.get_modpath("callbacks").."/entities.lua")

Before

Width:  |  Height:  |  Size: 156 B

After

Width:  |  Height:  |  Size: 156 B

@ -1,3 +1,2 @@
dofile(minetest.get_modpath("testentities").."/visuals.lua")
dofile(minetest.get_modpath("testentities").."/armor.lua")
dofile(minetest.get_modpath("testentities").."/callbacks.lua")