Moved undergroundbiomes to seperate file

This commit is contained in:
Francesco Macagno 2015-09-08 10:56:57 -07:00
parent f4b81c24a0
commit 3a2005c436
3 changed files with 190 additions and 213 deletions

View file

@ -37,7 +37,7 @@ public class WarpDriveConfig {
private static DocumentBuilder xmlDocumentBuilder; private static DocumentBuilder xmlDocumentBuilder;
private static final String[] defaultXMLfilenames = { private static final String[] defaultXMLfilenames = {
// fillers // fillers
"filler-default.xml", "filler-netherores.xml", "filler-default.xml", "filler-netherores.xml", "filler-undergroundbiomes.xml",
// structures // structures
"structures-default.xml", "structures-netherores.xml", "structures-default.xml", "structures-netherores.xml",
}; };
@ -478,23 +478,23 @@ public class WarpDriveConfig {
// Block dictionary // Block dictionary
{ {
config.addCustomCategoryComment("block_tags", config.addCustomCategoryComment("block_tags",
"Use this section to enable special behavior on blocks using tags.\n" "Use this section to enable special behavior on blocks using tags.\n"
+ "Most blocks are already supported automatically. Only modify this section when something doesn't work!\n" + "Most blocks are already supported automatically. Only modify this section when something doesn't work!\n"
+ "\n" + "\n"
+ "Tags shall be separated by at least one space, comma or tabulation.\n" + "Tags shall be separated by at least one space, comma or tabulation.\n"
+ "Invalid tags will be ignored silently. Tags and block names are case sensitive.\n" + "Invalid tags will be ignored silently. Tags and block names are case sensitive.\n"
+ "In case of conflicts, the latest tag overwrite the previous ones.\n" + "In case of conflicts, the latest tag overwrite the previous ones.\n"
+ "- Anchor: ship can't move with this block aboard (default: bedrock and assimilated).\n" + "- Anchor: ship can't move with this block aboard (default: bedrock and assimilated).\n"
+ "- NoMass: this block doesn't count when calculating ship volume/mass (default: leaves, all 'air' blocks).\n" + "- NoMass: this block doesn't count when calculating ship volume/mass (default: leaves, all 'air' blocks).\n"
+ "- LeftBehind: this block won't move with your ship (default: RailCraft heat, WarpDrive gases).\n" + "- LeftBehind: this block won't move with your ship (default: RailCraft heat, WarpDrive gases).\n"
+ "- Expandable: this block will be squished/ignored in case of collision.\n" + "- Expandable: this block will be squished/ignored in case of collision.\n"
+ "- Mining: this block is mineable (default: all 'ore' blocks from the ore dictionnary).\n" + "- Mining: this block is mineable (default: all 'ore' blocks from the ore dictionnary).\n"
+ "- NoMining: this block is non-mineable (default: forcefields).\n" + "- NoMining: this block is non-mineable (default: forcefields).\n"
+ "- PlaceEarliest: this block will be removed last and placed first (default: ship hull and projectors).\n" + "- PlaceEarliest: this block will be removed last and placed first (default: ship hull and projectors).\n"
+ "- PlaceEarlier: this block will be placed fairly soon (default: forcefield blocks).\n" + "- PlaceEarlier: this block will be placed fairly soon (default: forcefield blocks).\n"
+ "- PlaceNormal: this block will be removed and placed with non-tile entities.\n" + "- PlaceNormal: this block will be removed and placed with non-tile entities.\n"
+ "- PlaceLater: this block will be placed fairly late (default: IC2 Reactor core).\n" + "- PlaceLater: this block will be placed fairly late (default: IC2 Reactor core).\n"
+ "- PlaceLatest: this block will be removed first and placed last (default: IC2 Reactor chamber)."); + "- PlaceLatest: this block will be removed first and placed last (default: IC2 Reactor chamber).");
ConfigCategory categoryBlockTags = config.getCategory("block_tags"); ConfigCategory categoryBlockTags = config.getCategory("block_tags");
String[] taggedBlocksName = categoryBlockTags.getValues().keySet().toArray(new String[0]); String[] taggedBlocksName = categoryBlockTags.getValues().keySet().toArray(new String[0]);
@ -543,16 +543,16 @@ public class WarpDriveConfig {
// Entity dictionary // Entity dictionary
{ {
config.addCustomCategoryComment("entity_tags", config.addCustomCategoryComment("entity_tags",
"Use this section to enable special behavior on entities using tags.\n" "Use this section to enable special behavior on entities using tags.\n"
+ "Most entities are already supported automatically. Only modify this section when something doesn't work!\n" + "Most entities are already supported automatically. Only modify this section when something doesn't work!\n"
+ "\n" + "\n"
+ "Tags shall be separated by at least one space, comma or tabulation.\n" + "Tags shall be separated by at least one space, comma or tabulation.\n"
+ "Invalid tags will be ignored silently. Tags and block names are case sensitive.\n" + "Invalid tags will be ignored silently. Tags and block names are case sensitive.\n"
+ "In case of conflicts, the latest tag overwrite the previous ones.\n" + "In case of conflicts, the latest tag overwrite the previous ones.\n"
+ "- Anchor: ship can't move with this entity aboard (default: none).\n" + "- Anchor: ship can't move with this entity aboard (default: none).\n"
+ "- NoMass: this entity doesn't count when calculating ship volume/mass (default: Galacticraft air bubble).\n" + "- NoMass: this entity doesn't count when calculating ship volume/mass (default: Galacticraft air bubble).\n"
+ "- LeftBehind: this entity won't move with your ship (default: Galacticraft air bubble).\n" + "- LeftBehind: this entity won't move with your ship (default: Galacticraft air bubble).\n"
+ "- NonLivingTarget: this non-living entity can be targeted/removed by weapons (default: ItemFrame, Painting)."); + "- NonLivingTarget: this non-living entity can be targeted/removed by weapons (default: ItemFrame, Painting).");
ConfigCategory categoryEntityTags = config.getCategory("entity_tags"); ConfigCategory categoryEntityTags = config.getCategory("entity_tags");
String[] taggedEntitiesName = categoryEntityTags.getValues().keySet().toArray(new String[0]); String[] taggedEntitiesName = categoryEntityTags.getValues().keySet().toArray(new String[0]);
@ -589,15 +589,15 @@ public class WarpDriveConfig {
// Item dictionary // Item dictionary
{ {
config.addCustomCategoryComment("item_tags", config.addCustomCategoryComment("item_tags",
"Use this section to enable special behavior on items using tags.\n" "Use this section to enable special behavior on items using tags.\n"
+ "Most items are already supported automatically. Only modify this section when something doesn't work!\n" + "Most items are already supported automatically. Only modify this section when something doesn't work!\n"
+ "\n" + "\n"
+ "Tags shall be separated by at least one space, comma or tabulation.\n" + "Tags shall be separated by at least one space, comma or tabulation.\n"
+ "Invalid tags will be ignored silently. Tags and block names are case sensitive.\n" + "Invalid tags will be ignored silently. Tags and block names are case sensitive.\n"
+ "In case of conflicts, the latest tag overwrite the previous ones.\n" + "In case of conflicts, the latest tag overwrite the previous ones.\n"
+ "- FlyInSpace: player can move without gravity effect while wearing this item (default: jetpacks).\n" + "- FlyInSpace: player can move without gravity effect while wearing this item (default: jetpacks).\n"
+ "- NoFallDamage: player doesn't take fall damage while wearing this armor item (default: IC2 rubber boots).\n" + "- NoFallDamage: player doesn't take fall damage while wearing this armor item (default: IC2 rubber boots).\n"
+ "- BreathingIC2: player can breath IC2 compressed air while wearing this armor item (default: IC2 nano helmet and Cie).\n"); + "- BreathingIC2: player can breath IC2 compressed air while wearing this armor item (default: IC2 nano helmet and Cie).\n");
ConfigCategory categoryItemTags = config.getCategory("item_tags"); ConfigCategory categoryItemTags = config.getCategory("item_tags");
String[] taggedItemsName = categoryItemTags.getValues().keySet().toArray(new String[0]); String[] taggedItemsName = categoryItemTags.getValues().keySet().toArray(new String[0]);

View file

@ -32,59 +32,6 @@
<filler block="minecraft:bedrock" ratio=".001" /> <filler block="minecraft:bedrock" ratio=".001" />
</FillerSet> </FillerSet>
<FillerSet group="igneous_ores">
<filler block="UndergroundBiomes:igneous_oreCoal" ratio=".001" />
<filler block="UndergroundBiomes:igneous_oreDiamond" ratio=".001" />
<filler block="UndergroundBiomes:igneous_oreEmerald" ratio=".001" />
<filler block="UndergroundBiomes:igneous_oreGold" ratio=".001" />
<filler block="UndergroundBiomes:igneous_oreIron" ratio=".001" />
<filler block="UndergroundBiomes:igneous_oreLapis" ratio=".001" />
<filler block="UndergroundBiomes:igneous_oreRedstone" ratio=".001" />
</FillerSet>
<FillerSet group="metamorphic_ores">
<filler block="UndergroundBiomes:metamorphic_oreCoal" ratio=".001" />
<filler block="UndergroundBiomes:metamorphic_oreDiamond" ratio=".001" />
<filler block="UndergroundBiomes:metamorphic_oreEmerald" ratio=".001" />
<filler block="UndergroundBiomes:metamorphic_oreGold" ratio=".001" />
<filler block="UndergroundBiomes:metamorphic_oreIron" ratio=".001" />
<filler block="UndergroundBiomes:metamorphic_oreLapis" ratio=".001" />
<filler block="UndergroundBiomes:metamorphic_oreRedstone" ratio=".001" />
</FillerSet>
<FillerSet group="sedimentary_ores">
<filler block="UndergroundBiomes:sedimentary_oreCoal" ratio=".001" />
<filler block="UndergroundBiomes:sedimentary_oreDiamond" ratio=".001" />
<filler block="UndergroundBiomes:sedimentary_oreEmerald" ratio=".001" />
<filler block="UndergroundBiomes:sedimentary_oreGold" ratio=".001" />
<filler block="UndergroundBiomes:sedimentary_oreIron" ratio=".001" />
<filler block="UndergroundBiomes:sedimentary_oreLapis" ratio=".001" />
<filler block="UndergroundBiomes:sedimentary_oreRedstone" ratio=".001" />
</FillerSet>
<for variable="type" in="igneous,metamorphic,sedimentary">
<for variable="metadata" from="0" to="7">
<FillerSet group="%type%_ores@%metadata%.normal" fillerSets="%type%_ores@%metadata%">
<filler block="UndergroundBiomes:%type%Stone" metadata="%metadata%" weight="10" />
</FillerSet>
<FillerSet group="%type%_ores@%metadata%.corrupted" fillerSets="%type%_ores@%metadata%">
<filler block="UndergroundBiomes:%type%Cobblestone" metadata="%metadata%" weight="10" />
</FillerSet>
<FillerSet group="%type%_ores@%metadata%">
<filler block="UndergroundBiomes:%type%_oreCoal" metadata="%metadata%" ratio=".001" />
<filler block="UndergroundBiomes:%type%_oreDiamond" metadata="%metadata%" ratio=".001" />
<filler block="UndergroundBiomes:%type%_oreEmerald" metadata="%metadata%" ratio=".001" />
<filler block="UndergroundBiomes:%type%_oreGold" metadata="%metadata%" ratio=".001" />
<filler block="UndergroundBiomes:%type%_oreIron" metadata="%metadata%" ratio=".001" />
<filler block="UndergroundBiomes:%type%_oreLapis" metadata="%metadata%" ratio=".001" />
<filler block="UndergroundBiomes:%type%_oreRedstone" metadata="%metadata%" ratio=".001" />
</FillerSet>
</for>
</for>
<FillerSet group="commonOres"> <FillerSet group="commonOres">
<filler block="minecraft:coal_ore" ratio=".08" /> <filler block="minecraft:coal_ore" ratio=".08" />
<filler block="minecraft:iron_ore" ratio=".05" /> <filler block="minecraft:iron_ore" ratio=".05" />

View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE warpdriveWorldGeneration>
<warpdriveWorldGeneration version="1" mods="UndergroundBiomes">
<for variable="type" in="igneous,metamorphic,sedimentary">
<for variable="metadata" from="0" to="7">
<FillerSet group="%type%_ores@%metadata%.normal" fillerSets="%type%_ores@%metadata%">
<filler block="UndergroundBiomes:%type%Stone" metadata="%metadata%" weight="10" />
</FillerSet>
<FillerSet group="%type%_ores@%metadata%.corrupted" fillerSets="%type%_ores@%metadata%">
<filler block="UndergroundBiomes:%type%Cobblestone" metadata="%metadata%" weight="10" />
</FillerSet>
<FillerSet group="%type%_ores@%metadata%">
<filler block="UndergroundBiomes:%type%_oreCoal" metadata="%metadata%" ratio=".001" />
<filler block="UndergroundBiomes:%type%_oreDiamond" metadata="%metadata%" ratio=".001" />
<filler block="UndergroundBiomes:%type%_oreEmerald" metadata="%metadata%" ratio=".001" />
<filler block="UndergroundBiomes:%type%_oreGold" metadata="%metadata%" ratio=".001" />
<filler block="UndergroundBiomes:%type%_oreIron" metadata="%metadata%" ratio=".001" />
<filler block="UndergroundBiomes:%type%_oreLapis" metadata="%metadata%" ratio=".001" />
<filler block="UndergroundBiomes:%type%_oreRedstone" metadata="%metadata%" ratio=".001" />
</FillerSet>
</for>
</for>
</warpdriveWorldGeneration>