Food gives random effect

Started by Atomix_ on

Topic category: Help with modding (Java Edition)

Last seen on 22:53, 11. Mar 2024
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Food gives random effect

I am making a mod that has a item that can give you a random effect from negative to positive and do not know where to start.

Last seen on 05:29, 15. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried to make a random…
Tue, 03/26/2024 - 13:25

I tried to make a random drop from ore, but it didn’t work. You need to create a variable in which you will write a random number, and give the player an effect if the number is equal to _ I hope I helped in some way (my english are bad sorry)

Last seen on 05:29, 15. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
set (your variable) to:…
Tue, 03/26/2024 - 13:35

set (your variable) to: random[0, 1) * (your var)

                                                                     ^

                                                       Maybe you can use only 10, i have not tried