Chance of Drop with mobs (percentage)

Started by LEPRODOR on Mon, 01/13/2020 - 22:53

Topic category: Help with modding

Last seen on 04:02, 19. Jan 2020
Joined Mar 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Chance of Drop with mobs (percentage)
Mon, 01/13/2020 - 22:53

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.

0Upvote this forum topic
Last seen on 23:08, 18. Jan 2020
Joined Dec 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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.

0Upvote this forum topic
Last seen on 23:08, 18. Jan 2020
Joined Dec 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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.

0Upvote this forum topic
Last seen on 04:02, 19. Jan 2020
Joined Mar 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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 ;)

0Upvote this forum topic
Last seen on 04:02, 19. Jan 2020
Joined Mar 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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 ?

0Upvote this forum topic
Last seen on 04:02, 19. Jan 2020
Joined Mar 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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] ?

0Upvote this forum topic
Last seen on 23:08, 18. Jan 2020
Joined Dec 2019
User points:

Statistics:

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

yes. make sure it's 0.25.

0Upvote this forum topic
Last seen on 04:02, 19. Jan 2020
Joined Mar 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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.

0Upvote this forum topic
Last seen on 23:08, 18. Jan 2020
Joined Dec 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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.

0Upvote this forum topic
Last seen on 23:08, 18. Jan 2020
Joined Dec 2019
User points:

Statistics:

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

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

0Upvote this forum topic
Last seen on 04:02, 19. Jan 2020
Joined Mar 2019
User points:

Statistics:

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

Okay, cya ;)

0Upvote this forum topic