Brainstorming + mob from spawner check
This commit is contained in:
parent
642ad215e7
commit
c0e2dd3d59
30
items.md
30
items.md
@ -1,6 +1,8 @@
|
|||||||
# Brainstorming
|
# Brainstorming
|
||||||
|
|
||||||
## Piglin set
|
## Sets
|
||||||
|
|
||||||
|
**Piglin set**
|
||||||
|
|
||||||
Some sort of gold focused set? maybe just a pickaxe & sword?
|
Some sort of gold focused set? maybe just a pickaxe & sword?
|
||||||
extra gold drops from piglins
|
extra gold drops from piglins
|
||||||
@ -8,7 +10,7 @@ extra gold drops in the nether?
|
|||||||
|
|
||||||
Greed or midas related name? Hubris?
|
Greed or midas related name? Hubris?
|
||||||
|
|
||||||
## Misc (not a set)
|
**Misc (not a set)**
|
||||||
|
|
||||||
- Lamenting Malice (crossbow OR bow that drops extra ghast tears)
|
- Lamenting Malice (crossbow OR bow that drops extra ghast tears)
|
||||||
- Roman Candle (Sword with extra fortune when killing blazes)
|
- Roman Candle (Sword with extra fortune when killing blazes)
|
||||||
@ -19,7 +21,7 @@ Greed or midas related name? Hubris?
|
|||||||
|
|
||||||
# Set Ideas
|
# Set Ideas
|
||||||
|
|
||||||
## Generic
|
**Generic**
|
||||||
|
|
||||||
All tools / armor are unbreakable, high effiency, nothing special
|
All tools / armor are unbreakable, high effiency, nothing special
|
||||||
Armor should probably only be like prot 6
|
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?
|
**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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -12,6 +12,7 @@ import org.bukkit.event.Listener;
|
|||||||
import org.bukkit.event.block.Action;
|
import org.bukkit.event.block.Action;
|
||||||
import org.bukkit.event.block.BlockBreakEvent;
|
import org.bukkit.event.block.BlockBreakEvent;
|
||||||
import org.bukkit.event.entity.EntityDeathEvent;
|
import org.bukkit.event.entity.EntityDeathEvent;
|
||||||
|
import org.bukkit.event.entity.CreatureSpawnEvent;
|
||||||
import org.bukkit.event.player.PlayerInteractEvent;
|
import org.bukkit.event.player.PlayerInteractEvent;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
@ -66,7 +67,7 @@ public class MythicListener implements Listener {
|
|||||||
Entity killer = event.getDamageSource().getCausingEntity();
|
Entity killer = event.getDamageSource().getCausingEntity();
|
||||||
Entity mob = event.getEntity();
|
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);
|
int result = random.nextInt(1, Constants.MYTHIC_DROP_CHANCE + 1);
|
||||||
if (result == 1) {
|
if (result == 1) {
|
||||||
ItemStack mythicReward = MythicEssence.rollMythic();
|
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));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user