Block state up to 32 numbers or block state as string

Started by VegaOrionis on

Topic category: Help with MCreator software

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Block state up to 32 numbers or block state as string

I'd like to create a new variable in the class that will be the new state of the block. I'd like it to be limited to 32, not 25, or in the form of a string. I don't know Java :(
 

https://imgur.com/a/uRi140u

 

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you want to store an…
Sat, 10/04/2025 - 10:30

If you want to store an arbitrary string on a block make it a block entity.

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need a new block state, it…
Sat, 10/04/2025 - 10:44

I need a new block state, it can't be done in the procedure, it can only be done by editing the code manually.

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if there is no solution, I…
Sat, 10/04/2025 - 10:46

if there is no solution, I will try to do it (and if it works) I will simply use 2 new variables with a smaller scope.

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
looks like you just do like 
Sat, 10/04/2025 - 12:33

looks like you just do like 

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks :) I don't know why…
Sat, 10/04/2025 - 14:05

Thanks :) 
I don't know why only one of them works, the game starts etc. but either one returns me (true/false) or the other a number, they never return both values ​​(number and true/false)
https://imgur.com/a/jCiNLiK