Item states problem

Started by Spleet2.0 on

Topic category: Help with modding (Java Edition)

Last seen on 21:38, 22. Apr 2024
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Item states problem

I created a procedure that returns 0 or 1. I created an item, and in item properties and states, I did that if the procedure is equal to 1, the item changes texture. It does not work ! Help me !!!

Last seen on 00:12, 24. Jul 2024
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the random zero to one block…
Sat, 09/09/2023 - 03:06

the random zero to one block returns any real number between 0 and 1, and is VERY unlikely to return 1. if you want to use the block, you should check if the value is above .5, or just use the random including block.

Hope this helps

Last seen on 21:38, 22. Apr 2024
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I understood average, but I…
Sat, 09/09/2023 - 07:23

I understood average, but I still thought I understood that I had to use 0.5 and 1...