Search results
Results from the WOW.Com Content Network
It is really only effective for up to 10 outputs. The standard way to get a random output in Bedrock Edition is /scoreboard players random, an MCBE only command. Syntax: scoreboard players random <player: target> <objective: string> <min: int> <max: int>. This will set a scoreboard number to a random value between min and max.
1.12- : scoreboard players set @a[score_RNG_min=9] RNG 0. and you're done. To use your random numbers, make one command block for every single outcome and include [score_RNG=X,score_RNG_min=X] with your target selector arguments, where X is the score to use, running from 0 to 8 (!). Trigger all of these at the same time.
3. Try the /spreadplayers command, which spreads entities in a random area. The syntax is /spreadplayers <x> <z> <spreadDistance> <maxRange> <respectTeams> <player …>. In your case, you might want to try something like /spreadplayers ~ ~ 0 10000 false @a[r=5,c=1]. Share. Improve this answer.
Next, we power the command block by using one of multiple methods. 1: We modify the command block to set always active on. 2: We modify the command block to set powered to true. 3: We set a redstone block next to it. I will go with the 3rd. setblock 0 0 -1 redstone_block.
As far as I know, there is no way to directly generate a random number using commands, and there definitely isn't any way to then plug that random number into another command block. However, the spreadplayers command will do what you're after here. spreadplayers is designed to place groups of, or individual players, in random spots around the map.
This setup may replace any non-air block that is in a 100x4x100 block and about 33% stay the same as they were originally. You can change the amount of layers in the third command. The command to place the root armor stand should look like this: /summon minecraft:armor_stand ~ ~ ~ {Marker:1,Tags:[root,rootTwo,rootThree,stoneBricks],Invisible:1}
The exact spot is -1181 32 -131 in case that helps. I have tried to use an execute command for an armor stand, an invisible guy with his name visibly being ITEM DROP ZONE. this is the command for him: `. /summon armor_stand ~ ~ ~ {Invisible:1b,Invulnerable:1b,PersistenceRequired:1b,NoGravity:1b,CustomName:"ITEM DROP ZONE",CustomNameVisible:1b}
The below commands will give you a brush with a radius of 5 that exclusively targets stone brick (all kinds, including mossy and cracked) and replaces it with 70% regular stone brick (stonebrick:0), 10% mossy stone brick (stonebrick:1) and 20% cracked stone brick (stonebrick:2).
1. 1. Please don't assert that what you are asking for is possible. Minecraft has never had good support for randomness, and Bedrock Edition has a very restricted command format. It's hard enough to accomplish your task in Java Edition, let alone in Bedrock. So if you aren't 100% sure that what you're asking for is possible, please fall back to ...
Update: To be clear, I've got 3 commands, and I want 1 of the 3 to execute, effectively on loop. I've got a couple command blocks, each with some commands, and I want them to execute at random int...