TransWikia.com

can you make random items drop from random blocks?

Arqade Asked on June 7, 2021

how do I make a random Item drop from a random block. Is it /execute {blocks:"minecraft:stone"} summon Item [name=coal] or is it super long or can I not do It (on xbox)

One Answer

You can set up a dropper that shoots an item/block when a /testfor @e[type=item,name="Item Name",c=1] returns true.

Then have a command block that waits say 5 ticks to fire that teleports the dropped item (/tp @e[type=item,r=3,name="Alternate Item"] @e[type=item,name="Item Name",c=1]) and after that /kill @e[type=item,name="Item Name",c=1] the first item.

You can use this method for randomization once you've got the basics set up.

Answered by Penguin on June 7, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP