Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on death:
- if attacker is a player:
- if {lv.%attacker%} is not set:
- set {lv.%attacker%} to 0
- set {xp.%attacker%} to 0
- set {needxp.%attacker%} to 10
- if victim is not animal:
- if victim is armor stand:
- set {_xp.%attacker%} to -114514
- else:
- set {_xp.%attacker%} to a random integer between 3 and 5
- else:
- set {_xp.%attacker%} to a random integer between 1 and 3
- message "&6%victim% &7を討伐!" to attacker
- message "- &6%{_xp.%attacker%}%&7 xp獲得しました" to attacker
- set {xp.%attacker%} to {xp.%attacker%} + {_xp.%attacker%}
- if {needxp.%attacker%} < {xp.%attacker%} + 1:
- add 1 to {lv.%attacker%}
- message "----------" to attacker
- message "&e&lLvup! &7Lv.&6%{lv.%attacker%}%" to attacker
- message "----------" to attacker
- set {xp.%attacker%} to {xp.%attacker%} - {needxp.%attacker%}
- set {_needxpa.%attacker%} to {needxp.%attacker%} * 1.1
- set {_needxpb.%attacker%} to {lv.%attacker%} * 5
- set {needxp.%attacker%} to {_needxpa.%attacker%} + {_needxpb.%attacker%}
- set {needxp.%attacker%} to round({needxp.%attacker%})
- play sound "entity.firework.twinkle" with volume 0.5 and pitch 1 at attacker
- command /status:
- trigger:
- message "--------------------"
- message "Lv : &6%{lv.%player%}%" to player
- message "xp : &6%{xp.%player%}%" to player
- message "必用xp : &6%{needxp.%player%} - {xp.%player%}%" to player
- message "基準xp : &6%{needxp.%player%}%" to player
- message "--------------------"
- command /lvreset:
- trigger:
- set {lv.%player%} to 0
- set {xp.%player%} to 0
- set {needxp.%player%} to 10
- execute player command "/status"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement