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

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I managed to solve the…
Sat, 10/04/2025 - 20:00

I managed to solve the previous problem, by simply creating a new one (IntegerProperty.create)  and setting the numerical range myself.
https://imgur.com/a/wY43tt6

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
like it says the variable…
Mon, 10/13/2025 - 10:48

like it says the variable state doesn't exist..
um where/how did this code come to exist?

did you mean to use blockstate?

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Now I notice that I probably…
Mon, 10/13/2025 - 11:12

Now I notice that I probably in the previous version of mcreator there was a BlockState state.
In the one I use it is replaced with BlockState blockstate. After fixing it, the game starts, but my manual in-game controls by changing the tag do not affect the change of the "ageC" variable. In the previous version of mcreator it worked, but in the current one I am testing (2021.2) it doesn't work.
 


 

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know why it doesn't…
Mon, 10/13/2025 - 13:53

I don't know why it doesn't respond to the tag

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm sorry I don't get what…
Mon, 10/13/2025 - 14:08

I'm sorry I don't get what you're trying to do...