Can't make my ores give randomized XP

Started by Xanderz_1001 on

Topic category: Help with modding (Java Edition)

Last seen on 17:51, 20. Jan 2024
Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can't make my ores give randomized XP
Wed, 11/03/2021 - 21:15 (edited)

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
Last seen on 17:51, 20. Jan 2024
Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
found out how to do it, the…
Wed, 11/03/2021 - 21:42

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

Last seen on 17:51, 20. Jan 2024
Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
even newer update that works…
Sat, 12/04/2021 - 04:04

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