mojira.dev
MC-137178

/effect give @e[distance, ...] not working for at least one case

Steps to reproduce

  1. Wait for some skeletons to spawn.

  2. Walk up to the skeletons.

  3. input the following command in the chat window

/effect give @e[distance=30,type=minecraft:skeleton] minecraft:instant_health 50

 

Expected Result:

The skeletons should have taken damage for a second or two, then died.

 

Actual Result:

"No entity was found" is displayed in red.

 

Note:

1. Omitting distance functions as expected.

2. My initial list of mob types was much longer, and all negations, but I pared it down and changed it to just skeletons determine which was at fault (distance or the mob list)

3. I want to create "spells" with limited reach. One set will harm undead. (Directly, setting them on fire, exploding them... you know, the fun stuff.) Without the ability to limit this command's reach, an entire subset of spells (direct damage) can't be crafted at this time.

Linked issues

Attachments

Comments 7

Please do not mark unreleased versions as affected.
You don't have access to them yet.

I had two options available. Neither of which was a current version. Please check with your JIRA admin about why that might have been the case.

Use distance=..30 to mean "30 or less"

Minecraft 1.13.1 is the current version of Minecraft. Which version do you think is missing?

@violine1101 I had 1.14 and "future version - 1.13.1" as the only two items in the drop-down that I saw. I've attached a screenshot as it appears I can still edit this item. The red item I've hovered over was the item I selected. I got this to appear by just clicking the drop-down arrow.

This behaviour is documented in the Minecraft wiki for example.

1.13.1 doesn't show up in the menu above because it's already selected as an affected version. When creating a new ticket, 1.13.1 shows up in the "Released Versions" section; "Future version - 1.13.1+" and "Future version - 1.14" show up in the "Unreleased Versions" section.

When I created the bug I only had the "Unreleased Versions" showing up. I can see that's been rectified since. I deleted my other question as I found the documentation. I'll be entering a suggestion regarding the documentation later. (i.e. it's too unwieldy, putting it all in one page...) 

Jason Daniels

(Unassigned)

Unconfirmed

Minecraft 1.13.1

Retrieved