Skip to content

Commit

Permalink
Add pale garden to biome selector
Browse files Browse the repository at this point in the history
  • Loading branch information
stefvanschie committed Dec 10, 2024
1 parent 3e191cd commit bc175a2
Show file tree
Hide file tree
Showing 5 changed files with 258 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,15 @@ class BiomeMenu {
BiomeMenu(Plot plot) {
this.plot = plot;

Version version = Version.getVersion();
String resourceLocation;

if (Version.getVersion().isAtLeast(Version.V1_20_3)) {
resourceLocation = "gui/buildmenu/biome/biomemenu_geq_1_20_3.xml";
if (version.isAtLeast(Version.V1_21_4)) {
resourceLocation = "gui/buildmenu/biome/biomemenu_1_21_4.xml";
} else if (version.isAtLeast(Version.V1_20_3)) {
resourceLocation = "gui/buildmenu/biome/biomemenu_1_20_3.xml";
} else {
resourceLocation = "gui/buildmenu/biome/biomemenu_le_1_20_3.xml";
resourceLocation = "gui/buildmenu/biome/biomemenu_1_19.xml";
}

InputStream resource = Main.getInstance().getResource(resourceLocation);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,248 @@
<?xml version="1.0" encoding="UTF-8"?>
<gui title="*gui.options-title" rows="3">
<outlinepane x="0" y="0" length="9" height="3">
<item id="ice" onClick="biomeClick">
<displayname>*gui.biome.snowy-plains.name</displayname>
<lore>
<line>*gui.biome.snowy-plains.lores</line>
</lore>
<properties>
<property type="biome">SNOWY_PLAINS</property>
</properties>
</item>
<item id="spruce_log" onClick="biomeClick">
<displayname>*gui.biome.taiga.name</displayname>
<lore>
<line>*gui.biome.taiga.lores</line>
</lore>
<properties>
<property type="biome">TAIGA</property>
</properties>
</item>
<item id="emerald_ore" onClick="biomeClick">
<displayname>*gui.biome.windswept-hills.name</displayname>
<lore>
<line>*gui.biome.windswept-hills.lores</line>
</lore>
<properties>
<property type="biome">WINDSWEPT_HILLS</property>
</properties>
</item>
<item id="dandelion" onClick="biomeClick">
<displayname>*gui.biome.meadow.name</displayname>
<lore>
<line>*gui.biome.meadow.lores</line>
</lore>
<properties>
<property type="biome">MEADOW</property>
</properties>
</item>
<item id="packed_ice" onClick="biomeClick">
<displayname>*gui.biome.frozen-peaks.name</displayname>
<lore>
<line>*gui.biome.frozen-peaks.lores</line>
</lore>
<properties>
<property type="biome">FROZEN_PEAKS</property>
</properties>
</item>
<item id="stone" onClick="biomeClick">
<displayname>*gui.biome.stony-peaks.name</displayname>
<lore>
<line>*gui.biome.stony-peaks.lores</line>
</lore>
<properties>
<property type="biome">STONY_PEAKS</property>
</properties>
</item>
<item id="grass_block" onClick="biomeClick">
<displayname>*gui.biome.plains.name</displayname>
<lore>
<line>*gui.biome.plains.lores</line>
</lore>
<properties>
<property type="biome">PLAINS</property>
</properties>
</item>
<item id="oak_log" onClick="biomeClick">
<displayname>*gui.biome.forest.name</displayname>
<lore>
<line>*gui.biome.forest.lores</line>
</lore>
<properties>
<property type="biome">FOREST</property>
</properties>
</item>
<item id="dark_oak_log" onClick="biomeClick">
<displayname>*gui.biome.dark-forest.name</displayname>
<lore>
<line>*gui.biome.dark-forest.lores</line>
</lore>
<properties>
<property type="biome">DARK_FOREST</property>
</properties>
</item>
<item id="pale_oak_log" onClick="biomeClick">
<displayname>*gui.biome.pale-garden.name</displayname>
<lore>
<line>*gui.biome.pale-garden.lore</line>
</lore>
<properties>
<property type="biome">PALE_GARDEN</property>
</properties>
</item>
<item id="lily_pad" onClick="biomeClick">
<displayname>*gui.biome.swamp.name</displayname>
<lore>
<line>*gui.biome.swamp.lores</line>
</lore>
<properties>
<property type="biome">SWAMP</property>
</properties>
</item>
<item id="vine" onClick="biomeClick">
<displayname>*gui.biome.jungle.name</displayname>
<lore>
<line>*gui.biome.jungle.lores</line>
</lore>
<properties>
<property type="biome">JUNGLE</property>
</properties>
</item>
<item id="bamboo" onClick="biomeClick">
<displayname>*gui.biome.bamboo-jungle.name</displayname>
<lore>
<line>*gui.biome.bamboo-jungle.lore</line>
</lore>
<properties>
<property type="biome">BAMBOO_JUNGLE</property>
</properties>
</item>
<item id="mycelium" onClick="biomeClick">
<displayname>*gui.biome.mushroom-fields.name</displayname>
<lore>
<line>*gui.biome.mushroom-fields.lores</line>
</lore>
<properties>
<property type="biome">MUSHROOM_FIELDS</property>
</properties>
</item>
<item id="end_stone" onClick="biomeClick">
<displayname>*gui.biome.the-end.name</displayname>
<lore>
<line>*gui.biome.the-end.lores</line>
</lore>
<properties>
<property type="biome">THE_END</property>
</properties>
</item>
<item id="sand" onClick="biomeClick">
<displayname>*gui.biome.desert.name</displayname>
<lore>
<line>*gui.biome.desert.lores</line>
</lore>
<properties>
<property type="biome">DESERT</property>
</properties>
</item>
<item id="acacia_log" onClick="biomeClick">
<displayname>*gui.biome.savanna.name</displayname>
<lore>
<line>*gui.biome.savanna.lores</line>
</lore>
<properties>
<property type="biome">SAVANNA</property>
</properties>
</item>
<item id="terracotta" onClick="biomeClick">
<displayname>*gui.biome.badlands.name</displayname>
<lore>
<line>*gui.biome.badlands.lores</line>
</lore>
<properties>
<property type="biome">BADLANDS</property>
</properties>
</item>
<item id="sculk" onClick="biomeClick">
<displayname>*gui.biome.deep-dark.name</displayname>
<lore>
<line>*gui.biome.deep-dark.lores</line>
</lore>
<properties>
<property type="biome">DEEP_DARK</property>
</properties>
</item>
<item id="mangrove_log" onClick="biomeClick">
<displayname>*gui.biome.mangrove-swamp.name</displayname>
<lore>
<line>*gui.biome.mangrove-swamp.lores</line>
</lore>
<properties>
<property type="biome">MANGROVE_SWAMP</property>
</properties>
</item>
<item id="netherrack" onClick="biomeClick">
<displayname>*gui.biome.nether-wastes.name</displayname>
<lore>
<line>*gui.biome.nether-wastes.lores</line>
</lore>
<properties>
<property type="biome">NETHER_WASTES</property>
</properties>
</item>
<item id="nether_wart_block" onClick="biomeClick">
<displayname>*gui.biome.crimson-forest.name</displayname>
<lore>
<line>*gui.biome.crimson-forest.lores</line>
</lore>
<properties>
<property type="biome">CRIMSON_FOREST</property>
</properties>
</item>
<item id="soul_sand" onClick="biomeClick">
<displayname>*gui.biome.soul-sand-valley.name</displayname>
<lore>
<line>*gui.biome.soul-sand-valley.lores</line>
</lore>
<properties>
<property type="biome">SOUL_SAND_VALLEY</property>
</properties>
</item>
<item id="warped_wart_block" onClick="biomeClick">
<displayname>*gui.biome.warped-forest.name</displayname>
<lore>
<line>*gui.biome.warped-forest.lores</line>
</lore>
<properties>
<property type="biome">WARPED_FOREST</property>
</properties>
</item>
<item id="blackstone" onClick="biomeClick">
<displayname>*gui.biome.basalt-deltas.name</displayname>
<lore>
<line>*gui.biome.basalt-deltas.lore</line>
</lore>
<properties>
<property type="biome">BASALT_DELTAS</property>
</properties>
</item>
<item id="water_bucket" onClick="biomeClick">
<displayname>*gui.biome.ocean.name</displayname>
<lore>
<line>*gui.biome.ocean.lores</line>
</lore>
<properties>
<property type="biome">OCEAN</property>
</properties>
</item>
<item id="barrier" onClick="biomeClick">
<displayname>*gui.biome.the-void.name</displayname>
<lore>
<line>*gui.biome.the-void.lores</line>
</lore>
<properties>
<property type="biome">THE_VOID</property>
</properties>
</item>
</outlinepane>
</gui>
Original file line number Diff line number Diff line change
Expand Up @@ -4492,6 +4492,10 @@ gui:
name: "&aDark Forest"
lores:
- "&7Change the biome to Dark Forest"
pale-garden:
name: "&aPale Garden"
lore:
- "&7Change the biome to Pale Garden"
swamp:
name: "&aSwamp"
lores:
Expand Down

0 comments on commit bc175a2

Please sign in to comment.