Create custom global variables with procedures

Started by RedWirePlatinum on

Topic category: Feature requests and ideas for MCreator

Last seen on 22:06, 17. May 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create custom global variables with procedures

I don't know if it's possible, but could we be able to do something like this? It would help with creating lists or whatever that stays with the player after death, and can also help with GUIs (since NBT variables don't sync to GUI labels, unfortunately). It could also help to get around that "wait block does not support local variables" error or whatever. And maybe if possible, also remove global variables (or reset it to its initial value).

Last seen on 15:36, 11. May 2024
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just them manually
Sat, 04/08/2023 - 21:43

Just them manually

Last seen on 15:36, 11. May 2024
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just make them mannualy*
Sat, 04/08/2023 - 21:44

Just make them mannualy*

Last seen on 22:06, 17. May 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah but it wouldn't really…
Fri, 04/14/2023 - 21:32

yeah but it wouldn't really help for like... lists or something, i could make an example 

Last seen on 20:56, 17. May 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you could place an…
Fri, 04/14/2023 - 22:28

you could place an unbreakable custom block with tile entity at 125 -64 -225 (or some other coordinates at Y -64) when the world is loaded.

you can then reference any nbt tag of that block like it was a variable.
I know this might not work for what you want, but it could be useful to know.

Last seen on 22:06, 17. May 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know how to make a block…
Mon, 04/17/2023 - 04:42

I know how to make a block entity but... why Y -64? also what is a tile entity

Last seen on 20:56, 17. May 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
tile entity is different…
Mon, 04/17/2023 - 23:53

tile entity is different name for block entity, I think it used to be called tile entity.  Y -64 so it shouldn't interfere with players.

Last seen on 22:06, 17. May 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have another idea for a…
Fri, 04/21/2023 - 19:53

I have another idea for a list but ty

 

Also small update: apparently only entity nbt values don't sync to gui text labels, blocks and items work just fine