Variable Arrays

Started by Rugbeat90999 on

Topic category: Help with MCreator software

Active 1 year ago
Joined Jun 2023
Points:
199

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
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
Active 1 year ago
Joined Jun 2023
Points:
199

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
Any help?
Sat, 07/15/2023 - 04:00

Any help?