#(sikashmc) How to foreach every dropped item in a server
15 messages · Page 1 of 1 (latest)
(sikashmc) How to foreach every dropped item in a server
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.
!t world.entities
Returns a list of entities in this world.
Optionally specify an entity type matcher to filter down to.
ListTag(EntityTag)
!t server.worlds
- foreach <server.worlds> as:world:
- foreach <[world].entities[dropped_item]>:
- ...
if you want to clear dropped items,
!c remove
entity
remove [<entity>|...] (world:<world>)
Despawns an entity or list of entities, permanently removing any NPCs.
Removes the selected entity. May also take a list of entities to remove.
Any NPC removed this way is completely removed, as if by '/npc remove'.
For temporary NPC removal, see !command despawn.
If a generic entity name is given (like 'zombie'), this will remove all entities of that type from the given world.
Optionally, you may specify a world to target.
(Defaults to the world of the player running the command)
you dont need to loop through the entities
just - remove <[world].entities[dropped_item]>
thx