Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {doublejumpcooltime.%player%} = 0
- command /superfeather:
- permission: sk.command.superfeather
- permission message: &cYou don't have permission.
- trigger:
- execute console command "/give %player% feather 1 0 {display:{Name:""§bすごい羽""}}"
- every tick:
- loop all players:
- if loop-player is holding feather named "&bすごい羽":
- if {doublejumpcooltime.%loop-player%} is greater than or equal to 1:
- send action bar from "&bDoubleJumpが使用可能になるまであと%{doublejumpcooltime.%loop-player%}%秒" to loop-player
- if {doublejumpcooltime.%loop-player%} is smaller than or equal to 0:
- set loop-player's flight mode to true
- else:
- if loop-player's gamemode is survival or adventure:
- set loop-player's flight mode to false
- else:
- if loop-player's gamemode is survival or adventure:
- set loop-player's flight mode to false
- on damage:
- if damage was caused by fall:
- if victim is holding feather named "&bすごい羽":
- cancel event
- every second:
- loop all players:
- remove 1 from {doublejumpcooltime.%loop-player%}
- if {doublejumpcooltime.%loop-player%} is 0:
- send action bar from "&b&lDoubleJumpが使えるようになりました!" to loop-player
- on flight toggle:
- if player's gamemode is adventure or survival:
- if player is holding feather named "&bすごい羽":
- if {doublejumpcooltime.%player%} is smaller than or equal to 0:
- set {doublejumpcooltime.%player%} to 5
- push player upwards at speed 1.2
- push the player forward at speed 0.8
- on death:
- victim is a player
- set {_attacker} to attacker
- set {_victim} to victim
- if {_attacker} is set:
- if attacker is a player:
- execute console command "/give %attacker% emerald_ore 1 0 {display:{Name:""100YEN"",Lore:[""この鯖の通貨""]},HideFlags:1}"
- send "&b100YEN&7をGET!" to attacker
- send "&a+100EXP" to attacker
- execute console command "/execute %attacker% ~ ~ ~ playsound minecraft:entity.experience_orb.pickup master @s"
- execute console command "/scoreboard players add %attacker% killcount 1"
- execute console command "/xp 100 %attacker%"
- set {_weapon} to display name of attacker's held item
- set {_killeffectpattern} to random integer between 1 and 6
- if {_killeffectpattern} is 1:
- execute console command "/execute %victim% ~ ~ ~ summon fireworks_rocket ~ ~2 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Flicker:1,Colors:[I;%random integer between 1 and 16777215%]}]}}}}"
- force victim to respawn
- if {_killeffectpattern} is 2:
- strike lightning effect at victim
- force victim to respawn
- if {_killeffectpattern} is 3:
- execute console command "/execute %victim% ~ ~ ~ particle flame ~ ~1.5 ~ 0.3 0.3 0.3 0.1 1000 force"
- force victim to respawn
- if {_killeffectpattern} is 4:
- execute console command "/execute %victim% ~ ~ ~ particle smoke ~ ~1.5 ~ 0.3 0.3 0.3 0.1 1000 force"
- force victim to respawn
- if {_killeffectpattern} is 5:
- execute console command "/execute %victim% ~ ~ ~ particle witchMagic ~ ~1.5 ~ 0.3 0.3 0.3 0.1 1000 force"
- force victim to respawn
- if {_killeffectpattern} is 6:
- execute console command "/execute %victim% ~ ~ ~ particle blockcrack ~ ~1.5 ~ 0.25 0.5 0.25 0 1000 force @a 152"
- force victim to respawn
- if {_weapon} is set:
- set the death message to "&b%victim%&7は&b%attacker%&7の&r%{_weapon}%&7で殺された"
- if {_weapon} is not set:
- set the death message to "&b%victim%&7は&b%attacker%&7に殺された"
- if attacker is not a player:
- force victim to respawn
- set the death message to "&b%victim%&7は&b%attacker%&7に殺された"
- if {_attacker} is not set:
- force victim to respawn
- set the death message to "&b%victim%&7は死亡した"
Advertisement
Add Comment
Please, Sign In to add comment