mirror of
https://github.com/minetest/minetest.git
synced 2024-08-19 04:54:18 +02:00
DevTest: Move callback entities to callbacks mod
This commit is contained in:
parent
cb7b96fc90
commit
2da92ed81e
@ -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 |
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 166 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")
|
||||
|
Loading…
Reference in New Issue
Block a user