When using this mod with Mineclonia 0.115.0 in Luanti 5.11.0, the game crashes immediately with this error.
ModError: Failed to load and run script from /home/bgstack15/.var/app/net.minetest.Minetest/.minetest/mods/italian_food/init.lua:
/app/share/luanti/builtin/game/register.lua:66: Name mcl_potions:sugar_coffe_splash does not follow naming conventions: "italian_food:" or ":" prefix required
stack traceback:
[C]: in function 'error'
/app/share/luanti/builtin/game/register.lua:66: in function 'check_modname_prefix'
/app/share/luanti/builtin/game/register.lua:136: in function 'register_item'
/app/share/luanti/builtin/game/register.lua:241: in function 'register_craftitem'
...etest/games/mineclonia/mods/ITEMS/mcl_potions/splash.lua:38: in function 'register_splash'
...test/games/mineclonia/mods/ITEMS/mcl_potions/potions.lua:257: in function <...test/games/mineclonia/mods/ITEMS/mcl_potions/potions.lua:155>
...t.minetest.Minetest/.minetest/mods/italian_food/init.lua:398: in main chunk
Check debug.txt for details.
This happens because the default potion definition includes a splash potion variant (brewed with gunpowder), and the mineclonia code hard-codes the item identifier with a prepended "mcl_potions:" but this mod cannot use a different namespace in Luanti so the game crashes. The _id_override will let the mod name be used correctly in generating the potion items.
I would love to collaborate with you on helping to make basil and tomato be plantable like other food items in Mineclonia. Well, maybe tomatoes act like carrots in that they can be planted, and I guess maybe add a basil seed item that gets picked up when you use a sword on a basil plant. Is that something you would like help with?
Hi bgstack15,
First of all, I apologize for the delay in responding! I really appreciate your feedback; you're absolutely right about the bug, and I'm grateful that you’ve already suggested a solution. I’ll be sure to implement it soon!
As for the basil and tomato, I think it’s a fantastic idea! I’d be excited to collaborate on adding these features to the mod. If you have any ideas or would like to start working on the code, feel free to share. It might be useful to continue the discussion on Matrix, via Element.io for better coordination.
Thanks again for your contribution, and I look forward to collaborating with you on this!
When using this mod with Mineclonia 0.115.0 in Luanti 5.11.0, the game crashes immediately with this error.
I already ran into this problem on a mod of my own, and the fix is in mineclonia already which will be part of future releases: https://codeberg.org/mineclonia/mineclonia/pulls/3472.
So whenever mineclonia > 0.115.0 comes out, you should be able to do this with the code to prevent errors.
This happens because the default potion definition includes a splash potion variant (brewed with gunpowder), and the mineclonia code hard-codes the item identifier with a prepended "mcl_potions:" but this mod cannot use a different namespace in Luanti so the game crashes. The
_id_override
will let the mod name be used correctly in generating the potion items.I would love to collaborate with you on helping to make basil and tomato be plantable like other food items in Mineclonia. Well, maybe tomatoes act like carrots in that they can be planted, and I guess maybe add a basil seed item that gets picked up when you use a sword on a basil plant. Is that something you would like help with?
Hi bgstack15, First of all, I apologize for the delay in responding! I really appreciate your feedback; you're absolutely right about the bug, and I'm grateful that you’ve already suggested a solution. I’ll be sure to implement it soon! As for the basil and tomato, I think it’s a fantastic idea! I’d be excited to collaborate on adding these features to the mod. If you have any ideas or would like to start working on the code, feel free to share. It might be useful to continue the discussion on Matrix, via Element.io for better coordination. Thanks again for your contribution, and I look forward to collaborating with you on this!
Cheers
I am this username on the Luanti forums, and also on matrix/element. Please find me and we can chat!