List of server commands: Difference between revisions

From Vintage Story Wiki
added the new map info
No edit summary
(added the new map info)
 
(5 intermediate revisions by 5 users not shown)
Line 46: Line 46:


=== /giveblock ===
=== /giveblock ===
* <code>/giveblock [blockcode] [quantity] [toplayername] [attributes]</code><br /> <translate><!--T:61--> Creates an itemstack of the specified block in the specified quantity, and gives it to the specified player. The player must have an empty inventory slot to receive the itemstack. Quantity, toplayername and attributes are optional. The default quantity is 1. If player name is not set, the command user's own player is targeted. If attributes are specified, they must be written in the same format as in a JSON file (note: spacing is optional in JSONs and it will be easier to omit spaces here)</translate>
* <code>/giveblock [blockcode][{attributes}] [quantity] [toplayername]</code><br /> <translate><!--T:61--> Creates an itemstack of the specified block in the specified quantity, and gives it to the specified player. The player must have an empty inventory slot to receive the itemstack. Quantity, toplayername and attributes are optional. The default quantity is 1. If player name is not set, the command user's own player is targeted. Attributes may optionally be supplied in curly braces after the blockcode without a space between the block name and the braces. The attributes should be given in JSON format. Example: <code>/giveblock clutter{type: "barrel-metal1"}</code></translate>


=== /giveitem ===  
=== /giveitem ===  
Line 92: Line 92:
<!--T:108-->
<!--T:108-->
See dedicated page on {{ll|World Configuration|World Configuration}}</translate>
See dedicated page on {{ll|World Configuration|World Configuration}}</translate>
==== World map ====
All of the following work<ref>Tested 15 Mar 2024 in version 1.19.4</ref> in a singleplayer world to restore the parchment-style map to the classic colorful map:
* <code>/worldconfig colorAccurateWorldmap true</code>
* <code>/worldconfigcreate bool colorAccurateWorldmap true</code>
* <code>/player [playername] privilege grant colorAccurateWorldmap</code>
In a multiplayer world, the following restores the classic map for an individual:
* <code>/player [playername] privilege grant colorAccurateWorldmap</code>
while the following restores the classic map for all players:
* <code>/worldconfig colorAccurateWorldmap true</code>
* <code>/worldconfigcreate bool colorAccurateWorldmap true</code>
(needs confirmation)


=== /entity ===
=== /entity ===
Line 97: Line 111:


=== /time ===  
=== /time ===  
{{Messagebox
|title= Warning
|text= Using commands to modify time frequently has unwanted side effects.  To avoid losing a world, test time commands in a ''separate'' world, and/or create a ''backup''.
}}
{{:List of server commands/time{{#translation:}}}}
{{:List of server commands/time{{#translation:}}}}


Line 116: Line 136:


=== /autosavenow===
=== /autosavenow===
* <code>/autosavenow</code><br /> <translate> Autosaves the server.</translate>
* <code>/autosavenow</code><br /> <translate> <!--T:118--> Autosaves the server.</translate>


=== /list ===  
=== /list ===  
Line 160: Line 180:


=== /roomregdebug ===
=== /roomregdebug ===
Removed and replaced with <code>/debug room</code> as of version 1.19. These commands are kept for archival purposes.
* <code>/roomregdebug [list|hi|unhi]</code><br /> <translate><!--T:96--> Room registration debug tools.</translate>
* <code>/roomregdebug [list|hi|unhi]</code><br /> <translate><!--T:96--> Room registration debug tools.</translate>
** <code>/roomregdebug list</code><br /> <translate> <!--T:97--> Lists all rooms the player is in.</translate>
** <code>/roomregdebug list</code><br /> <translate> <!--T:97--> Lists all rooms the player is in.</translate>
Line 190: Line 212:
* {{ll|World Configuration|World Configuration}}
* {{ll|World Configuration|World Configuration}}
</translate>
</translate>
{{Game navbox}}
{{Navbox/modding}}
{{Navbox/modding}}
Confirmedusers, editor
1,052

edits