List of server commands/entity: Difference between revisions
From Vintage Story Wiki
No edit summary |
No edit summary Tags: Mobile edit Mobile web edit |
||
Line 1: | Line 1: | ||
<languages/> | |||
<translate> | |||
<onlyinclude> | |||
*<code>/entity [spawn|countbytype|removebytype|countbyclass|removebyclass|listnearest|debug|removebyid]</code><br /> Spawn, remove, and count entities (item drops, creatures, etc). | *<code>/entity [spawn|countbytype|removebytype|countbyclass|removebyclass|listnearest|debug|removebyid]</code><br /> Spawn, remove, and count entities (item drops, creatures, etc). | ||
**<code>/entity spawn [entitytype]</code><br /> Spawn an entity by type. Valid types can be found in the survival mod assets folder /entities. | **<code>/entity spawn [entitytype]</code><br /> Spawn an entity by type. Valid types can be found in the survival mod assets folder /entities. | ||
Line 10: | Line 14: | ||
**<code>/entity debug [0|1]</code><br /> 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''' | **<code>/entity debug [0|1]</code><br /> 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''' | ||
**<code>/entity removebyid [entityid]</code><br /> Used to remove one specific entity. Find the entity id by using ".clientConfig showEntityDebuginfo". Useful for removing a specific trader permanently, for instance. | **<code>/entity removebyid [entityid]</code><br /> Used to remove one specific entity. Find the entity id by using ".clientConfig showEntityDebuginfo". Useful for removing a specific trader permanently, for instance. | ||
</onlyinclude> | |||
[[List of client commands]] | |||
</translate> |
Revision as of 23:53, 22 February 2022
/entity [spawn|countbytype|removebytype|countbyclass|removebyclass|listnearest|debug|removebyid]
Spawn, remove, and count entities (item drops, creatures, etc)./entity spawn [entitytype]
Spawn an entity by type. Valid types can be found in the survival mod assets folder /entities./entity countbytype [entitytype]
Count how many entities of a given type exist.entitytype
can use wildcards, egdrifter-*
counts drifters of any type./entity removebytype [entitytype]
Remove all entities of a given type.entitytype
can use wildcards./entity remove [entitytype]
Short hand for /entity removebytype/entity countbyclass [entityclass]
Count how many entities of a given class, such asEntityItem
orEntityAgent
, exist./entity countg
List a summary of all nearby entities, grouped by the first code part (wolf, sheep, etc)/entity removebyclass [entityclass]
Remove all entities of a given class./entity listnearest [x y z] (ver-range) (hor-range)
Show a summary of all nearby entities at given range. If x/y/z coords are not supplied, the current player position is taken/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 removebyid [entityid]
Used to remove one specific entity. Find the entity id by using ".clientConfig showEntityDebuginfo". Useful for removing a specific trader permanently, for instance.