-
Notifications
You must be signed in to change notification settings - Fork 25
Attributes
Zach de Koning edited this page Jun 22, 2014
·
6 revisions
Attributes are predefined configuration variables that allow you to easily enable, disable or alter features of your map. A table of map attributes as well as what they do, their default values and accepted data types can be found below:
| Attribute | Default value | Data type | Explanation |
|---|---|---|---|
| allowBuild | true | boolean | Toggle building on a map |
| disabledDrops | {} | Material[] Array | Disables certain item drops |
| disabledBlocks | {} | Material[] Array | Disables the use of certain blocks |
| pearlDamage | true | boolean | Toggles ender pearl teleport damage |
| timeLock | Map.Time.NONE | Map.Time | Locks the map's time to a specific time. |
| autoSpawnProtection | false | boolean | Toggles automatic spawn protection by giving invincibility potions to players on spawn. |
| spawnProtectionDuration | 0 | Integer | Sets amount of time to give invincibility potion for. autoSpawnProtection must be set to true for this to be valid. |
| blockBuildLimit | 256 | Integer | Set max build height |
| requiredFFAScore | 20 | Integer | Set the required FFA score to win |
| fireSpread | true | boolean | Toggle fire spread |
| mergeTools | false | boolean | Automatically merge tools upon pickup |
| tdmTime | 15 | Integer | Sets the time for a TDM game |
| removeArrowsOnCollision | false | boolean | Toggle auto removal of arrows on impact. (Does not affect player damage) |
| allowPhysicalPlayerDamage | true | boolean | Toggle players being able to damage one another |
| allowPhysicalDamage | true | boolean | Toggle any physical player damage |
| allowTerrainExplosion | true | boolean | Toggle terrain explosion damage |
| autoIgniteTNT | false | boolean | Toggle automatic TNT ignition |
| lives | 1 | Integer | Sets the max amount of lives for LMS or LTS games |