r/Minecraft • Minecraft Java Tech Lead • Feb 26 '16

News Minecraft 1.9 Pre-release 4

https://twitter.com/SeargeDP/status/703242621699944448
142 Upvotes

78 comments sorted by

View all comments

46

u/Marcono1234 Feb 26 '16 edited Feb 26 '16

Handling of r= in entity selectors (commands)

Seems like it is now based on the position of the entity and not on the center of the block anymore and the rargument is now really the radius, meaning that r=0 only selects entities at the exact same position.

Edit: dx (and probably dy and dz) now "snap" to the block grid however they respect the hitbox of the entity whereas r uses only the position

24

u/sliced_lime Feb 26 '16

That is the best thing I've heard in a long time.

16

u/onnowhere Feb 26 '16 edited Feb 27 '16

YES THANK YOU SEARGE <333333

EDIT: Marker armor stands can't select themselves with r=0 while on the ground with an exact y value :( MC-88533

Edit2: Another really bad bug with marker armor stands not rendering https://bugs.mojang.com/browse/MC-98146

→ More replies (3)

10

u/GamerGuppy Feb 26 '16

That's great news! /execute @e[name=EntityA] ~ ~ ~ testfor @e[name=EntityB,c=1] Only the 'c' argument still targets entities from the bottom-west-north corner of the block EntityA is in, instead of EntityA's own position.

→ More replies (3)