Started by
VegaOrionis
on
Topic category: Help with MCreator software
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 :(
Yes! now it works :)
https://imgur.com/a/OAf96SF
Thanks :)
Is it possible to use a command to refer to your own blockstate creation?
I don't understand why such an error.....
https://i.imgur.com/HTLU5RW.png
https://i.imgur.com/RDzYt6W.png
Do you know how to solve this problem?
no, I have no idea, sorry
Any other solution to assign any value to the "ageC" variable?
huh was that what you were trying to do here?
https://mcreator.net/comment/297261/#comment-297261
But I don't think you can change a property after it's been assigned, you've even made it final in here,
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.
I don't know if I'm missing some library or what...
oh you just meant placing a block with a blockstate, not changing the variable.
does it work if you just do,
?
I found an error....

Previously, I kept typing: setBlockState vs. setblock instead of the correct: setBlock
no way x3, so it works now?