Acess local variable from other block

Started by gabrieltarzia on

Topic category: Help with modding (Java Edition)

Last seen on 01:37, 8. Jun 2019
Joined Jun 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Acess local variable from other block

I really need a help,  im Trying to get information from a variable of other block, somebody can help Me? Sorry for bad english

You can't use local…
Fri, 05/24/2019 - 16:49

You can't use local variables for this. To achieve this, use block NBT data using block NBT management procedures.

Last seen on 01:37, 8. Jun 2019
Joined Jun 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
but, i can get some variable…
Wed, 05/29/2019 - 15:59

but, i can get some variable informatio for the other block with nbt?

Last seen on 01:37, 8. Jun 2019
Joined Jun 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i need to do some blocks…
Thu, 05/30/2019 - 04:24

i need to do some blocks like a eletric cables, i need to check energy and get the same valou for all connected cables

Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes you must use block nbt…
Thu, 05/30/2019 - 07:42

Yes you must use block nbt data to achieve this. Make sure to name the nbt variable correctly

Last seen on 01:37, 8. Jun 2019
Joined Jun 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can u give me some help…
Sat, 06/08/2019 - 01:01

Can u give me some help width This? O dont know how to use nbt data