Skip to content

Instantly share code, notes, and snippets.

@PG85
Created February 14, 2020 21:25
Show Gist options
  • Save PG85/cb8e48fd57b060febda4ddd546f8e27c to your computer and use it in GitHub Desktop.
Save PG85/cb8e48fd57b060febda4ddd546f8e27c to your computer and use it in GitHub Desktop.
dimension settings
###########################
# World provider settings #
###########################
# World provider settings for this world. These settings are still in development, may not all work (please submit an issue on the git) and may be subject to change in upcoming releases.
# A message to display to the user when they transfer to this dimension.
WelcomeMessage:
# A Message to display to the user when they transfer out of this dimension.
DepartMessage:
# A boolean that tells if a world has a sky or not. Used for calculating weather and skylight. Also affects GetActualHeight(), hasSkyLight = false worlds are seen as 128 height worlds, which affects nether portal placement/detection.
HasSkyLight: true
# Returns 'true' if in the "main surface world", but 'false' if in the Nether or End dimensions. Affects: Clock, Compass, sky/cloud rendering, allowed to sleep here, zombie pigmen spawning in portal frames.
IsSurfaceWorld: true
# True if the player can respawn in this dimension (true = overworld, false = nether).
CanRespawnHere: true
# True for nether, any water that is placed vaporises.
DoesWaterVaporize: false
# Returns true if the given X,Z coordinate should show environmental fog. True for Nether.
DoesXZShowFog: false
# Set this to true if you want to use the fog color settings below.
UseCustomFogColor: false
FogColorRed: 0.20000000298023224
FogColorGreen: 0.029999999329447746
FogColorBlue: 0.029999999329447746
# Is set to false for End (black sky?)
IsSkyColored: true
CloudHeight: 128
CanDoLightning: true
CanDoRainSnowIce: true
# If true then the sky will be locked at midnight with the moon and stars above but the world will be lit as if it were day time. Useful for space dimensions.
IsNightWorld: false
# A double value representing the Y value relative to the top of the map at which void fog is at its maximum. The default factor of 0.03125 relative to 256, for example, means the void fog will be at its maximum at (256*0.03125), or 8.
VoidFogYFactor: 0.03125
# A value above 0.0, defaults to 0.08. Affects entities jumping and falling. 0.04 would result in half the gravity and falling damage.
# NOTE: Broken for Forge 1.11.2 MP atm, should work fine for SP and 1.12.2 SP & MP.
GravityFactor: 0.08
# Determine if the cursor on the map should 'spin' when rendered, like it does for the player in the nether.
ShouldMapSpin: false
# Called to determine if the chunk at the given chunk coordinates within the provider's world can be dropped. Used in WorldProviderSurface to prevent spawn chunks from being unloaded.
CanDropChunk: false
# Dimension that players respawn in when dying in this dimension, defaults to 0, only applies when canRespawnHere = false.
RespawnDimension: 0
# The dimension's movement factor. Whenever a player or entity changes dimension from world A to world B, their coordinates are multiplied by worldA.provider.getMovementFactor() / worldB.provider.getMovementFactor(). Example: Overworld factor is 1, nether factor is 8. Traveling from overworld to nether multiplies coordinates by 1/8.
MovementFactor: 1
# Similar to the /give command, gives players items when they enter a dimension/world.
# Example (single): { "flint_and_steel", "1" }
# Example (single): { "diamond_sword", "1", "0", "{ench:[{id:16,lvl:5}]}" } // 0 is metaDataString
# Example (multiple): [{ "diamond_sword", "1", "0", "{ench:[{id:16,lvl:5}]}" }, { "diamond_helmet", "1", "0", "{ench:[{id:16,lvl:5}]}" }]
# Use -1 as amount to remove all matching items.
ItemsToAddOnJoinDimension:
# The opposite of the /give command, removes items from players inventories when they enter a dimension/world.
# Example (single): { "flint_and_steel", "1" }
# Example (single): { "diamond_sword", "1", "0", "{ench:[{id:16,lvl:5}]}" } // 0 is metaDataString
# Example (multiple): [{ "diamond_sword", "1", "0", "{ench:[{id:16,lvl:5}]}" }, { "diamond_helmet", "1", "0", "{ench:[{id:16,lvl:5}]}" }]
# Use -1 as amount to remove all matching items.
ItemsToRemoveOnJoinDimension:
# Similar to the /give command, gives players items when they leave a dimension/world.
# Example (single): { "flint_and_steel", "1" }
# Example (single): { "diamond_sword", "1", "0", "{ench:[{id:16,lvl:5}]}" } // 0 is metaDataString
# Example (multiple): [{ "diamond_sword", "1", "0", "{ench:[{id:16,lvl:5}]}" }, { "diamond_helmet", "1", "0", "{ench:[{id:16,lvl:5}]}" }]
# Use -1 as amount to remove all matching items.
ItemsToAddOnLeaveDimension:
# The opposite of the /give command, removes items from players inventories when they leave a dimension/world.
# Example (single): { "flint_and_steel", "1" }
# Example (single): { "diamond_sword", "1", "0", "{ench:[{id:16,lvl:5}]}" } // 0 is metaDataString
# Example (multiple): [{ "diamond_sword", "1", "0", "{ench:[{id:16,lvl:5}]}" }, { "diamond_helmet", "1", "0", "{ench:[{id:16,lvl:5}]}" }]
# Use -1 as amount to remove all matching items.
ItemsToRemoveOnLeaveDimension:
# Similar to the /give command, gives players items when they respawn in a dimension/world.
# Example (single): { "flint_and_steel", "1" }
# Example (single): { "diamond_sword", "1", "0", "{ench:[{id:16,lvl:5}]}" } // 0 is metaDataString
# Example (multiple): [{ "diamond_sword", "1", "0", "{ench:[{id:16,lvl:5}]}" }, { "diamond_helmet", "1", "0", "{ench:[{id:16,lvl:5}]}" }]
# Use -1 as amount to remove all matching items.
ItemsToAddOnRespawn:
# Set this to true to set the server spawn point to SpawnPointX, SpawnPointY, SpawnPointZ
SpawnPointSet: false
# Use this with SpawnPointSet: true to set a spawn coordinate.
SpawnPointX: 0
# Use this with SpawnPointSet: true to set a spawn coordinate.
SpawnPointY: 0
# Use this with SpawnPointSet: true to set a spawn coordinate.
SpawnPointZ: 0
# When set to false players cannot break blocks in this world. Defaults to: true
PlayersCanBreakBlocks: true
# When set to false explosions cannot break blocks in this world. Defaults to: true
ExplosionsCanBreakBlocks: true
# When set to false players cannot place blocks in this world. Defaults to: true
PlayersCanPlaceBlocks: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment