/ tp and / teleport - different commands that teleport a single player or entity to a specific position (even underground).Before you can teleport, you need to enable cheats in your Minecraft world.spreadplayers 0 0 50 100 false Alice Bob.To teleport one random player from each of three teams (Red, Blue, and Green), as well as Alice and Bob, to random surface locations in a 200×200-block area centered on (0,0), with a minimum distance between players of 50 blocks:.To teleport all players by team to random surface locations in a 1,000×1,000-block area centered on (0,0), with a minimum distance between teams of 200 blocks:. The number of teams that these targets are in There is no enough space under to spread to There are too many targets to satisfy the requirement within the specified area or player: target fails to resolve to one or more entities (named players must be online) MaxRange: float is lower than spreadDistance: float plus one The arguments are not specified correctly Must be a player name, a target selector or a UUID. Must be a boolean (either true or false).īE: victim: target: CommandSelector Specifies the targets to spread. If true, targets on the same team are teleported to the same location. JE: : bool Specifies whether to keep teams together. And it must be greater than or equal to 1.0. Must be a Single-precision floating-point format number. JE: : integer Specifies the maximum height for resulting positions. In Bedrock Edition, it must be at least 1.0 greater than spreadDistance: float. In Java Edition, it must be greater than or equal to 1.0. In Bedrock Edition, it should be at least 0.0.īE: maxRange: float: float Specifies the maximum distance on each horizontal axis from the center of the area to spread targets (thus, the area is square, not circular). In Java Edition, it must be greater than or equal to 0.0. Accepts tilde and caret notations.īE: spreadDistance: float: float Specifies the minimum distance between targets. Must be a two-dimensional coordinates with floating-point number elements. Spreadplayers spreadplayers under Spreads players to resulting position under the maximum height.īE: x: value: RelativeFloat and z: value: RelativeFloat Specifies the center of the region to spread targets to. This problem does not occur for the selector and dispensers. This effect is very subtle and is not visible for short radius but can be a problem if you want a uniform random generation. It has a Gaussian distribution as the positions closer to the position set in the command have a higher chance of having an entity on them. The / spreadplayers command does not have a uniform distribution over the surface. But the position is calculated in the command's execution dimension. In Bedrock Edition, the command changes an entity's position without changing dimension. In Java Edition, the entities are spreaded to the command's execution dimension. Targets are always placed on the top non- air block (whether it's solid or not) at a horizonal location (if not in under mode), and never on lava, water, bubble column, or fire.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |