Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on fishing:
- if "%fishing state%" is "CAUGHT_FISH":
- clear caught item
- on rightclick:
- if name of held item is "§e§l天使の羽 §a§lLv1":
- if {fall.%player%} is not set:
- set {fall.%player%} to 0
- {fall.%player%} is 0
- block below location of player is air
- push player upwards at speed 0.5
- push player horizontally forwards at speed 0.7
- set {fall.%player%} to 1
- while block below location of player is air:
- wait 3 ticks
- set {fall.%player%} to 0
- else if name of held item is "§e§l天使の羽 §a§lLv2":
- if {fall.%player%} is not set:
- set {fall.%player%} to 0
- {fall.%player%} is 0 or 1
- block below location of player is air
- push player upwards at speed 0.5
- push player horizontally forwards at speed 0.7
- add 1 to {fall.%player%}
- while block below location of player is air:
- wait 3 ticks
- set {fall.%player%} to 0
- else if name of held item is "§e§l大天使の羽 §a§lLv1":
- if {fall.%player%} is not set:
- set {fall.%player%} to 0
- {fall.%player%} is 0
- block below location of player is air
- push player upwards at speed 1
- push player horizontally forwards at speed 1.5
- set {fall.%player%} to 1
- while block below location of player is air:
- wait 3 ticks
- set {fall.%player%} to 0
- else if name of held item is "§e§l大天使の羽 §a§lLv2":
- if {fall.%player%} is not set:
- set {fall.%player%} to 0
- {fall.%player%} is 0 or 1
- block below location of player is air
- push player upwards at speed 1
- push player horizontally forwards at speed 1.5
- add 1 to {fall.%player%}
- while block below location of player is air:
- wait 3 ticks
- set {fall.%player%} to 0
- else if name of held item is "§e§l主天使の羽 §a§lLv1":
- if {fall.%player%} is not set:
- set {fall.%player%} to 0
- {fall.%player%} is 0
- block below location of player is air
- push player upwards at speed 1.5
- push player horizontally forwards at speed 2
- set {fall.%player%} to 1
- while block below location of player is air:
- wait 3 ticks
- set {fall.%player%} to 0
- else if name of held item is "§e§l主天使の羽 §a§lLv2":
- if {fall.%player%} is not set:
- set {fall.%player%} to 0
- {fall.%player%} is 0 or 1
- block below location of player is air
- push player upwards at speed 1.5
- push player horizontally forwards at speed 2
- add 1 to {fall.%player%}
- while block below location of player is air:
- wait 3 ticks
- set {fall.%player%} to 0
- else if name of held item is "§e§l主天使の羽 §a§lLv3":
- if {fall.%player%} is not set:
- set {fall.%player%} to 0
- {fall.%player%} is 0 or 1 or 2
- block below location of player is air
- push player upwards at speed 1.5
- push player horizontally forwards at speed 2
- add 1 to {fall.%player%}
- while block below location of player is air:
- wait 3 ticks
- set {fall.%player%} to 0
- else if name of held item is "§c§l熾天使の羽":
- if {fall.%player%} is not set:
- set {fall.%player%} to 0
- {fall.%player%} is 0 or 1 or 2 or 3
- block below location of player is air
- push player upwards at speed 2
- push player horizontally forwards at speed 3
- add 1 to {fall.%player%}
- while block below location of player is air:
- wait 3 ticks
- set {fall.%player%} to 0
- else if name of held item is "§c§l§n神の羽":
- if {fall.%player%} is not set:
- set {fall.%player%} to 0
- block below location of player is air
- push player upwards at speed 2
- push player horizontally forwards at speed 3
- command /feater:
- usage: /feater
- permission: skript.admin
- executable by: player
- trigger:
- give feather of Feather Falling 1 named "§e§l天使の羽 §a§lLv1" to player
- give feather of Feather Falling 1 named "§e§l天使の羽 §a§lLv2" to player
- give feather of Feather Falling 1 named "§e§l大天使の羽 §a§lLv1" to player
- give feather of Feather Falling 1 named "§e§l大天使の羽 §a§lLv2" to player
- give feather of Feather Falling 1 named "§e§l主天使の羽 §a§lLv1" to player
- give feather of Feather Falling 1 named "§e§l主天使の羽 §a§lLv2" to player
- give feather of Feather Falling 1 named "§e§l主天使の羽 §a§lLv3" to player
- give feather of Feather Falling 1 named "§c§l熾天使の羽" to player
- command /featergod:
- usage: /feater god
- permission: skript.admin
- executable by: player
- trigger:
- give feather of Feather Falling 1 named "§c§l§n神の羽" to player
- on damage:
- victim has feather of Feather Falling
- damage was caused by fall
- cancel event
- on rightclick:
- block is a sign
- line 1 of clicked block is "§3§l=========="
- line 2 of clicked block is "§b§lスポーンポイント"
- line 3 of clicked block is "§a§l[右クリック]"
- line 4 of clicked block is "§3§l=========="
- execute console command "/spawnpoint %player%"
- message "<aqua>スポーンポイントを設定しました!"
- command "/playsound minecraft:block.note.pling master %player% ~ ~ ~ 1 2 1"
- on damage:
- {damagelog.%attacker%} is 1
- wait a tick
- loop blocks in radius 1 around head of victim:
- add location of loop-block to {_blocks::*}
- set {_bl} to random element of {_blocks::*}
- set {damage.%attacker%} to {damage.%attacker%}*2
- set {damage2.%attacker%} to {damage.%attacker%}
- createHolo({_bl}, "&c&l-%{damage.%attacker%}%", 25 ticks)
- set {maxhpvic.%attacker%} to max health of victim * 2
- set {hpvic.%attacker%} to health of victim * 2
- send "%name of victim% &c&l-%{damage2.%attacker%}% &a&l%{maxhpvic.%attacker%}%/%{hpvic.%attacker%}% " to attacker
- command /damagelog [<string>]:
- trigger:
- if arg 1 is not set:
- if {damagelog.%player%} is 1:
- set {damagelog.%player%} to 0
- message "&6&lダメージログをオフにしました"
- else if {damagelog.%player%} is 0:
- set {damagelog.%player%} to 1
- message "&6&lダメージログをオンにしました"
- else if arg 1 is "on":
- set {damagelog.%player%} to 1
- message "&6&lダメージログをオンにしました"
- else if arg 1 is "off":
- set {damagelog.%player%} to 0
- message "&6&lダメージログをオフにしました"
- function createHolo(l: Location, t: Text, length: Timespan):
- create hologram "%{_t}%" at {_l} for {_length}
- on break:
- player do not have permission "skript.builder"
- cancel event
- on place:
- player do not have permission "skript.builder"
- cancel event
- on craft:
- cancel event
- on spread:
- cancel event
- on burn:
- cancel event
- on explosion prime:
- cancel event
- command /c:
- description: コマンドブロックを入手する
- usage: /c
- permission: skript.admin
- executable by: player
- trigger:
- give command block to player
- give redstone block to player
- command /en:
- description: エンダーチェストを開く
- usage: /en
- executable by: player
- trigger:
- open the player's ender chest to the player
- command "/playsound minecraft:block.enderchest.open voice %player% ~ ~ ~ 1 1 1"
- on command "/pl":
- if player doesn't have permission "skript.admin":
- cancel event
- message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
- on command "/plugins":
- if player doesn't have permission "skript.admin":
- cancel event
- message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
- on command "/?":
- if player doesn't have permission "skript.admin":
- cancel event
- message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
- on command "/help":
- if player doesn't have permission "skript.admin":
- cancel event
- message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
- on command "/bukkit:?":
- if player doesn't have permission "skript.admin":
- cancel event
- message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
- on command "/bukkit:pl":
- if player doesn't have permission "skript.admin":
- cancel event
- message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
- on join:
- if {join.%player%} is 1:
- set the join message to "&e%player%さんがサーバーに参加しました。"
- else:
- command "/tp %player% 0 4 0"
- set the join message to "&d%player%さんがサーバーに初参加しました。"
- wait a tick
- set {checkpoint.%player%} to location of player
- set {join.%player%} to 1
- on quit:
- set the quit message to "&e%player%さんがサーバーから退出しました。"
- on rightclick on anvil:
- block under the event-block is iron block
- cancel event
- if name of held item contains "§r§c§l":
- if {tool.%player%} is set:
- message "&c既に武器がセットされています"
- else if {tool.%player%} is not set:
- set {tool.%player%} to player's tool
- set {tool.name.%player%} to name of player's tool
- delete player's tool
- message "&a武器をセットしました"
- else if name of held item is "§c§l§n強化石":
- if {tool.%player%} is not set:
- message "&c武器がセットされていません"
- else if name of {tool.%player%} contains "+":
- set {tool.name.%player%} to name of {tool.%player%}
- set {retool.name.%player%} to {tool.name.%player%}
- replace "§0" with "" in {tool.name.%player%}
- replace "§1" with "" in {tool.name.%player%}
- replace "§2" with "" in {tool.name.%player%}
- replace "§3" with "" in {tool.name.%player%}
- replace "§4" with "" in {tool.name.%player%}
- replace "§5" with "" in {tool.name.%player%}
- replace "§6" with "" in {tool.name.%player%}
- replace "§7" with "" in {tool.name.%player%}
- replace "§8" with "" in {tool.name.%player%}
- replace "§9" with "" in {tool.name.%player%}
- set {tool.number.%player%} to {tool.name.%player%}
- set {tool.number.%player%} to numpick({tool.number.%player%})
- set {retool.number.%player%} to {tool.number.%player%}
- if name of {tool.%player%} contains "10":
- message "§cこの武器はすでに強化値が10なのでこれ以上強化でません"
- stop
- else if {tool.number.%player%} is between 1 and 9:
- play sound "block.anvil.use" with pitch 2 at player
- set {percent} to random integer between 1 and 8
- execute console command "/clear tihi1059 minecraft:dye 1 1"
- set {tool.plus.%player%} to 0
- if {percent} is 1:
- add -2 to {tool.number.%player%}
- set {tool.plus.%player%} to 1
- else if {percent} is between 2 and 4:
- add -1 to {tool.number.%player%}
- set {tool.plus.%player%} to 1
- else if {percent} is between 5 and 7:
- add 1 to {tool.number.%player%}
- else if {percent} is 8:
- add 2 to {tool.number.%player%}
- wait a tick
- if {tool.number.%player%} is between -100 and 0:
- replace "§r§c§l+%{retool.number.%player%}%" with "§r§c§l" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- else if {tool.number.%player%} is between 1 and 9:
- replace "§r§c§l+%{retool.number.%player%}%" with "§r§c§l+%{tool.number.%player%}%" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- else if {tool.number.%player%} is between 10 and 100:
- replace "§r§c§l+%{retool.number.%player%}%" with "§r§c§l+10" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- wait a tick
- if {tool.number.%player%} is between -100 and 0:
- message "§3§l[強化失敗] §c§l強化後 +§60"
- if {tool.number.%player%} is between 1 and 10:
- if {tool.plus.%player%} is 1:
- message "§3§l[強化失敗] §a§l強化前 §c§l+§6§l%{retool.number.%player%}% §a→ §c§l強化後 +§6§l%{tool.number.%player%}%"
- else:
- message "§c§l[強化成功] §a§l強化前 +§6§l%{retool.number.%player%}% §a→ §c§l強化後 +§6§l%{tool.number.%player%}%"
- if {tool.number.%player%} is between 11 and 100:
- message "§c§l[強化成功] §a§l強化前 +§6§l%{retool.number.%player%}% §a→ §c§l強化後 +§6§l10"
- else if name of {tool.%player%} doesn't contain "+":
- play sound "block.anvil.use" with pitch 2 at player
- set {tool.name.%player%} to name of {tool.%player%}
- set {percent} to random integer between 1 and 8
- set {tool.number.%player%} to 0
- execute console command "/clear tihi1059 minecraft:dye 1 1"
- if {percent} is between 1 and 4:
- message "§c§l強化失敗"
- stop
- else if {percent} is between 5 and 7:
- set {tool.number.%player%} to 1
- else if {percent} is 8:
- set {tool.number.%player%} to 2
- replace "§r§c§l" with "§r§c§l+%{tool.number.%player%}%" in {tool.name.%player%}
- message "§c§l[強化成功] §c§l強化後 +§6§l%{tool.number.%player%}%"
- set the name of {tool.%player%} to {tool.name.%player%}
- else if name of held item is "§7§l強化リセット石":
- set {tool.name.%player%} to name of {tool.%player%}
- if name of {tool.%player%} contains "10":
- replace "§r§c§l+10" with "§r§c§l" in {tool.name.%player%}
- set the name of {tool.%player%} to {tool.name.%player%}
- message "§6§l武器強化をリセットしました"
- play sound "block.anvil.use" with pitch 2 at player
- else if name of {tool.%player%} contains "+":
- set {retool.name.%player%} to {tool.name.%player%}
- replace "§0" with "" in {retool.name.%player%}
- replace "§1" with "" in {retool.name.%player%}
- replace "§2" with "" in {retool.name.%player%}
- replace "§3" with "" in {retool.name.%player%}
- replace "§4" with "" in {retool.name.%player%}
- replace "§5" with "" in {retool.name.%player%}
- replace "§6" with "" in {retool.name.%player%}
- replace "§7" with "" in {retool.name.%player%}
- replace "§8" with "" in {retool.name.%player%}
- replace "§9" with "" in {retool.name.%player%}
- set {retool.name.%player%} to numpick({retool.name.%player%})
- replace "§r§c§l+%{retool.name.%player%}%" with "§r§c§l" in {tool.name.%player%}
- set the name of {tool.%player%} to {tool.name.%player%}
- execute console command "/clear tihi1059 minecraft:dye 8 1"
- message "§6§l武器強化をリセットしました"
- play sound "block.anvil.use" with pitch 2 at player
- else:
- if {tool.%player%} is set:
- give {tool.%player%} to player
- delete {tool.%player%}
- message "&a武器を戻しました"
- on damage:
- if {skill.%attacker%} is 1:
- set {skilldamage.%attacker%} to damage + {ATTR.%attacker%}
- set {damage.%attacker%} to {skilldamage.%attacker%} * (100+{AttackBonus.%attacker%})/100
- set {skill.%attacker%} to 0
- send "Skill Do" to attacker
- set damage to {damage.%attacker%}
- else:
- set {damage.%attacker%} to damage * (100+{AttackBonus.%attacker%})/100
- set {damage2.%attacker%} to {damage.%attacker%}
- send "BUTURI DO" to attacker
- set damage to {damage.%attacker%}
- on tool change:
- delete {AttackBonus.%player%}
- if name of player's tool contains "§r§c§l":
- if name of player's tool contains "10":
- set {AttackBonus.%player%} to 10
- else:
- set {usetool.%player%} to name of player's tool
- replace "§0" with "" in {usetool.%player%}
- replace "§1" with "" in {usetool.%player%}
- replace "§2" with "" in {usetool.%player%}
- replace "§3" with "" in {usetool.%player%}
- replace "§4" with "" in {usetool.%player%}
- replace "§5" with "" in {usetool.%player%}
- replace "§6" with "" in {usetool.%player%}
- replace "§7" with "" in {usetool.%player%}
- replace "§8" with "" in {usetool.%player%}
- replace "§9" with "" in {usetool.%player%}
- set {usetool.%player%} to numpick({usetool.%player%})
- set {AttackBonus.%player%} to {usetool.%player%}
- else:
- set {AttackBonus.%player%} to 0
- function numpick(t:text) :: number:
- set {_text} to {_t}
- set {_args::*} to {_text} split at ""
- set {_count} to 1
- set {_re} to 0
- set {_b} to 1
- while {_args::%{_count}%} is set:
- set {_num} to {_args::%{_count}%} parsed as number
- if {_num} is set:
- add {_num} * {_b} to {_re}
- set {_b} to {_b} * 10
- clear {_num}
- add 1 to {_count}
- return {_re}
- options:
- count : 20
- on tool change:
- wait 1 tick
- set {defense.%player%} to 0
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of player's helmet contains "防御力:":
- set {_lore1} to line {_line} of lore of player's helmet
- stop loop
- add 1 to {_line}
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of player's chestplate contains "防御力:":
- set {_lore2} to line {_line} of lore of player's chestplate
- stop loop
- add 1 to {_line}
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of player's leggings contains "防御力:":
- set {_lore3} to line {_line} of lore of player's leggings
- stop loop
- add 1 to {_line}
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of player's boots contains "防御力:":
- set {_lore4} to line {_line} of lore of player's boots
- stop loop
- add 1 to {_line}
- set {_n} to 1
- loop 4 times:
- replace "§1防御力: " with "" in {_lore%{_n}%}
- set {_lore%{_n}%} to {_lore%{_n}%} parsed as number
- add {_lore%{_n}%} to {defense.%player%}
- add 1 to {_n}
- on damage:
- victim is a player
- set {playerdamage.%victim%} to damage - {defense.%victim%}
- if {playerdamage.%victim%} is greater than or equal to 1:
- set damage to {playerdamage.%victim%}
- {damagelog.%victim%} is 1
- set {playerdamage.%victim%} to {playerdamage.%victim%}*2
- send "§c§l%{playerdamage.%victim%}%ダメージ" to victim
- else:
- set damage to 1
- {damagelog.%victim%} is 1
- send "§c§l1ダメージ" to victim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement