is there a way to randomise what drops from a block?

Started by UtahPlaysYT on

Topic category: General discussion

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is there a way to randomise what drops from a block?

is there a way that i could make it when i break a block it drops something different every time such as it would drop cobblestone and then when you break the same type of block it would drop a bone block or is this not possible yet?

 

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
:/   Can you show a photo of…
Mon, 06/08/2020 - 19:45

:/

 

Can you show a photo of your "procedure page" in your block creator? (where you choose the trigger)

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I am so confused... It…
Mon, 06/08/2020 - 19:50

I am so confused... It should work.  Maybe you just got really unlucky with the 50% chance? ¯\_("/)_/¯

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ill destroy a cople more of…
Mon, 06/08/2020 - 19:52

ill destroy a cople more of the blocks like 32 or so and if i havn't got one shall i message you?

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
have you done it. If you…
Mon, 06/08/2020 - 20:02

have you done it. If you have, can you send a screen shot as i might of gone wrong somewhere in the code :)

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry, I just realized that …
Mon, 06/08/2020 - 20:08

Sorry, I just realized that [random 0,1] = [0.5] is actually a 1% chance, not a 50%. It should actually be [random 0,1]  [0.5] for a 50% chance. 

 

 

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
A 1% chance is a lot rarer…
Mon, 06/08/2020 - 20:09

A 1% chance is a lot rarer then you would think.

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks it works but…
Mon, 06/08/2020 - 20:19

thanks it works but sometimes both drop how do i make it so only 1 drops at a time?

What you would need to do…
Wed, 07/01/2020 - 20:25

What you would need to do for that would be to have one item drop if the random number is less than 0.5, and have the other item drop if the random number is greater than 0.5. That way, depending on the number, the block will only drop one or the other.

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry I didn’t respond…
Wed, 07/01/2020 - 20:45

Sorry I didn’t respond earlier, I couldn’t find this forum again.

But to solve that problem, use “If, Do, If Else” and have one of them in the second part.

Hope that makes sense.

Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Go into the drop category…
Sat, 07/04/2020 - 04:00

Go into the drop category for the block, set the number to zero. This way the block won't drop itself.

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
He already did that.
Sat, 07/04/2020 - 11:18

He already did that.

Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
he might have just read the…
Sat, 07/11/2020 - 16:18

he might have just read the end of the first page and thought it was the whole thread

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks for the help :)  
Sat, 12/12/2020 - 14:07

thanks for the help :)