This commit is contained in:
mfnalex 2018-08-24 00:03:34 +02:00
parent 77776c8c7a
commit 20f7e126e5
6 changed files with 96 additions and 2 deletions

View File

@ -83,10 +83,22 @@ public class JeffChestSortOrganizer {
}
for(String woodName : woodNames) {
if(typeName.startsWith(woodName)) {
if(typeName.equals(woodName+"_wood")) {
typeName = "log_wood";
myColor = woodName;
}
else if(typeName.startsWith(woodName)) {
typeName = typeName.replaceFirst(woodName+"_", "");
myColor = woodName;
}
else if(typeName.equals("stripped_"+woodName+"_log")) {
//typeName = typeName.replaceFirst("stripped_"+woodName+"_", "stripped_");
typeName = "log_stripped";
myColor = woodName;
} else if(typeName.equals("stripped_"+woodName+"_wood")) {
typeName = "log_wood_stripped";
myColor = woodName;
}
}
// Egg has to be put in front to group spawn eggs

View File

@ -102,7 +102,7 @@ public class JeffChestSortPlugin extends JavaPlugin {
}
private void saveDefaultCategories() {
String[] defaultCategories = { "900-valuables","910-tools","920-combat","930-brewing","940-food","950-redstone" };
String[] defaultCategories = { "900-valuables","910-tools","920-combat","930-brewing","940-food","950-redstone","960-wood","970-stone","980-plants","981-corals" };
for (String category : defaultCategories) {

View File

@ -0,0 +1,47 @@
*_planks
*_sapling
*_log
*_wood
*_leaves
acacia_slab
birch_slab
jungle_slab
oak_slab
dark_oak_slab
spruce_slab
acacia_fence
birch_fence
jungle_fence
oak_fence
dark_oak_fence
spruce_fence
acacia_fence_gate
birch_fence_gate
jungle_fence_gate
oak_fence_gate
dark_oak_fence_gate
spruce_fence_gate
acacia_trapdoor
birch_trapdoor
jungle_trapdoor
oak_trapdoor
dark_oak_trapdoor
spruce_trapdoor
acacia_stairs
birch_stairs
jungle_stairs
oak_stairs
dark_oak_stairs
spruce_stairs
acacia_door
birch_door
jungle_door
oak_door
dark_oak_door
spruce_door
acacia_boat
birch_boat
jungle_boat
oak_boat
dark_oak_boat
spruce_boat

View File

@ -0,0 +1,6 @@
stone
cobblestone
granite
diorite
andesite
*stone_bricks

View File

@ -0,0 +1,28 @@
grass
fern
dead_bush
seagrass
sea_pickle
dandelion
poppy
blue_orchid
allium
azure_bluet
red_tulip
orange_tulip
white_tulip
pink_tulip
oxeye_daisy
brown_mushroom
red_mushroom
chorus_plant
chorus_flower
cactus
vine
lily_pad
sunflower
lilac
rose_bush
peony
tall_grass
large_fern

View File

@ -0,0 +1 @@
*_coral*