Modding Discussion • Re: How to use register_global_on_step
> I have dificulty too, I hope RubenWardy give permission to modife The Code: ]https://content.luanti.org/packages/MrFreeman/minetest_email/
> -------
>
> -------
> I successfully modife .minetest/mods/minetest_email/textures/mailman.png, usin' GIMP...
>
> waitin' and reading Lua Programming.
>
> Best Regard :
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> reading Book Linux Administrator.
> | Finished IT Computer; 2008. | https://twitch.tv/pias25_draco27072012/ |
> ^_^ ^_^ ^_^
Have been modife: mods mailman: minetest_email, loading mod success on Luanti/Minetest.
but when i command : /spawn_robotfoods, game was Shutting Down.
Error:
Code:
AsyncErr: Lua: Runtime error from mod 'minetest_robotfoods' in callback on_chat_message(): ...uanti.luanti/.minetest/mods/minetest_robotfoods/init.lua:397: attempt to call field 'spawn_robotfoods' (a nil value)stack traceback:...uanti.luanti/.minetest/mods/minetest_robotfoods/init.lua:397: in function 'func'/app/share/luanti/builtin/game/chat.lua:79: in function </app/share/luanti/builtin/game/chat.lua:50>/app/share/luanti/builtin/common/register.lua:27: in function </app/share/luanti/builtin/common/register.lua:13>
Debug Log:
Code:
2026-01-04 02:48:23: ACTION[Server]: [Creatura] [ABM Spawning] Spawned 3 animalia:cow at (-33,17,96)2026-01-04 02:48:29: ACTION[Server]: [Creatura] [ABM Spawning] Spawned 3 animalia:bat at (-14,-27,27)2026-01-04 02:48:37: WARNING[Server]: Reading initial object properties directly from an entity definition is deprecated, move it to the 'initial_properties' table instead. (Property 'textures' in entity 'automobiles_coupe:coupe')2026-01-04 02:48:37: WARNING[Server]: Reading initial object properties directly from an entity definition is deprecated, move it to the 'initial_properties' table instead. (Property 'textures' in entity 'automobiles_motorcycle:motorcycle')2026-01-04 02:48:37: WARNING[Server]: Deprecated call to set_bone_position, use set_bone_override instead (at /home/l3modz/.var/app/org.luanti.luanti/.minetest/mods/automobiles_pck/automobiles_motorcycle/motorcycle_entities.lua:210)2026-01-04 02:48:37: WARNING[Server]: Deprecated call to set_bone_position, use set_bone_override instead (at /home/l3modz/.var/app/org.luanti.luanti/.minetest/mods/automobiles_pck/automobiles_motorcycle/motorcycle_entities.lua:211)2026-01-04 02:48:37: WARNING[Server]: Reading initial object properties directly from an entity definition is deprecated, move it to the 'initial_properties' table instead. (Property 'physical' in entity 'animalia:chicken')2026-01-04 02:48:37: WARNING[Server]: Reading initial object properties directly from an entity definition is deprecated, move it to the 'initial_properties' table instead. (Property 'textures' in entity 'automobiles_delorean:delorean')2026-01-04 02:48:37: WARNING[Server]: Deprecated call to set_bone_position, use set_bone_override instead (at /home/l3modz/.var/app/org.luanti.luanti/.minetest/mods/automobiles_pck/automobiles_motorcycle/motorcycle_entities.lua:225)2026-01-04 02:48:37: WARNING[Server]: Deprecated call to set_bone_position, use set_bone_override instead (at /home/l3modz/.var/app/org.luanti.luanti/.minetest/mods/automobiles_pck/automobiles_motorcycle/motorcycle_entities.lua:226)2026-01-04 02:48:37: WARNING[Server]: Deprecated call to set_bone_position, use set_bone_override instead (at /home/l3modz/.var/app/org.luanti.luanti/.minetest/mods/automobiles_pck/automobiles_motorcycle/motorcycle_entities.lua:259)2026-01-04 02:48:43: ERROR[Server]: suspiciously large amount of objects detected: 438 in (0,1,-2); removing all of them.2026-01-04 02:48:43: ERROR[Server]: suspiciously large amount of objects detected: 358 in (1,1,-2); removing all of them.2026-01-04 02:48:48: WARNING[Server]: Deprecated call to get_sky, please check lua_api.md (at /home/l3modz/.var/app/org.luanti.luanti/.minetest/mods/lightning/init.lua:139)2026-01-04 02:48:48: WARNING[Server]: Deprecated call to set_sky, please check lua_api.md (at /home/l3modz/.var/app/org.luanti.luanti/.minetest/mods/lightning/init.lua:144)2026-01-04 02:48:48: WARNING[Server]: Deprecated call to set_sky, please check lua_api.md (at /home/l3modz/.var/app/org.luanti.luanti/.minetest/mods/lightning/init.lua:39)2026-01-04 02:49:16: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'minetest_robotfoods' in callback on_chat_message(): ...uanti.luanti/.minetest/mods/minetest_robotfoods/init.lua:397: attempt to call field 'spawn_robotfoods' (a nil value)2026-01-04 02:49:16: ERROR[Main]: stack traceback:2026-01-04 02:49:16: ERROR[Main]: ...uanti.luanti/.minetest/mods/minetest_robotfoods/init.lua:397: in function 'func'2026-01-04 02:49:16: ERROR[Main]: /app/share/luanti/builtin/game/chat.lua:79: in function </app/share/luanti/builtin/game/chat.lua:50>2026-01-04 02:49:16: ERROR[Main]: /app/share/luanti/builtin/common/register.lua:27: in function </app/share/luanti/builtin/common/register.lua:13>2026-01-04 02:49:17: ACTION[ServerStop]: Server: Shutting down2026-01-04 02:49:17: ACTION[ServerStop]: [mapgen_rivers] Mapgen statistics:- Mapgen calls: 0- Mean time: nan s- Standard deviation: nan s2026-01-04 02:49:17: ACTION[ServerStop]: [Hyperloop] Store data...2026-01-04 02:49:17: ACTION[ServerStop]: [Hyperloop] Data stored2026-01-04 02:49:17: WARNING[ServerStop]: MapBlock::saveStaticObject(): Trying to store id = 0 statically but block (-1,2,0) already contains 256 objects.
maybe at here ???: ^_^ ^_^ ^_^
Code:
/app/share/luanti/builtin/game/chat.lua:79:
The File, readonly, can't find variable. just tired, deep in sleep mode. [04.01.2026 | 02.51 wib]
here the mods: minetest_robotfoods
Best Regard :
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
reading Book Linux Administrator.
| Finished IT Computer; 2008. | https://twitch.tv/pias25_draco27072012/ |
^_^ ^_^ ^_^
Statistics: Posted by pias25ASA — Sat Jan 03, 2026 20:14
* * *