diff --git a/items.md b/items.md index 34ed2a1..5226e84 100644 --- a/items.md +++ b/items.md @@ -1,6 +1,8 @@ # Brainstorming -## Piglin set +## Sets + +**Piglin set** Some sort of gold focused set? maybe just a pickaxe & sword? extra gold drops from piglins @@ -8,7 +10,7 @@ extra gold drops in the nether? Greed or midas related name? Hubris? -## Misc (not a set) +**Misc (not a set)** - Lamenting Malice (crossbow OR bow that drops extra ghast tears) - Roman Candle (Sword with extra fortune when killing blazes) @@ -19,7 +21,7 @@ Greed or midas related name? Hubris? # Set Ideas -## Generic +**Generic** All tools / armor are unbreakable, high effiency, nothing special Armor should probably only be like prot 6 @@ -27,7 +29,27 @@ Armor should probably only be like prot 6 **Full set effect**: Maybe the full armor set could give you a particle effect? - +## Other Rarities + +I'm thinking it should take 9~ dusts (scrapped items) to be able to go up a tier + +So a Mythic would require: +| Tier | Epic Dust | Rare Dust | Uncommmon Dust | +|----------|-----------|-----------|----------------| +| Mythic | 9 | 81 | 729 | +| Epic | N/A | 9 | 81 | +| Rare | N/A | N/A | 9 | +| Uncommon | N/A | N/A | N/A | + +If a mythic is 1/1000 drop from hostile mobs then an uncommon should drop like... 1/3 mobs... +One spawner can produce like 500 mobs an hour. (Although I don't intend on including spawned mobs) + + +Tiers: + - (0) Mythics (name pending?) + - (1) Epic + - (2) Rare + - (3) Uncommon diff --git a/src/main/java/net/hexa/MythicItems/MythicListener.java b/src/main/java/net/hexa/MythicItems/MythicListener.java index bc194d7..a33e086 100644 --- a/src/main/java/net/hexa/MythicItems/MythicListener.java +++ b/src/main/java/net/hexa/MythicItems/MythicListener.java @@ -12,6 +12,7 @@ import org.bukkit.event.Listener; import org.bukkit.event.block.Action; import org.bukkit.event.block.BlockBreakEvent; import org.bukkit.event.entity.EntityDeathEvent; +import org.bukkit.event.entity.CreatureSpawnEvent; import org.bukkit.event.player.PlayerInteractEvent; import org.bukkit.inventory.ItemStack; @@ -66,7 +67,7 @@ public class MythicListener implements Listener { Entity killer = event.getDamageSource().getCausingEntity(); Entity mob = event.getEntity(); - if (killer instanceof Player && mob instanceof Enemy) { + if (killer instanceof Player && mob instanceof Enemy && !mob.hasMetadata("fromSpawner")) { int result = random.nextInt(1, Constants.MYTHIC_DROP_CHANCE + 1); if (result == 1) { ItemStack mythicReward = MythicEssence.rollMythic(); @@ -77,4 +78,12 @@ public class MythicListener implements Listener { } } } + + @EventHandler + public void onMobSpawn(CreatureSpawnEvent event) { + if (event.getSpawnReason() == CreatureSpawnEvent.SpawnReason.SPAWNER) { + event.getEntity().setMetadata("fromSpawner", new FixedMetadataValue(this, true)); + } + } + }