List of server commands/entity/en: Difference between revisions
From Vintage Story Wiki
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
**<code>/entity cmd [subcommand]</code><br /> Issue commands on existing entities | **<code>/entity cmd [subcommand]</code><br /> Issue commands on existing entities | ||
***<code>/entity cmd stopanim</code><br /> Stop an entity animation. | ***<code>/entity cmd stopanim</code><br /> Stop an entity animation. | ||
***<code>/entity cmd stoptask</code><br /> | ***<code>/entity cmd stoptask</code><br /> Stop an AI task. | ||
***<code>/entity cmd setattr</code><br /> Set entity attributes. | ***<code>/entity cmd setattr</code><br /> Set entity attributes. | ||
***<code>/entity cmd setgen</code><br /> Set entity generation. | ***<code>/entity cmd setgen</code><br /> Set entity generation. | ||
Line 34: | Line 34: | ||
</onlyinclude> | </onlyinclude> | ||
{{ll|List of server commands|List of server commands}} |
Latest revision as of 06:36, 6 August 2023
/entity [subcommand]
Spawn, remove, and count entities (item drops, creatures, etc)./entity cmd [subcommand]
Issue commands on existing entities/entity cmd stopanim
Stop an entity animation./entity cmd stoptask
Stop an AI task./entity cmd setattr
Set entity attributes./entity cmd setgen
Set entity generation./entity cmd setlact
Set entity lactating./entity cmd move
Move a creature./entity cmd kill
Kill a creature./entity cmd wipeall
Removes all entities except players from all loaded chunks.
/entity debug [0|1]
Enable entity debug mode, this will send continous debug information to all connected clients, which are displayed above the entity if the client used the command .clientConfig showEntitydebuginfo 1/entity spawndebug [0|1]
Enable entity spawn debug mode./entity count [entityfilter]
Count entities by code/filter and show a summary./entity countg [entityfilter]
Count entities by code/filter and show a summary grouped by first code part./entity spawnat [entitytype] [amount] [position] [radius]
Spawn an entity by type at given position, within a given radius. Valid types can be found in the survival mod assets folder /entities./entity remove [entityfilter]
Remove selected creatures.
entity filter is either a player name, or else one of the following selection codes:
s[]
for self.l[]
for the entity currently looked at.p[]
for all players.e[]
for all entities.
Inside the square brackets, one or more filters can be added, to be more selective. Filters include name, type, class, alive, range. For example, e[type=gazelle,range=3,alive=true]
.
The filters minx/miny/minz/maxx/maxy/maxz can also be used to specify a volume to search, coordinates are relative to the command caller's position.
Find the entity id by using .clientConfig showEntityDebuginfo. Useful for removing a specific trader permanently, for instance.
This argument may be omitted if the remainder of the command makes sense, in which case it will be interpreted as self.