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

Started by UtahPlaysYT on

Topic category: General discussion

Active 4 years ago
Joined Jul 2019
Points:
728

User statistics:

  • Modifications: 0
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 30
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?

 

Active 3 years ago
Joined Mar 2020
Points:
1205

User statistics:

  • Modifications: 2
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 985
:/   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)

Active 3 years ago
Joined Mar 2020
Points:
1205

User statistics:

  • Modifications: 2
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 985
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? ¯\_("/)_/¯

Active 4 years ago
Joined Jul 2019
Points:
728

User statistics:

  • Modifications: 0
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 30
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?

Active 4 years ago
Joined Jul 2019
Points:
728

User statistics:

  • Modifications: 0
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 30
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 :)

Active 3 years ago
Joined Mar 2020
Points:
1205

User statistics:

  • Modifications: 2
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 985
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. 

 

 

Active 3 years ago
Joined Mar 2020
Points:
1205

User statistics:

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

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

Active 4 years ago
Joined Jul 2019
Points:
728

User statistics:

  • Modifications: 0
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 30
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?

Active 3 weeks ago
Joined May 2018
Points:
1102

User statistics:

  • Modifications: 8
  • Forum topics: 36
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 310
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.

Active 3 years ago
Joined Mar 2020
Points:
1205

User statistics:

  • Modifications: 2
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 985
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.

Active 1 year ago
Joined Apr 2015
Points:
1027

User statistics:

  • Modifications: 0
  • Forum topics: 51
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 110
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.

Active 3 years ago
Joined Mar 2020
Points:
1205

User statistics:

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

He already did that.

Active 1 year ago
Joined Sep 2018
Points:
728

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 22
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

Active 4 years ago
Joined Jul 2019
Points:
728

User statistics:

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

thanks for the help :)