Add more items to chests
This commit is contained in:
parent
81f79f5ccd
commit
c688fc4ba0
2 changed files with 8 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ public class GameUtil {
|
|||
int randomSlot = getRandomInRange(0, slots);
|
||||
Random random = new Random();
|
||||
int chance = random.nextInt(10);
|
||||
boolean potion = chance >= 1 && chance < 3;
|
||||
boolean potion = (chance == 1 || chance == 2);
|
||||
if (potion) {
|
||||
ItemStack[] possiblePotions = getPossiblePotionsFromConfig("chest-loot-potions").toArray(new ItemStack[0]);
|
||||
ItemStack randomPotion = possiblePotions[random.nextInt((int) Arrays.stream(possiblePotions).count())];
|
||||
|
|
|
|||
|
|
@ -103,6 +103,13 @@ chest-loot:
|
|||
- WOOD_AXE#1
|
||||
- GOLD_HELMET#1
|
||||
- LEATHER_CHESTPLATE#1
|
||||
- GOLDEN_APPLE#1
|
||||
- IRON_BOOTS#1
|
||||
- IRON_CHESTPLATE#1
|
||||
- GOLD_CHESTPLATE#1
|
||||
- DIAMOND_PICKAXE#1
|
||||
- LEATHER_HELMET#1
|
||||
- IRON_HELMET#1
|
||||
# Chest Loot Potions
|
||||
# Note: Only <=1.8 Items !
|
||||
# https://dev.bukkit.org/projects/etshop/pages/potion-data-value-table OR https://minecraftitemids.com/types/potion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue