How do I make a block that can can get synced data from a entity?

Started by Maketendo on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a block that can can get synced data from a entity?

I'm making a system where in a simple terms i'm making a house (which is an entity so its portable) and when each one is spawned it has their own id and once right clicked sends the entity to their own structure in a special dimension. The problem is that i want to be able to exit the house / control where the house goes with a block that has a special nbt data which says what id it has and once it has been right clicked it checks as all the house entitys and then compares if one of the house entities has the same synced data (of which id it has) with the one of the block nbt of the id it is linked to and if it finds one then it gets the synced data of the x, y, z coordinates stored in the entity and teleports the player to those coordinates. (I tried to make it simple for y'all to understand.) greatly appreciated if someone helped (:>

 

Image of what I did wrong (i made it so it sends the coords so I can bug test):

https://imgur.com/a/3od22mI

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Does anyone know? or did I…
Wed, 01/01/2025 - 21:05

Does anyone know? or did I made it too complicated?