hey, i want to use the "ray_trace_target" tag and only target living entities.
Is there an easy way to get a list of all nonliving entities?
I wanted to use the "ignore" option to ignore all nonliving entity types.
Right now im going to use ignore=<list[DROPPED_ITEM|EXPERIENCE_ORB|AREA_EFFECT_CLOUD|EGG|LEASH_HITCH . . . . etc]>
going through spigot's entity type page and adding each nonliving one to the list...
There has got to be a better way to do this, is there not?
I tried <server.entity_types.filter[is_living]> but that doesnt really work because is_living seems to be for actual entities, not for elementtags of entity types..
#(Blockutis) list of living or non-living entities
18 messages · Page 1 of 1 (latest)
(Blockutis) list of living or non-living entities
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
Sorry i got a bit mixed up, im actually using entities= to specify a list of all living entities, excluding nonliving ones.
this list:
<server.entity_types.exclude[DROPPED_ITEM|EXPERIENCE_ORB|AREA_EFFECT_CLOUD|EGG|LEASH_HITCH|LEASH_HITCH|ARROW|SNOWBALL|FIREBALL|FIREBALL|ENDER_PEARL|ENDER_SIGNAL|SPLASH_POTION|THROWN_EXP_BOTTLE|ITEM_FRAME|WITHER_SKULL|PRIMED_TNT|FALLING_BLOCK|FIREWORK|SPECTRAL_ARROW|SHULKER_BULLET|DRAGON_FIREBALL||ARMOR_STAND|EVOKER_FANGS|MINECART_COMMAND|BOAT|MINECART|MINECART_CHEST|MINECART_FURNACE|MINECART_TNT|MINECART_HOPPER|MINECART_MOB_SPAWNER|LLAMA_SPIT|ENDER_CRYSTAL|TRIDENT|GLOW_ITEM_FRAME|MARKER|CHEST_BOAT|BLOCK_DISPLAY|INTERACTION|ITEM_DISPLAY|TEXT_DISPLAY|FISHING_HOOK|LIGHTNING|UNKNOWN]>
So, is there an easier/neater way of getting that list? or only targeting living entities for ray_trace_target
An EntityTag represents a spawned entity, or a generic entity type.
Note that players and NPCs are valid EntityTags, but are generally represented by the more specific
PlayerTag and NPCTag objects.
Note that a spawned entity can be a living entity (a player, NPC, or mob) or a nonliving entity (a painting, item frame, etc).
This object type is flaggable.
Flags on this object type will be stored in the world chunk files as a part of the entity's NBT.
Prefix
e
Base Type
ElementTag
Implements
FlaggableObject, PropertyHolderObject
Format
The identity format for entities is a spawned entity's UUID, or an entity type.
For example, 'e@abc123' or 'e@zombie'.
Traces a line from this location towards the direction it's facing, returning the first hit entity (if any).
This is similar to !tag LocationTag.precise_target and !tag PlayerTag.target, except offering more options for how the ray trace is performed.
For ray tracing locations, see !tag LocationTag.ray_trace.
Optionally specify:
range: (defaults to 200) a maximum distance (in blocks) to trace before giving up.
blocks: (defaults to true) specify "false" to ignore all blocks, ...
Group
world
Returns
EntityTag
Examples
# Removes the entity a player is looking at.
- define target <player.eye_location.ray_trace_target[ignore=<player>]||null>
- if <[target]> != null:
- remove <[target]>
# Returns any player within the view of an NPC.
- define target <npc.eye_location.ray_trace_target[entities=player;raysize=2]||null>
# Highlights an entity through any number or types of blocks.
- define target <player.eye_location.ray_trace_target[ignore=<player>;blocks=false]||null>
- if <[target]> != null:
- adjust <[target]> glowing:true
entities=living
perfect, tysm!
np
always remember matchables, they're your bread and butter
to check them, just search !obj entitytag, or locationtag, etc
yeah thats just so much better than what i was doing lmao