Started by
BiggerDigger
on
Topic category: Help with Minecraft modding (Java Edition)
How to find out where the structure(from my mod) is located and write this to the chat player
Topic category: Help with Minecraft modding (Java Edition)
How to find out where the structure(from my mod) is located and write this to the chat player
Mcreator does not have such a feature, at least if we are talking about now. But there is a way i used in my mod to locate my structures. Which was Creating a new entity which is immune to all kinds of damage, invisible, silent with no ai and putting it in that structre's somewhere where it won't bother anyone.
So what can you do with this ?
Well nothing fancy actually, but you can use "Does entity [mobname] exists in [number] radius" in world tab, and set the radius to like 2000 blocks (if your structre is not meant to spawn frequently, because in higher numbers you can end up in situation where you detect multiple of that mob). And then if there is actually that entity exists in that radius you can get X,Y,Z coordinates of that entity and create a message ready to send to player in action bar or chat.
If you have more questions maybe I can show you how i did in my mod in my free time
maybe try a procedure with a command block "locate structure" ^^
Mcreator structure's are not like vanilla structure's, as far as i know since im still using 2022.2 there is still no such a feature like that. Atleast try what you are about to say before posting.
Only way about doing this would be through a datapack.