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 Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it possible to use a…
Wed, 10/15/2025 - 10:25

Is it possible to use a command to refer to your own blockstate creation?

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do you know how to solve…
Wed, 10/15/2025 - 17:28

Do you know how to solve this problem?

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
no, I have no idea, sorry
Wed, 10/15/2025 - 18:40

no, I have no idea, sorry

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Any other solution to assign…
Wed, 10/15/2025 - 19:38

Any other solution to assign any value to the "ageC" variable?

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The numerical value of the …
Wed, 10/15/2025 - 20:02

The numerical value of the "ageC" variable itself can be changed.
By default, I set the value to 0.  >>> https://i.imgur.com/OqLRXB8.png
But this one line of code is written incorrectly, I don't know how to write it correctly to change the value of the "ageC" variable to any value, e.g. 5   >> https://i.imgur.com/riSxU8E.png 

In other versions with different code it worked, but in the newer one they changed it and I fixed it as much as I could and I only have this one error - value assignment.

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know if I'm missing…
Wed, 10/15/2025 - 20:07

I don't know if I'm missing some library or what...

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh you just meant placing a…
Wed, 10/15/2025 - 20:13

oh you just meant placing a block with a blockstate, not changing the variable.

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
does it work if you just do,…
Wed, 10/15/2025 - 20:16

does it work if you just do,

world.setBlock(pos, blockstate, 3);

?

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I found an error....
Wed, 10/15/2025 - 20:21

I found an error....

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Previously, I kept typing:…
Wed, 10/15/2025 - 20:24

Previously, I kept typing: setBlockState vs. setblock instead of the correct: setBlock

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
no way x3, so it works now?
Wed, 10/15/2025 - 20:26

no way x3, so it works now?