-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
import net.minecraft.enchantment.Enchantments; | ||
import io.netty.util.internal.ThreadLocalRandom; | ||
|
||
|
||
/** | ||
* @author Tas [@0xTas] <[email protected]> | ||
**/ | ||
|
@@ -75,13 +74,14 @@ public enum TextFormat { | |
|
||
/** Random Color-Code */ | ||
public static String rCC() { | ||
String color = "§7"; | ||
TextColor[] colors = TextColor.values(); | ||
int luckyIndex = ThreadLocalRandom.current().nextInt(colors.length); | ||
|
||
String color = colors[luckyIndex].label; | ||
|
||
// Omit gray, light_gray, and black from accent colors. | ||
if (color.equals("§0") || color.equals("§8") || color.equals("§7")) color = "§e"; | ||
while (color.equals("§0") || color.equals("§8") || color.equals("§7")) { | ||
int luckyIndex = ThreadLocalRandom.current().nextInt(colors.length); | ||
color = colors[luckyIndex].label; | ||
} | ||
|
||
return color; | ||
} | ||
|
@@ -126,7 +126,6 @@ public static ItemStack chooseMenuIcon() { | |
private static final ItemStack[] menuIcons = { | ||
Items.CAKE.getDefaultStack(), | ||
Items.BEDROCK.getDefaultStack(), | ||
Items.BARRIER.getDefaultStack(), | ||
Items.GOAT_HORN.getDefaultStack(), | ||
Items.DRAGON_EGG.getDefaultStack(), | ||
Items.FILLED_MAP.getDefaultStack(), | ||
|
@@ -188,8 +187,14 @@ private static ItemStack[] getCustomIcons() { | |
g.addEnchantment(Enchantments.MENDING, 1); | ||
} | ||
|
||
ItemStack cgiElytra = new ItemStack(Items.ELYTRA); | ||
cgiElytra.addEnchantment(Enchantments.MENDING, 420); | ||
|
||
ItemStack ripTridentFly = new ItemStack(Items.TRIDENT); | ||
ripTridentFly.addEnchantment(Enchantments.RIPTIDE, 3); | ||
|
||
return new ItemStack[] { | ||
enchantedPick, sword32k, illegalBow, bindingPumpkin, | ||
enchantedPick, sword32k, illegalBow, bindingPumpkin, cgiElytra, ripTridentFly, | ||
enchantedGlass[ThreadLocalRandom.current().nextInt(enchantedGlass.length)] | ||
}; | ||
} | ||
|