Help with lucky block

Started by HoneyedSwirl on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 22:05, 3. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with lucky block
Wed, 07/03/2024 - 01:25 (edited)

I've been using a tutorial and working a lucky block mod, but around the 10th possibility, the code starts to not execute properly, lines of code in 1 possibility could occur in others, or starts to execute multiple possibilities, when it should only do 1. Does anyone have a fix for this? I've tried making this mod a couple times before, but usually I had to scrap it due to this issue.

The code is just a long if-elseif-elseif chain, which checks a variable set to an integer

https://imgur.com/a/DeRQAo6 (link image wasnt working for some reason)

Thank you

Edited by HoneyedSwirl on Wed, 07/03/2024 - 01:25