How to find out where the structure(from my mod) is located and write this to the chat player

Started by BiggerDigger on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to find out where the structure(from my mod) is located and write this to the chat player

How to find out where the structure(from my mod) is located and write this to the chat player

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mcreator does not have such…
Mon, 02/20/2023 - 20:07

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. 

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you have more questions…
Mon, 02/20/2023 - 20:08

If you have more questions maybe I can show you how i did in my mod in my free time

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
maybe try a procedure with a…
Mon, 02/27/2023 - 10:38

maybe try a procedure with a command block "locate structure" ^^

 

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mcreator structure's are not…
Mon, 03/06/2023 - 06:09

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. 

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Only way about doing this…
Mon, 03/06/2023 - 07:03

Only way about doing this would be through a datapack.