Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Animal-XP: 0.001
- Animal-XP-Display: 5
- Zombie-XP: 0.003
- Zombie-XP-Display: 15
- Creeper-XP: 0.0
- Creeper-XP-Display: 0
- Skeleton-XP: 0.006
- Skeleton-XP-Display: 30
- Slime-XP: 0.0
- Slime-XP-Display: 0
- Spider-XP: 0.004
- Spider-XP-Display: 20
- Cavespider-XP: 0.003
- Cavespider-XP-Display: 15
- Silverfish-XP: 0.004
- Silverfish-XP-Display: 20
- Bat-XP: 0.001
- Bat-XP-Display: 25
- Villager-XP: 0.005
- Villager-XP-Display: 25
- Enderman-XP: 0.0
- Enderman-XP-Display: 0
- Wolf-XP: 0.009
- Wolf-XP-Display: 45
- Witch-XP: 0.010
- Witch-XP-Display: 50
- Magma-XP: 0.0
- Magma-XP-Display: 0
- Blaze-XP: 0.0
- Blaze-XP-Display: 0
- Pigman-XP: 0.007
- Pigman-XP-Display: 35
- Ghast-XP: 0.0
- Ghast-XP-Display: 0
- Golem-XP: 0.008
- Golem-XP-Display: 40
- #Give XP for killing things
- on death:
- set {last-attacker.%victim%} to attacker
- attacker is not a player:
- {owner.%victim%} is a player:
- set {last-attacker.%victim%} to {owner.%victim%}
- victim is a pig or a cow or a sheep or a chicken or squid or mooshroom or ocelot or bat:
- increase the level progress of {last-attacker.%victim%} by {@Animal-XP}
- message "&4[ &c{@Animal-XP-Display} XP &4]" to {last-attacker.%victim%}
- stop
- victim is a zombie:
- increase the level progress of {last-attacker.%victim%} by {@Zombie-XP}
- message "&4[ &c{@Zombie-XP-Display} XP &4]" to {last-attacker.%victim%}
- stop
- victim is a creeper:
- increase the level progress of {last-attacker.%victim%} by {@Creeper-XP}
- message "&4[ &c{@Creeper-XP-Display} XP &4]" to {last-attacker.%victim%}
- stop
- victim is a spider:
- increase the level progress of {last-attacker.%victim%} by {@Spider-XP}
- message "&4[ &c{@Spider-XP-Display} XP &4]" to {last-attacker.%victim%}
- stop
- victim is a cave spider:
- increase the level progress of {last-attacker.%victim%} by {@Cavespider-XP}
- message "&4[ &c{@Cavespider-XP-Display} XP &4]" to {last-attacker.%victim%}
- stop
- victim is a silverfish:
- increase the level progress of {last-attacker.%victim%} by {@Silverfish-XP}
- message "&4[ &c{@Silverfish-XP-Display} XP &4]" to {last-attacker.%victim%}
- stop
- victim is a wither skeleton:
- increase the level progress of {last-attacker.%victim%} by {@Bat-XP}
- message "&4[ &c{@Bat-XP-Display} XP &4]" to {last-attacker.%victim%}
- stop
- victim is a skeleton:
- increase the level progress of {last-attacker.%victim%} by {@Skeleton-XP}
- message "&4[ &c{@Skeleton-XP-Display} XP &4]" to {last-attacker.%victim%}
- stop
- victim is a villager:
- increase the level progress of {last-attacker.%victim%} by {@Villager-XP}
- message "&4[ &c{@Villager-XP-Display} XP &4]" to {last-attacker.%victim%}
- stop
- victim is a enderman:
- increase the level progress of {last-attacker.%victim%} by {@Enderman-XP}
- message "&4[ &c{@Enderman-XP-Display} XP &4]" to {last-attacker.%victim%}
- stop
- victim is a wolf:
- increase the level progress of {last-attacker.%victim%} by {@Wolf-XP}
- message "&4[ &c{@Wolf-XP-Display} XP &4]" to {last-attacker.%victim%}
- stop
- victim is a witch:
- increase the level progress of {last-attacker.%victim%} by {@Witch-XP}
- message "&4[ &c{@Witch-XP-Display} XP &4]" to {last-attacker.%victim%}
- stop
- victim is a magma cube:
- increase the level progress of {last-attacker.%victim%} by {@Magma-XP}
- message "&4[ &c{@Magma-XP-Display} XP &4]" to {last-attacker.%victim%}
- stop
- victim is a slime:
- increase the level progress of {last-attacker.%victim%} by {@Slime-XP}
- message " &4[ &c{@Slime-XP-Display} XP &4]" to {last-attacker.%victim%}
- stop
- victim is a blaze:
- increase the level progress of {last-attacker.%victim%} by {@Blaze-XP}
- message "&4[ &c{@Blaze-XP-Display} XP &4]" to {last-attacker.%victim%}
- stop
- victim is a zombie pigman:
- increase the level progress of {last-attacker.%victim%} by {@Pigman-XP}
- message "&4[ &c{@Pigman-XP-Display} XP &4]" to {last-attacker.%victim%}
- stop
- victim is a ghast:
- increase the level progress of {last-attacker.%victim%} by {@Ghast-XP}
- message "&4[ &c{@Ghast-XP-Display} XP &4]" to {last-attacker.%victim%}
- stop
- victim is a iron golem:
- increase the level progress of {last-attacker.%victim%} by {@Golem-XP}
- message "&4[ &c{@Golem-XP-Display} XP &4]" to {last-attacker.%victim%}
- stop
- #Level up!
- on level:
- {ignore-level.%player%} is equal to false:
- message " &cLevel UP!" to player
- execute console command "/playsound fireworks.launch %name of player%"
- set {ignore-level.%player%} to false
- #Keep XP on death
- on death of player:
- set {level.%player%} to player's level
- set {level.%player%.progress} to level progress of the player
- set {ignore-level.%player%} to true
- on respawn:
- wait 1 second
- set player's level to {level.%player%}
- set {ignore-level.%player%} to true
- if {home.%player%} is set:
- teleport player to {home.%player%}
- #No experience orbs
- on xp spawn:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement