Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {doublejumpcooltime.%player%} = 0
- command /damage [<text>] [<player>] [<number>] [<player>]:
- permission: tkp.command.damage
- permission message: &cYou don't have permission.
- trigger:
- if arg-1 is not set:
- send "&cUsage:/damage <owner|none> <player> <count>..."
- if arg-1 is "owner":
- if arg-4 is not set:
- send "&cUsage:/damage none <player> <count>"
- if arg-4 is set:
- make arg-4 damage arg-2 by arg-3
- send "&b%arg-4%&7に&b%arg-2%&7へ&b%arg-3%&7ダメージ与えさせました"
- if arg-1 is "none":
- if arg-4 is set:
- send "&cUsage:/damage none <player> <count>"
- stop
- if arg-3 is not set:
- send "&cUsage:/damage none <player> <count>"
- else:
- send "&b%arg-2%&7に&b%arg-3%&7ダメージ与えました"
- if arg-3 is greater than or equal to 0:
- remove arg-3 from arg-2's health
- on death:
- victim is a player
- set {_attacker} to attacker
- set {_victim} to victim
- if {_attacker} is not set:
- set the death message to "&b%victim%&7は死亡した"
- 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 {_attacker} is set:
- set the death message to "&b%victim%&7は&b%attacker%&7に殺された"
- if attacker is a player:
- strike lightning effect at victim
- force victim to respawn
- if attacker is not a player:
- 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
- on damage:
- victim is a player
- if damage was caused by void:
- if victim's gamemode is not creative:
- loop 1 times:
- cancel event
- remove 2048 from victim's health
- on rightclick:
- item is a player head
- if player's gamemode is not creative:
- cancel event
- command "/clear %player% skull 3 1"
- command "/effect %player% 10 5 2"
- command "/effect %player% 1 10 0"
- command "/effect %player% 22 180 0"
- command "/effect %player% 23 1 3 true"
- command "/execute %player% ~ ~ ~ playsound minecraft:entity.generic.eat master @s"
- on death:
- attacker is a player
- victim is a player
- command "/give %attacker% skull 1 3 {SkullOwner:%victim%}"
- on break:
- if player's gamemode is survival:
- cancel event
- send "&cあなたはブロックを壊すことができません"
- on place:
- if player's gamemode is survival:
- cancel event
- send "&cあなたはブロックを置くことができません"
- command /ipcheck [<offline player>]:
- permission: tkp.command.ipcheck
- permission message: &cYou don't have permission.
- trigger:
- if arg is not set:
- message "Usage:/ipcheck <player>"
- stop
- if arg is "all":
- loop all players:
- set {ip::%loop-player%} to ip of loop-player
- message "&7[&3&lipcheck&7] &b%loop-player%のIPアドレス: &b%{ip::%loop-player%}%" to player
- loop {ip::*}:
- if {ip::%loop-index%} is {ip::%loop-player%}:
- message "&7[&3&lipcheck&7] &b同じIPを使用しているプレイヤー: &3%loop-index%"
- else:
- set {ip::%arg%} to ip of argument
- message "&7[&3&lipcheck&7] &b%arg%のIP&a: &b%{ip::%arg%}%"
- loop {ip::*}:
- if {ip::%loop-index%} is {ip::%arg%}:
- message "&7[&3&lipcheck&7] &b同じIPを使用しているプレイヤー: &b%loop-index%"
- on join:
- set {ip::%player%} to ip of player
- loop all players:
- if loop-player has permission "sk.command.ipcheck":
- message "&7[&3&lipcheck&7] &b%player%のIP&a: &b%{ip::%player%}%" to loop-player
- loop {ip::*}:
- if {ip::%loop-index%} is {ip::%player%}:
- message "&7[&3&lipcheck&7] &b同じIPを使用しているプレイヤー&a: &b%loop-index%" to loop-player
- command /acrobat [<player>] [<text>]:
- permission: tkp.command.acrobat
- permission message: &cYou don't have permission.
- trigger:
- if arg-2 is not set:
- send "&cUsage:/acrobat <player> <true|false|enable|disable>"
- if arg-2 is set:
- if arg-2 is "true" or "enable":
- set {acrobat.%arg-1%} to 1
- send "&b%arg-1%&7のアクロバットを&a有効&7にしました"
- set arg-1's walk speed to 0.3
- if arg-2 is "false" or "disable":
- delete {acrobat.%arg-1%}
- send "&b%arg-1%&7のアクロバットを&c無効&7にしました"
- set arg-1's walk speed to 0.2
- if arg-1's gamemode is survival or adventure:
- set arg-1's flight mode to false
- every tick:
- loop all players:
- if {doublejumpcooltime.%loop-player%} is greater than or equal to 1:
- send action bar from "&bDoubleJumpが使用可能になるまであと%{doublejumpcooltime.%loop-player%}%秒" to loop-player
- if {acrobat.%loop-player%} is 1:
- execute console command "/effect %loop-player% 8 1 1 true"
- 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
- on damage:
- if {acrobat.%victim%} is 1:
- damage was caused by fall:
- 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 {acrobat.%player%} is 1:
- if {doublejumpcooltime.%player%} is smaller than or equal to 0:
- set {doublejumpcooltime.%player%} to 15
- push player upwards at speed 1.2
- push the player forward at speed 0.8
- command /doublejumpcooltime [<player>] [<number>]:
- aliases: /djct
- permission: tkp.command.bjct
- permission message: &cYou don't have permission.
- usage: /setdoublejumpcooltime <player> <count>
- trigger:
- if arg-1 is set:
- if arg-2 is set:
- set {doublejumpcooltime.%arg-1%} to arg-2
- send "&b%arg-1%&7のDoubleJumpのクールタイムを&b%arg-2%秒&7に設定しました"
- if arg-2 is not set:
- send "&b%arg-1%&7のDoubleJumpのクールタイムは&b%{doublejumpcooltime.%arg-1%}%秒&7です"
- if {acrobat.%arg-1%} is 1:
- send "&b%arg-1%&7のDoubleJumpは&a有効&7です"
- if {acrobat.%arg-1%} is not set:
- send "&b%arg-1%&7のDoubleJumpは&c無効&7です"
Advertisement
Add Comment
Please, Sign In to add comment