Minecraft entity locating [closed]
I was just wondering if I can use tilde's in setting a scoreboard count or something. Ideally what I want to do is that the location of an entity to three objectives, the X, Y, and Z, so that I can run a fill command. Thanks
Best Answer
There is no easy way to set a scoreboard objective to X Y Z using tildes or JSon or anything like that.
One possible way to do it would be to summon a "tracker" entity at 0,0,0, have it detect (using dz dy dz) which direction the entity to locate is from this tracker entity, teleport the tracker one block in that direction, increment/decrement X, Y, or Z, then repeat until the entities are on top of eachother.
I would explain that method in more detail, but even once you have the coordinates in a scoreboard objective there's not really anything you can do with them, there's no way to use them in a /fill command.
What I would recommend instead is using /execute and then tildes straight into the /fill command. For example, to fill a region from 10,10,10 to the entity's location, you could run:
/execute @e[name=FillEntity] ~ ~ ~ /fill ~ ~ ~ 10 10 10 stone
I'd need more information about what you're actually trying to do though. If you're wanting to fill an area between two dynamic points (rather than a dynamic and a static) then it'd be hundreds of times harder.
Pictures about "Minecraft entity locating [closed]"
![Minecraft entity locating [closed] - Back view of traveling couple in love wearing casual clothes walking with luggage and hugging while strolling along sidewalk together during vacation Minecraft entity locating [closed] - Back view of traveling couple in love wearing casual clothes walking with luggage and hugging while strolling along sidewalk together during vacation](/assets/images/minecraft_entity_locating_closed_1.jpeg)
![Minecraft entity locating [closed] - Background of foamy waving blue sea water Minecraft entity locating [closed] - Background of foamy waving blue sea water](/assets/images/minecraft_entity_locating_closed_2.jpeg)
![Minecraft entity locating [closed] - Desk Globe on Shallow Focus Lens Minecraft entity locating [closed] - Desk Globe on Shallow Focus Lens](/assets/images/minecraft_entity_locating_closed_3.jpeg)
Is Redstone an entity?
These are the current blocks that hold block entities....List of block entities.Block EntityUsageRedstone ComparatorTo store its output strength.BedTo store color\u200c [BedrockEditiononly] and for rendering the block.26 more rowsIs there a way to locate entities in Minecraft?
The @e selector finds entities of any type. The c= argument selects a certain count. If this number is positive, it will select these in order from closest to furthest. c=1 will select the nearest entity.How To Fix The Ticking Entity Crash in Minecraft
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Aksonsat Uanthoeng, Andrea Piacquadio, roberto carrafa, NastyaSensei
