mojira.dev
MC-259203

The execute on owner sub-command does not select the owner of projectiles

What's Happening

The new `execute on owner` subcommand allows selection of the owner for some entities that have an `Owner` tag (i.e. tamable animals), but not for others (i.e. projectiles).

What Should Happen

The `execute on owner` subcommand should select the owner of any entity that has an `Owner` tag.

Steps to Reproduce

  1. Spawn in and tame a wolf.

  2. Run the command execute as @e[type=wolf,sort=nearest,limit=1] on owner run me is the owner

  3. The chat will display "[Playername] is the owner"

  4. Fire an arrow.

  5. Run the command execute as @e[type=arrow,sort=nearest,limit=1] on owner run me is the owner

  6. The chat will not display anything.

Linked issues

Comments 9

The article mentions "owner of the executing entity, if it is a tameable animal (like cats, wolves or parrots)", so likely intended.

This is a feature request.

How so? Projectiles absolutely have an owner, so using "owner" is expected to return the shooter/thrower.

The Owner NBT of a projectile is a player's UUID, The Owner NBT of a pet is a player's UUID, It's the exact same NBT, but one works with "execute on owner", and one doesn't, I would consider that a bug.

 

The thrower of a projectile is considered the "Owner" in NBT standarts, so why wouldn't throwers be considered owners in "execute on owner" too, doesn't make sense

 

I dont think there is downsides to fixing this too, it would unlock so many possibilities for datapacks

Let's not start a discussion in these comments. Moesh has said this should be a feature request so I made one here I hope everyone who wants to see it added will vote for this feature.

Because feedback site posts need to be approved first, and they get deleted silently tons of times, or just never get noticed.

Seems it's still pending approval. Just wait a day. I might post an update here once it gets approved as well

They just added "Execute on origin" 23w04a

edit: its not "execute on shooter", it is "execute on origin"

dqwertyc

(Unassigned)

Community Consensus

Commands

23w03a

Retrieved