Commands/set
A sub command to '/bvz admin' is 'set'. Set is a very important command, it is used to edit the save data for an arena. This save data is all listed here, and this is how to use the bvz admin set command. An arena must be stopped to be able to use the set command. The set command has three major components, an 'arena', 'object' and 'value'. When put into the command, they must be put in in the format of '/bvz admin set <arena> <object> <value>'. An example command is '/bvz admin set arena min 2'. Now time for a description of each part of the command. Perm for all commands here is bvz.admin.
/bvz admin set <arena> <object> <value>
<arena>
The <arena> is the arena that is having an object be edited. It just has to be the name of any arena found in '/bvz list' but it must be stopped in order to edit it. The default name for an arena is 'arena' so well just use that in every example.
<object>
The <object> in the command is the part of the arena that is being edited. There are, as of now, 5 different kinds of objects: Numbers, Locations, Volumes, Doubles, and Data Types. They are broken up on the syntax of how a player edits them with a command.
Here are all the objects:
| Type | Name | Description |
|---|---|---|
| Number | Min | Minimum numbers of players needed to start the countdown in the lobby in order to start a game, duruing the game the number of players can go below this but if it reaches 0, the game is reset (it's empty) |
| Max | Maximum number of players allowed in a game at any time, the cap is 15 per game | |
| Wait | Amount, in seconds, that payers have to wait before the game starts | |
| Location | Lobby | Area where players are teleported when they join the lobby and during the recap phase of the game |
| Ledge1 | The first bounding point of the cuboid that defines the ledge, where players shoot from in-game. The ledge is where players are constrained during the game, if you've played Blocks V Zombies before, you know what this is, if not, it is basically where the players sit to shoot at the zombies that are trying to get to the end. | |
| Ledge2 | Second bounding point of the ledge | |
| Lawn1 | First bounding point of the lawn, the lawn needs to contain the path for zombies, the villager spawns, walls and any turrets. The villagers are what the zombies are attacking, players need to, from the ledge, defend the un-suspecting villagers from waves of zombies | |
| Lawn2 | Second bounding point of the lawn | |
| Volume | Lawn | A macro for setting lawn1 and lawn2 with world edit. If a player has world edit, this can be used to take the world edit selection and define lawn1 and lawn2 in one command instead of putting in all the other things. |
| Ledge | Same as lawn but for the ledge that players shoot from instead of the lawn | |
| Double | Diff | difficulty factor for game, all zombie's stats are multiplied by this. by default 1.0 (no modification), can be raised or lowered. (doubles are real numbers) |
| Data Types | wool | This saves the costs of the different color walls, wool is used to mark walls on the lawn and is covered more in the arena description. this holds the costs of different color walls based on data type which defines color. More explanation on data types here. |
<value>
The <value> is the part of the command that defines what the <object> in the arena is being set to. Each kind of <object> has it's own syntax for setting the value. Here is a list of the values' correct syntax and an example command. If you don't follow this syntax, it will reject your command.
| Type | Syntax | Example Command |
|---|---|---|
| /bvz admin set <arnea> <object> <args> | ||
| Number | Numbers are any integer, so just put a number, negative or positive, in <value>'s spot with any number in the <object>'s splot value. | /bvz admin set arena max 10 |
| Locations | Locations need to have 'me' to use the command sender's current position or a 'x y z' (with spaces between values) in <value>'s spot. Either way it will take the player's current world for the location's world (yes this is multi-world). x y and z must be integers and can't contain decimals. | /bvz admin set arena lobby me /bvz admin set arena lobby 100 74 -300 |
| Volumes | You need to have world edit on the server, and it is set by supplying 'we' in <value>'s spot. It will take your world edit selection and set locations dependent on the value's given. | /bvz admin set ledge we |
| Doubles | Doubles, or real numbers, can include decimals, ex:2.35 | /bvz admin set diff 0.8 |
| Data Types | Use a block in data types such as wool and put a ':' after it followed by a number to specify data type. Then put a space to specify the value being set with the data type. '/bvz admin set wool:5 8' will set wool with data type 5 (lime wool) to cost 8 points | /bvz admin set wool:3 6 |
Since this is used to set save data, here is an explanation of all save data that is saved in the Serialized files for the game.
Explanation of all save data
- Integers:
- Min: min number of players to start, not contiue, but start a game.
- Max: max number of players allowed in a game at any time.
- Wait: wait time for players in lobby before start.
- Locations:
- Lobby: where players are teleported for lobby.
- Ledge1 & 2: bounding points for ledge.
- Lawn1 & 2: same as ledge, but for lawn.
- Booleans:
- Enabled: self-explanatory.
- Doubles:
- Diff: difficulty factor for game, all zombie's stats are multiplied by this. by default 1.0 (no modification), can be raised or lowered. if put at 0, all zombies will instantly die because their health is multiplied by 0 and therefore is 0. factors affected are health, speed and damage
- Data:
- Wool: wool is for the costs of different walls, defined wool:0 through wool:15 (white wool to black wool). by default they are all set to 10.
If you have any questions, just ask them in the comments or pm me.
Comments