Started work on fixing temple generation (build location detection is acting weird - it almost never can find a good spot even when one exists)

This commit is contained in:
David Berdik 2019-07-06 23:48:31 -04:00
parent 57ecac8075
commit c352b33c5b
3 changed files with 464 additions and 922 deletions

View File

@ -397,7 +397,7 @@ public class AICore {
}
public ItemStack createAncientSword() {
ItemStack item = new ItemStack(Material.matchMaterial("GOLD_SWORD"));
ItemStack item = new ItemStack(Material.GOLDEN_SWORD);
String name = "Ancient Sword";
ArrayList<String> lore = new ArrayList<String>();
lore.add("AncientSword");

View File

@ -39,11 +39,11 @@ public class CustomZombie extends EntityZombie implements CustomEntity {
getAttributeInstance(GenericAttributes.MAX_HEALTH).setValue(Herobrine.getPluginCore().getConfigDB().npc.getInt("npc.Guardian.HP"));
setHealth(Herobrine.getPluginCore().getConfigDB().npc.getInt("npc.Guardian.HP"));
setCustomName(new ChatComponentText("Artifact Guardian"));
((Zombie) getBukkitEntity()).getEquipment().setItemInMainHand(new ItemStack(Material.matchMaterial("GOLD_SWORD"), 1));
((Zombie) getBukkitEntity()).getEquipment().setHelmet(new ItemStack(Material.matchMaterial("GOLD_HELMET"), 1));
((Zombie) getBukkitEntity()).getEquipment().setChestplate(new ItemStack(Material.matchMaterial("GOLD_CHESTPLATE"), 1));
((Zombie) getBukkitEntity()).getEquipment().setLeggings(new ItemStack(Material.matchMaterial("GOLD_LEGGINGS"), 1));
((Zombie) getBukkitEntity()).getEquipment().setBoots(new ItemStack(Material.matchMaterial("GOLD_BOOTS"), 1));
((Zombie) getBukkitEntity()).getEquipment().setItemInMainHand(new ItemStack(Material.GOLDEN_SWORD, 1));
((Zombie) getBukkitEntity()).getEquipment().setHelmet(new ItemStack(Material.GOLDEN_HELMET, 1));
((Zombie) getBukkitEntity()).getEquipment().setChestplate(new ItemStack(Material.GOLDEN_CHESTPLATE, 1));
((Zombie) getBukkitEntity()).getEquipment().setLeggings(new ItemStack(Material.GOLDEN_LEGGINGS, 1));
((Zombie) getBukkitEntity()).getEquipment().setBoots(new ItemStack(Material.GOLDEN_BOOTS, 1));
getBukkitEntity().teleport(loc);
}

File diff suppressed because it is too large Load Diff