Skip to content

/kill @e[type=!(entity)] seems to work but also creates a stacktrace #10928

@kait-superheroic

Description

@kait-superheroic

Stack trace

https://mclo.gs/0JVVedL

Plugin and Datapack List

plugins
[22:19:48 INFO]: Server Plugins (1):
[22:19:48 INFO]: Bukkit Plugins:
[22:19:48 INFO]: - WorldEdit

datapack list
[22:19:50 INFO]: There are 3 data pack(s) enabled: [vanilla (built-in)], [file/bukkit (world)], [paper (built-in)]
[22:19:50 INFO]: There are no more data packs available

Actions to reproduce (if known)

/kill @e[type=!player] seems to work but creates the stacktrace
/kill @e[type=player] will work without issue

player can be replaced with any valid entity

Paper version

version
[22:19:53 INFO]: This server is running Paper version 1.21-15-master@2df432f (2024-06-19T19:19:30Z) (Implementing API version 1.21-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21-7-d23825a (MC: 1.21)

Other

when executing one of the "/kill @e[type=! " commands in game, you get the "An unexpected error occurred trying to execute that command" error and can see the trace in console. doing one of the "/kill @e[type= " commands works fine. it's only on the kill command as well. "/effect" works fine no matter if you use "=" or "=!" , so the issue seems to just be with "/kill" using "=!" for matching.

i tried this on a single player vanilla world on 1.21 as well and the issue did not occur. my testing on paper was also on the 1.21 vanilla client.

another person also reported this in discord (https://discord.com/channels/289587909051416579/289587909051416579/1252524362662281258)

this is my first time reporting issues, apologies if formatting or anything is bad.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.version: 1.21Game version 1.21

    Type

    No fields configured for Bug.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions