Variable Arrays

Started by Rugbeat90999 on

Topic category: Help with MCreator software

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Variable Arrays
Thu, 07/13/2023 - 19:07 (edited)

Is there a way to make some sort of array of variables?

I made a custom inventory, and I save each item in it's own player_persistant variable.

Now I want to check the nbt number tags of each item in the inventory, but there are 17 different slots, and I don't want to have to check each individual one manually.

Is there some way to do this with a loop?

If I could make an array, or list of variables, that would help a lot, or if there was some other way, that would be great.

Edited by Rugbeat90999 on Thu, 07/13/2023 - 19:07