I would like to create a mod that add difficulty and loot based on "how far the player is from (0;0;0)".
Is there a command that exist to retrieve the coordinates of a player ? And do you think it would be possible to change mobs characteristics (health, damage, loot) based on those coordinates ?
Is there a fonction to retrieve player coordinates ?
Re: Is there a fonction to retrieve player coordinates ?
I'd recommend reading this guide, it will show you how to do things like player:get_pos() and how to edit mob object:get_luaentity() values :- https://api.minetest.net/
Re: Is there a fonction to retrieve player coordinates ?
Thank you TenPlus1.
Absolute noob here, this documentation will help !
Absolute noob here, this documentation will help !