Advertisement
keybounce

CustomOreGen_MystcraftSymbols.xml draft 1

Dec 16th, 2012
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.92 KB | None | 0 0
  1. <ConfigSection>
  2. <Comment> You will notice several instances of a structure that looks like:
  3.  
  4.                     (age.coalClusters + age.coalVeins + age.coalClouds +
  5.                         age.coalHugeVeins + age.coalSmallClouds +
  6.                         age.coalVikingPipes + age.coalJRoushPipes +
  7.                         age.coalNone)>0,
  8.  
  9.           The idea here is simple. The first, and last, line are
  10.           "standard". They never need to be edited. The middle line
  11.           contains all local distributions, separated by plus's.
  12.           It may be empty if you have no local distributions.
  13.  
  14.           Other than defining new symbols on a single line, and
  15.           adding them to these constructs, no other editing should
  16.           be needed.
  17.  
  18.           Gaah, so it turns out that there will be a need to specify
  19.           distributions for the "random choice" case. Frumble ...
  20. </Comment>
  21.  
  22.         <!-- Vanilla style -->
  23.     <MystcraftSymbol name='coalClusters' displayName='Coal Clusters'/>
  24.         <!-- Preset sparseVeins for coal, layeredVeins for iron, lapis, and gold
  25.                    plus vertical veins for redstone.
  26.             145v2a uses small deposits for diamonds and emeralds.
  27.             145v3 uses lava tubes for diamonds, and solid trap tubes for emeralds -->
  28.     <MystcraftSymbol name='coalVeins' displayName='Coal Veins (normal)'/>
  29.         <!-- Preset huge veins -->
  30.         <!-- No instantiation for these yet -->
  31.     <MystcraftSymbol name='coalHugeVeins' displayName='Coal Veins (strategic)' weight='0' />
  32.         <!-- We don't even have presets for smaller cloud distributions yet. Veins come in two types,
  33.             smaller and dense, larger and diffuse, but the equivalent "smaller, denser clouds"
  34.             are not defined. Foo. -->
  35.     <MystcraftSymbol name='coalSmallClouds' displayName='Coal Clouds (normal)' weight='0'/>
  36.         <!-- Normal Preset StrategicClouds -->
  37.     <MystcraftSymbol name='coalClouds' displayName='Coal Clouds (strategic)'/>
  38.         <!-- Anonymous Viking's hollow pipes with fish in the metals and gems -->
  39.         <!-- Instantiated, but "off" until everything is merged. -->
  40.     <MystcraftSymbol name='coalVikingPipes' displayName='Coal Pipes (hollow)' weight='0' />
  41.         <!-- JRoush's solid pipes, currently only instantiated for emeralds -->
  42.     <MystcraftSymbol name='coalJRoushPipes' displayName='Coal Pipes (solid)' weight='0' />
  43.         <!-- Important: AV does not have a hollow pipe instantiated for Emerald.
  44.             JRoush only has a solid pipe instantiated for Emerald.
  45.             Both have different types of Lava/diamond pipes -- AV's goes to the surface (more lava),
  46.             JRoush's is smaller and deeper. So "pefect symmetry" is not yet available.
  47.             A "pipe" world would currently combine these different types of pipes. -->
  48.         <!-- None, gain stablity -->
  49.     <MystcraftSymbol name='coalNone' displayName='No Coal'
  50.  
  51.        <!-- WARNING: Naming issue. I am keeping the same names as JRoush used.
  52.             'coalVeins' is normal (sparse for coal, dense for the rest),
  53.             'coalClouds' is strategic (giant, diffuse). Equally,
  54.             'coalSmallClouds' is (undefined) normal (dense), and
  55.             'coalHugeVeins' is (uninstantiated) giant, diffuse multiplayer veins. -->
  56.  
  57.         <Instability>:= if (
  58.             <!-- Test for instability and conflicts -->
  59.                     <!-- three basics -->
  60.                     (age.coalClusters + age.coalVeins + age.coalClouds +
  61.                         <!-- two not yets (uninstantiated, undefined) -->
  62.                         age.coalHugeVeins + age.coalSmallClouds +
  63.                         <!-- two types of pipes -->
  64.                         age.coalVikingPipes + age.coalJRoushPipes +
  65.                         <!-- and nothing -->
  66.                         age.coalNone)>0,
  67.             <!-- At least one symbol was defined, determine if conflict -->
  68.                 (if (
  69.                   ((age.coalNone > 0) &amp; (
  70.                     (age.coalClusters + age.coalVeins + age.coalClouds +
  71.                         age.coalHugeVeins + age.coalSmallClouds +
  72.                         age.coalVikingPipes + age.coalJRoushPipes +
  73.                         age.coalNone)>age.coalNone)),
  74.                 <!-- We have a conflict; "none" and something else -->
  75.                     <!-- Double the normal instability for
  76.                                                the specified ores -->
  77.                   (100 * (
  78.                     (age.coalClusters + age.coalVeins + age.coalClouds +
  79.                         age.coalHugeVeins + age.coalSmallClouds +
  80.                         age.coalVikingPipes + age.coalJRoushPipes +
  81.                         age.coalNone) - age.coalNone - 1) ^3),
  82.                 <!-- Else clause; no conflict. May have none, or something.
  83.                                                Normal instability -->
  84.                   (50 * (
  85.                     (age.coalClusters + age.coalVeins + age.coalClouds +
  86.                         age.coalHugeVeins + age.coalSmallClouds +
  87.                         age.coalVikingPipes + age.coalJRoushPipes +
  88.                         age.coalNone) - age.coalNone - 1) ^3)
  89.                      )
  90.                  ),
  91.  
  92.             <!-- Outer else clause, no symbols defined.
  93.                One will be used at random (logic in standard ores) -->
  94.                     5)        <!-- 5 penalty for unspecified -->
  95.         </Instability>
  96.  
  97.     </MystcraftSymbol>
  98.  
  99.     <MystcraftSymbol name='ironClusters' displayName='Iron Clusters'/>
  100.     <MystcraftSymbol name='ironVeins' displayName='Iron Veins (normal)'/>
  101.     <MystcraftSymbol name='ironHugeVeins' displayName='Iron Veins (strategic)' weight='0' />
  102.     <MystcraftSymbol name='ironSmallClouds' displayName='Iron Clouds (normal)' weight='0'/>
  103.     <MystcraftSymbol name='ironClouds' displayName='Iron Clouds (strategic)'/>
  104.     <MystcraftSymbol name='ironVikingPipes' displayName='Iron Pipes (hollow)' weight='0' />
  105.     <MystcraftSymbol name='ironJRoushPipes' displayName='Iron Pipes (solid)' weight='0' />
  106.     <MystcraftSymbol name='ironNone' displayName='No Iron'
  107.        <Instability>:= if (
  108.                     (age.ironClusters + age.ironVeins + age.ironClouds +
  109.                         age.ironHugeVeins + age.ironSmallClouds +
  110.                         age.ironVikingPipes + age.ironJRoushPipes +
  111.                         age.ironNone)>0,
  112.             <!-- At least one symbol was defined, determine if conflict -->
  113.                 (if (
  114.                   ((age.ironNone > 0) &amp; (
  115.                     (age.ironClusters + age.ironVeins + age.ironClouds +
  116.                         age.ironHugeVeins + age.ironSmallClouds +
  117.                         age.ironVikingPipes + age.ironJRoushPipes +
  118.                         age.ironNone)>age.ironNone)),
  119.                 <!-- We have a conflict; "none" and something else -->
  120.                     <!-- Double the normal instability for the specified ores -->
  121.                   (100 * (
  122.                     (age.ironClusters + age.ironVeins + age.ironClouds +
  123.                         age.ironHugeVeins + age.ironSmallClouds +
  124.                         age.ironVikingPipes + age.ironJRoushPipes +
  125.                         age.ironNone) - age.ironNone - 1) ^3),
  126.                 <!-- Else clause; no conflict. May have none, or something. Normal instability -->
  127.                   (50 * (
  128.                     (age.ironClusters + age.ironVeins + age.ironClouds +
  129.                         age.ironHugeVeins + age.ironSmallClouds +
  130.                         age.ironVikingPipes + age.ironJRoushPipes +
  131.                         age.ironNone) - age.ironNone - 1) ^3)
  132.                      )
  133.                  ),
  134.  
  135.             <!-- Outer else clause, no symbols defined.
  136.                One will be used at random (logic in standard ores) -->
  137.                     5)        <!-- 5 penalty for unspecified -->
  138.         </Instability>
  139.  
  140.     </MystcraftSymbol>
  141.  
  142. </ConfigSection>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement