Started Adding Heads to Grave Chests
Started adding heads to grave chests in dungeons. We currently only spawn skeleton heads as a test.
This commit is contained in:
parent
b31cf9abd6
commit
1d44bf2983
1 changed files with 7 additions and 0 deletions
|
@ -3,6 +3,7 @@ package StevenDimDoors.mod_pocketDim;
|
|||
import java.util.ArrayList;
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.Item;
|
||||
|
@ -196,6 +197,12 @@ public class DDLoot {
|
|||
addItemWithChance(stacks, random, 30, Item.enderPearl, 1);
|
||||
addItemWithChance(stacks, random, 5, Item.record11, 1);
|
||||
|
||||
// Finally, there is a 3% chance of adding a player head
|
||||
if (random.nextInt(100) < 50) // FIXME: SET TO 50% FOR TESTING, CHANGE TO 3%
|
||||
{
|
||||
stacks.add( new ItemStack(Block.skull) );
|
||||
}
|
||||
|
||||
fillChest(stacks, inventory, random);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue