diff options
author | nea <romangraef@gmail.com> | 2022-04-14 17:23:52 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2022-04-14 17:23:52 +0200 |
commit | 6d1234cb20fcf3825623ecf35a814cced1b03d38 (patch) | |
tree | a87bc94389650825eaa06d71c5e6fbed2e2bb56b | |
parent | 68b7b3183ff7086770ce3271645a5abe7f39500b (diff) | |
download | NotEnoughUpdates-6d1234cb20fcf3825623ecf35a814cced1b03d38.tar.gz NotEnoughUpdates-6d1234cb20fcf3825623ecf35a814cced1b03d38.tar.bz2 NotEnoughUpdates-6d1234cb20fcf3825623ecf35a814cced1b03d38.zip |
add drop chance
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/recipes/MobLootRecipe.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/recipes/MobLootRecipe.java b/src/main/java/io/github/moulberry/notenoughupdates/recipes/MobLootRecipe.java index 0e210e42..e22647cc 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/recipes/MobLootRecipe.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/recipes/MobLootRecipe.java @@ -44,7 +44,9 @@ public class MobLootRecipe implements NeuRecipe { public ItemStack getItemStack() { if (itemStack == null) { itemStack = drop.getItemStack().copy(); - ItemUtils.appendLore(itemStack, extra); + List<String> arrayList = new ArrayList<>(extra); + arrayList.add("§r§fDrop Chance: §6" + chance); + ItemUtils.appendLore(itemStack, arrayList); } return itemStack; } |