Chance of Drop with mobs (percentage)

Started by VioletPyre on

Topic category: Help with modding (Java Edition)

Last seen on 01:56, 16. Jan 2024
Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Chance of Drop with mobs (percentage)

Hi, i'm making some boss mobs and I was trying to make them loot something with a 5% chance of doing so.
But I do not know how to do such a thing (I'm on 1.12.2) If anyone got an anwser ,i'd be really thankful to see it, thanks.

Last seen on 02:45, 27. Mar 2024
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this may be hard to…
Mon, 01/13/2020 - 23:09

this may be hard to understand, use the "If... then... else..." procedure. Next, use the "greator than or eaqual to" procedure block. Last use the random (0,1] and the number block.

i'm sorry for the complex context clues and contents, it may be completely out of context.

but if it helps: reply to me.

Last seen on 02:45, 27. Mar 2024
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and also connect the number…
Mon, 01/13/2020 - 23:15

and also connect the number block with the the set up like this:

if:[random (0,1]] > [0.5]

then: spawn gen [primary boss item]

else: spawn [secondary boss item]

the repeater block generates more items, don't use the infinite one, it will crash the client.

Last seen on 01:56, 16. Jan 2024
Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok thank you, and whoa, didn…
Tue, 01/14/2020 - 00:17

Ok thank you, and whoa, didn't expect an anwser that quick ! I will try and let a post if it does not work ;)

Last seen on 01:56, 16. Jan 2024
Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, after some "messing…
Tue, 01/14/2020 - 00:25

Ok, after some "messing around" I was not able to find a "If....then...else." block. I found the "if...Do....Else.." and "If...do...esle if..do.."

Do I pick the "If do else" block ?

Last seen on 01:56, 16. Jan 2024
Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nevermind, It works thanks a…
Tue, 01/14/2020 - 00:47

Nevermind, It works thanks a lot and I'm wondering, how do i know the percentage i put ? example if i want to put 25% chance , for example, is it like [random (0,1] > [2.5] ?

Last seen on 02:45, 27. Mar 2024
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes. make sure it's 0.25.
Tue, 01/14/2020 - 01:54

yes. make sure it's 0.25.

Last seen on 01:56, 16. Jan 2024
Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
well you opened me a lot of…
Tue, 01/14/2020 - 01:56

well you opened me a lot of possibilities, so i'm really thankful.
the thing is, 0.5 seems to be 50%. i tested out , i killed 20 bosses and got 9 of one item and 11 of the other.

Last seen on 02:45, 27. Mar 2024
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can also reverse the…
Tue, 01/14/2020 - 01:57

you can also reverse the chance of the boss drops by flipping the symbol.

Last seen on 02:45, 27. Mar 2024
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
no problem, if there's…
Tue, 01/14/2020 - 01:58

no problem, if there's anything you need at my level, call me.

Last seen on 01:56, 16. Jan 2024
Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay, cya ;)
Tue, 01/14/2020 - 01:59

Okay, cya ;)