How to do food RNG

Started by zeez on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Feb 2023
Points:
198

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
How to do food RNG

Does anyone know how to make it so when i eat my custom food it has a chance of doing certain things, like 10% chance of givnig poison and a 90% chance of givning regeneration 

Active 2 years ago
Joined Feb 2023
Points:
205

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
use random number between 1…
Tue, 02/28/2023 - 14:56

use random number between 1 and 10

if it will chose 1 give poison if not regen