Started by
Xanderz_1001
on
Topic category: Help with Minecraft modding (Java Edition)
I've searched the forums for an answer to this, but I could only find one but it's not exactly what I'm looking for...
I'm trying to make my ores give a randomized amount of XP in a set range, but I'm not sure how to code it. The forum post I've found showed how to do it, but half the time it didn't drop XP. I want it to drop XP every time.
Note: I also don't want it to directly give me XP, but drop an XP orb if that makes anything clearer
P.S. this is my first post, sorry if i did something wrong
Edited by Xanderz_1001 on Wed, 11/03/2021 - 21:15
found out how to do it, the 0.3 means 30% chance, if it fails each 30% chance then its guaranteed to be the 1, or 100% amount
image on how i did it -> https://ibb.co/pZkCpVJ
also this page helped me out a lot figuring it out
https://mcreator.net/wiki/procedure-system#wiki-index-3
even newer update that works the best for me
https://ibb.co/4ZkHnRL
also sorry if i'm not supposed to continue this thread but hopefully this still helps someone