Information transfer between entities, blocks, etc.

Started by Donago159 on Sun, 05/02/2021 - 19:47

Topic category: Help with modding (Java Edition)

Last seen on 06:41, 25. Jan 2022
Joined Feb 2019

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Information transfer between entities, blocks, etc.
Sun, 05/02/2021 - 19:47

My idea was to create a penguin that comes out of an igloo, another one should only come out when the first one dies.
Also only one generator should be placed per player at most (the latter if I can do it).
I tried a lot of things (I don't want to use global tiggers, it works but it would only be for one player)
I tried some ideas, didn't work... decided to use an entity instead of a block
I came up with "tamed", "owner" and "get nearest entity...".
and .... didn't work
Β I rethought it and managed to get it to work using blocks again.

But what I did get was an alternative solution, if there was a way to share nbt or other kind of information
Β with the coordinates of a block I can establish its nbt
But to an entity, it would be more complicated. I can think of using "get nearest entity..." and nbt values (but I don't think it will work for all cases).
Even so I would like to know if there is another simpler way that I have not thought of.

sorry for my translator's English