Advertisement
masa-

World Primer testing config 2019-05-25

Jun 10th, 2019
695
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.51 KB | None | 0 0
  1. # Configuration file
  2.  
  3. ##########################################################################################################
  4. # Commands
  5. #--------------------------------------------------------------------------------------------------------#
  6. # Command documentation:
  7. # There are a few substitutions available to use in the commands:
  8. # Basic number substitutions from world data:
  9. # {DIMENSION}
  10. # {SPAWN_X}
  11. # {SPAWN_Y}
  12. # {SPAWN_Z}.
  13. #
  14. # Also {SPAWN_POINT_X} etc. that return the spawn point instead of the possible spawn coordinate (like in the End).
  15. # Any occurences of those strings will be replaced by the current dimension ID,
  16. # or the coordinates of the spawn point respectively.
  17. #
  18. # Random numbers, integer and double type: {RAND:min,max},
  19. # for example {RAND:5,15} or {RAND:1.2,3.9} (the max value is exclusive)
  20. #
  21. # Real time/clock values:
  22. # {TIME_Y} => year (4 digits: 2017)
  23. # {TIME_M} => month (2 digits: 03)
  24. # {TIME_D} => day (2 digits: 04)
  25. # {TIME_H} => hour (2 digits: 09)
  26. # {TIME_I} => minute (2 digits: 05)
  27. # {TIME_S} => second (2 digits: 07)
  28. # {TIME_TICK} => current world total time in ticks
  29. # {TIME_TICK_DAY} => current world/day time in ticks
  30. #
  31. # The y-coordinate of the top-most block in the world in the given coordinates
  32. # (actually the air block above it): {TOP_Y:x,z} for example: {TOP_Y:-37,538}
  33. #
  34. # The x y z coordinates of the top-most block in the world in a random location around a given x,z location
  35. # (again, actually the air block above it): {TOP_Y_RAND:x,z;x-range,z-range}
  36. # for example: {TOP_Y_RAND:-37,538;32,32} would be the top block at a random location within
  37. # 32 blocks of x = -37, z = 538. That substitution will be replaced with a string like '-49 72 544' (without the quotes)
  38. #
  39. # For the player-specific commands, the following substitutions are available:
  40. # {PLAYER_X}, {PLAYER_Y}, {PLAYER_Z} and {PLAYER_NAME}
  41. #
  42. # Also {PLAYER_BED_X}, {PLAYER_BED_Y} and {PLAYER_BED_Z} for the last set (bed) spawn point.
  43. # There are also {PLAYER_BED_SPAWN_X}, {PLAYER_BED_SPAWN_Y} and {PLAYER_BED_SPAWN_Z} that also check that the bed exists,
  44. # or otherwise they will revert to the fallback world spawn point.
  45. # Note that these will thus load that one chunk to check for the bed.
  46. #
  47. # The player-specific commands can be targeted to specific counts (like the 6th respawn for example)
  48. # or a multiple of a count (similarly to the dim-loading-command prefix)
  49. # by prefixing the command like so: 'worldprimer-tracked-command-nth <count> <actual command>'
  50. # For example in the playerRespawnCommands:
  51. # worldprimer-tracked-command-nth 3 say The player {PLAYER_NAME} has respawned for the third time at {PLAYER_X}, {PLAYER_Y}, {PLAYER_Z}
  52. # worldprimer-tracked-command-nth %5 say The player {PLAYER_NAME} has respawned for some multiple of 5 times
  53. #
  54. # Note that the above only applies to the other player-specific commands, but not the playerChangedDimension commands.
  55. # For the playerChangedDimension commands, the same format works instead as for the dimension loading commands:
  56. # worldprimer-dim-command-nth 3 1 say The player {PLAYER_NAME} has entered The End (dimension {DIMENSION}) for the third time
  57. #
  58. # The substitutions also support very basic arithmetic operations [+-*/].
  59. # So you can do for example:
  60. # fill {SPAWN_X}-2 {SPAWN_Y}+3 {SPAWN_Z}-2 {SPAWN_X}+2 {SPAWN_Y}+7 {SPAWN_Z}+2 minecraft:emerald_block
  61. #
  62. # Note however that there is no actual order of operations/priorities/grouping.
  63. # The commands are parsed/substituted from the left, and if there is an arithmetic
  64. # operation immediately following the closing curly brace of a substitution, then the value
  65. # of the following string interpreted as a number is added to the substituted value.
  66. # That string following the arithmetic operation is first substituted recursively though,
  67. # which means that the order of operations is actually starting from the right.
  68. #
  69. # Both the substitutions and the arithmetic operations following them can be escaped by a preceding backslash '\',
  70. # if it should actually appear in the command as-is and not be substituted.
  71. # For example: 'say Foo bar \{SPANW_X}' would become 'say Foo bar {SPANW_X}' in the final command.
  72. # Or 'say Foo bar {SPAWN_X}\+16' would become 'say Foo bar 34+16', assuming the spawn x-coordinate is 34.
  73. #
  74. # Note, that the earlyWorldCreationCommands and the earlyWorldLoadingCommands
  75. # DO NOT have a world available yet, so the substitutions will NOT happen for those commands.
  76. # Thus, those commands also can't do anything that would require a world.
  77. # An example of this is setting the game rules - those are kept in the WorldInfo object,
  78. # which is stored in the World, so the overworld specifically needs to be loaded for changing any game rules.
  79. #
  80. # Additionally, the postWorldCreationCommands and the postWorldLoadingCommands will use
  81. # the Overworld (or whichever world is dimension 0) for the substitutions.
  82. #
  83. # So it's mostly the dimension loading commands that benefit from the {DIMENSION} substitution.
  84. #
  85. # Note also, that by default in vanilla/Forge, ALL dimensions use the WorldInfo from the overworld,
  86. # which means that they will have the exact same spawn coordinates and game rules etc. as the overworld.
  87. # Some mods may change this so that dimensions can have separate spawn points, game rules etc.
  88. # One such mod is Just Enough Dimensions.
  89. ##########################################################################################################
  90.  
  91. Commands {
  92. # Commands to run when a dimension gets loaded.
  93. # You can target these to only be run when a specific dimension loads
  94. # by specifying the command as 'worldprimer-dim-command <dimId> <command>'.
  95. # So for example: 'worldprimer-dim-command 1 say The End has loaded!'.
  96. # You can also run a command only when a dimension loads for specific number of times:
  97. # 'worldprimer-dim-command-nth <load count> <dim id> <command>'.
  98. # This would run the command only when the dimension loads for the 'load count'-th time.
  99. # The count is incremented before the commands are parsed, so in other words the first load is 1, not 0.
  100. # You can also run the command every count-th time the dimension loads,
  101. # by prefixing the count with a '%', so for example:
  102. # worldprimer-dim-command-nth %5 1 say The End has loaded some multiple of 5 times!
  103. # An asterisk '*' can be used as the dimension ID to run
  104. # the command in all dimensions (mostly makes sense for the nth variant).
  105. S:dimensionLoadingCommands <
  106. say Dimension {DIMENSION} is loading
  107. #worldprimer-dim-command 1 say The End has loaded!
  108. #worldprimer-dim-command 1 worldprimer-load-chunks -1 -1 0 0
  109. #worldprimer-dim-command 1 fill 10 0 10 -10 7 -10 minecraft:bedrock
  110. #worldprimer-dim-command 1 fill 9 1 9 -9 6 -9 minecraft:air
  111. #worldprimer-dim-command 1 say Finished building your room
  112. #worldprimer-dim-command -1 say The Nether has loaded!
  113. #worldprimer-dim-command -1 worldprimer-load-chunks 100 100 100 100
  114. #worldprimer-dim-command -1 fill 1600 130 1600 1615 140 1615 minecraft:diamond_block
  115. #worldprimer-dim-command-nth 3 1 say The End has loaded for the 3rd time!
  116. #worldprimer-dim-command-nth %4 1 say The End has loaded a multiple of 4 times!
  117. #worldprimer-dim-command-nth 4 -1 say The Nether has loaded for the 4th time!
  118. #worldprimer-dim-command-nth %5 -1 say The Nether has loaded a multiple of 5 times!
  119. #worldprimer-dim-command-nth 1 6 worldprimer-load-blocks {SPAWN_X}-3 {SPAWN_Z}-3 {SPAWN_X}+3 {SPAWN_Z}+3
  120. #worldprimer-dim-command-nth 1 6 fill {SPAWN_X}-3 {SPAWN_Y}-1 {SPAWN_Z}-3 {SPAWN_X}+3 {SPAWN_Y}-1 {SPAWN_Z}+3 minecraft:stone variant=smooth_diorite
  121. #worldprimer-dim-command-nth 1 6 say Test{SPAWN_X} Test\{SPAWN_X} Spawn: {SPAWN_X} \{SPAWN_X} {SPAWN_X}+10 {SPAWN_X}\+10 \{SPAWN_X}+10 {SPAWN_X}-10 {SPAWN_X}\-10 \{SPAWN_X}-10
  122. #worldprimer-dim-command-nth 1 0 testruin testtree 0 120 0
  123. #worldprimer-dim-command-nth 1 0 worldprimer-load-chunks -1 -1 0 0
  124. #worldprimer-dim-command-nth 1 0 say Finished building your ruins!
  125. worldprimer-dim-command-nth 1 0 say Dim 0 loading
  126. worldprimer-dim-command-nth 1 0 gamerule spawnRadius 0
  127. worldprimer-dim-command-nth 1 0 worldprimer place-structure {SPAWN_X}+8 {SPAWN_Y}-2 {SPAWN_Z} concrete_factory none none centered
  128. >
  129.  
  130. # Commands to run on initial world creation, before the spawn chunks have been generated or loaded.
  131. # If dimension load tracking is enabled, then this happens even before any dimensions have been loaded/initialized yet.
  132. S:earlyWorldCreationCommands <
  133. >
  134.  
  135. # Commands to run every time the world gets loaded.
  136. # These are run when the server is starting, before any worlds have been loaded.
  137. S:earlyWorldLoadingCommands <
  138. >
  139.  
  140. # Commands to run when a player enters a dimension while changing dimensions.
  141. # Note that these will NOT run when a player joins the game or respawns after dying.
  142. # You can use the 'worldprimer-dim-command <dimId>' (or the -nth variant) prefix to target entering a specific dimension.
  143. S:playerChangedDimensionEnterCommands <
  144. >
  145.  
  146. # Commands to run when a player leaves a dimension while changing dimensions.
  147. # Note that these will NOT run when a player leaves the game/server.
  148. # You can use the 'worldprimer-dim-command <dimId>' (or the -nth variant) prefix to target leaving a specific dimension.
  149. # NOTE: These commands will run AFTER the player is already in the new dimension!!
  150. S:playerChangedDimensionLeaveCommands <
  151. >
  152.  
  153. # Commands to run when a player dies
  154. S:playerDeathCommands <
  155. >
  156.  
  157. # Commands to run when a player joins (connects to) the server
  158. S:playerJoinCommands <
  159. tell {PLAYER_NAME} Test foo bar, dim: {DIMENSION} !
  160. worldprimer-tracked-command-nth 1 tell {PLAYER_NAME} First login!
  161. >
  162.  
  163. # Commands to run when a player disconnects from the server
  164. S:playerQuitCommands <
  165. >
  166.  
  167. # Commands to run when a player respawns after dying
  168. S:playerRespawnCommands <
  169. >
  170.  
  171. # Commands to run on initial world creation, after the spawn chunks have been generated and loaded.
  172. S:postWorldCreationCommands <
  173. fill {SPAWN_X}-3 {SPAWN_Y}-1 {SPAWN_Z}-3 {SPAWN_X}+3 {SPAWN_Y}-1 {SPAWN_Z}+3 minecraft:stone variant=smooth_diorite
  174. say Test{SPAWN_X} Test\{SPAWN_X} Spawn: {SPAWN_X} \{SPAWN_X} {SPAWN_X}+10 {SPAWN_X}\+10 \{SPAWN_X}+10 {SPAWN_X}-10 {SPAWN_X}\-10 \{SPAWN_X}-10
  175. >
  176.  
  177. # Commands to run every time the world gets loaded.
  178. # These are run when the server has started and the overworld spawn chunks have been loaded.
  179. S:postWorldLoadingCommands <
  180. say Post world loading
  181. #fill 253 68 253 257 72 257 minecraft:iron_block
  182. #fill {SPAWNX}-20 {SPAWNY}+8 {SPAWNZ}-20 {SPAWNX}-16 {SPAWNY}+12 {SPAWNZ}-16 minecraft:gold_block
  183. #fill {SPAWNX} {SPAWNY}+20 {SPAWNZ} {SPAWNX} {SPAWNY}+24 {SPAWNZ} minecraft:diamond_block
  184. #fill {SPAWNX}-2 {SPAWNY}+3 {SPAWNZ}-2 {SPAWNX}+2 {SPAWNY}+17 {SPAWNZ}+2 minecraft:emerald_block
  185. >
  186.  
  187. # Commands to run based on the world time.
  188. # Must be in the format: 'worldprimer-timed-command <time> <dimension> <command>',
  189. # where <time> is the total world time in ticks when the command should run.
  190. # The time can be prefixed with a '%' to make it run periodically, with that interval (basically a modulo).
  191. # With the periodic time, you can also use offsets, like so:
  192. # worldprimer-timed-command %1200-80 0 say Something happens in 4 seconds!
  193. # worldprimer-timed-command %1200 0 say Something happens now!
  194. # worldprimer-timed-command %1200+80 0 Say something happened 4 seconds ago!
  195. S:timedCommands <
  196. worldprimer-timed-command 1 0 say Timed ruin commands start
  197. worldprimer-timed-command 1 0 worldprimer-load-chunks -1 -1 0 0
  198. worldprimer-timed-command 1 0 testruin testtree 0 120 0
  199. worldprimer-timed-command 1 0 say Timed ruin commands end
  200. >
  201. }
  202.  
  203.  
  204. Generic {
  205. # The default command sender name used when executing the commands.
  206. # The name can be overridden per-command by using the prefix 'worldprimer-command-sender "<name>"'.
  207. # Note: The quotes are required if the desired name contains spaces!
  208. # This prefix must come AFTER any possible tracked or dim command
  209. # prefixes, ie. just before the actual command.
  210. # Example command: worldprimer-dim-command-nth 1 123 worldprimer-command-sender "Tooth Fairy" say Test Foo Bar Baz in dimension {DIMENSION}
  211. S:commandSenderName=WorldPrimer
  212.  
  213. # Enables saving any Chisels & Bits blocks in the cross-world compatible format
  214. # in the 'create-structure' command when using the Schematic format
  215. B:enableChiselsAndBitsCrossWorldFormat=true
  216.  
  217. # Enables tracking of dimension load counts, player join counts etc. by storing the counts in a file in worlddir/worldprimer/data_tracker.nbt
  218. B:enableDataTracking=true
  219.  
  220. # Enables verbose logging for debug purposes
  221. B:enableDebugLogging=true
  222. }
  223.  
  224.  
  225. Toggles {
  226. # Enables the dimension loading commands
  227. B:enableDimensionLoadingCommands=false
  228.  
  229. # Enables early world creation commands, which are executed before any dimensions
  230. # have been loaded and thus before any chunks have been generated or loaded.
  231. B:enableEarlyWorldCreationCommands=false
  232.  
  233. # Enables early world loading commands, which are executed once at each server start,
  234. # before the overworld spawn chunks have been loaded.
  235. B:enableEarlyWorldLoadingCommands=false
  236.  
  237. # Enables running the playerChangedDimensionEnterCommands
  238. B:enablePlayerChangedDimensionEnterCommands=false
  239.  
  240. # Enables running the playerChangedDimensionLeaveCommands
  241. B:enablePlayerChangedDimensionLeaveCommands=false
  242.  
  243. # Enables running the playerDeathCommands
  244. B:enablePlayerDeathCommands=false
  245.  
  246. # Enables player join commands
  247. B:enablePlayerJoinCommands=true
  248.  
  249. # Enables running the playerQuitCommands
  250. B:enablePlayerQuitCommands=false
  251.  
  252. # Enables running the playerRespawnCommands
  253. B:enablePlayerRespawnCommands=false
  254.  
  255. # Enables late world creation commands, which are executed after the overworld spawn chunks have been generated
  256. B:enablePostWorldCreationCommands=false
  257.  
  258. # Enables late world loading commands, which are executed once at each server start,
  259. # after the overworld spawn chunks have been loaded.
  260. B:enablePostWorldLoadingCommands=false
  261.  
  262. # Enables running commands tied to the world time
  263. B:enableTimedCommands=false
  264. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement