SHOW:
|
|
- or go back to the newest paste.
| 1 | every tick: | |
| 2 | loop all players: | |
| 3 | if {cooltimeTA::%loop-player%} is not set:
| |
| 4 | set {cooltimeTA::%loop-player%} to 0
| |
| 5 | if {cooltimeTA::%loop-player%} > 0:
| |
| 6 | remove 1 from {cooltimeTA::%loop-player%}
| |
| 7 | ||
| 8 | Function tickConvMSMS(i: integer): | |
| 9 | set {_second} to floor({_i}/20)
| |
| 10 | set {_tick} to {_i}-20*{_second}
| |
| 11 | set {_minute} to floor({_second}/60)
| |
| 12 | set {_second} to {_second}-60*{_minute}
| |
| 13 | set {_tick} to {_tick}*5
| |
| 14 | if {_tick} < 10:
| |
| 15 | set {__tick} to "0%{_tick}%"
| |
| 16 | else: | |
| 17 | set {__tick} to "%{_tick}%"
| |
| 18 | if {_second} < 10:
| |
| 19 | set {__second} to "0%{_second}%"
| |
| 20 | else: | |
| 21 | set {__second} to "%{_second}%"
| |
| 22 | if {_minute} < 10:
| |
| 23 | set {__minute} to "0%{_minute}%"
| |
| 24 | else: | |
| 25 | set {__minute} to "%{_minute}%"
| |
| 26 | set {tickConvMSMS} to "%{__minute}%:%{__second}%.%{__tick}%"
| |
| 27 | ||
| 28 | command /editcp [<text>] [<text>]: | |
| 29 | permission: skript.admin | |
| 30 | trigger: | |
| 31 | if arg 1 is "select": | |
| 32 | set {editcp.mode::%player%} to "s"
| |
| 33 | set {editcp.name::%player%} to arg 2
| |
| 34 | message "&a看板を設置すると設定できます" | |
| 35 | else if arg 1 is "time": | |
| 36 | set {editcp.mode::%player%} to "t"
| |
| 37 | set {editcp.name::%player%} to arg 2
| |
| 38 | message "&aYou can set it by placing a signboard" | |
| 39 | else if arg 1 is "check": | |
| 40 | set {editcp.mode::%player%} to "c"
| |
| 41 | set {editcp.name::%player%} to arg 2
| |
| 42 | message "&aYou can set it by placing a signboard" | |
| 43 | else if arg 1 is "goal": | |
| 44 | set {editcp.mode::%player%} to "g"
| |
| 45 | set {editcp.name::%player%} to arg 2
| |
| 46 | message "&aYou can set it by placing a signboard" | |
| 47 | else if arg 1 is "off": | |
| 48 | set {editcp.mode::%player%} to "o"
| |
| 49 | clear {editcp.name::%player%}
| |
| 50 | - | message "&aオフにしました" |
| 50 | + | message "&cswitched off setting of the signboard" |
| 51 | else: | |
| 52 | message "&c[Error] &9/editcp &6<mode> <cp name>" | |
| 53 | message "&7mode: &eselect, time, check, goal, off" | |
| 54 | ||
| 55 | on place of sign: | |
| 56 | if {editcp.mode::%player%} is "s":
| |
| 57 | - | set line 1 of event-block to "&8&l====*=====*====" |
| 57 | + | set line 1 of event-block to "&3■■&2■&1|-||&5Select&1||-|&2■&3■■" |
| 58 | - | set line 2 of event-block to "&7&l:. &9Select &7&l.:" |
| 58 | + | set line 2 of event-block to "&8Right click" |
| 59 | - | set line 3 of event-block to "&b%{editcp.name::%player%}%"
|
| 59 | + | set line 3 of event-block to "&0%{editcp.name::%player%}%"
|
| 60 | - | set line 4 of event-block to "&8&l====*=====*====" |
| 60 | + | set line 4 of event-block to "&3■■&2■&1|-||&9ground&1||-|&2■&3■■" |
| 61 | if {editcp.mode::%player%} is "t":
| |
| 62 | - | set line 1 of event-block to "&8&l====*=====*====" |
| 62 | + | set line 1 of event-block to "&3■■&2■&1|-||&cTimeAttack&1||-|&2■&3■■" |
| 63 | - | set line 2 of event-block to "&7&l:. &6TimeAttack &7&l.:" |
| 63 | + | set line 2 of event-block to "&8Right click" |
| 64 | - | set line 3 of event-block to "&b%{editcp.name::%player%}%"
|
| 64 | + | set line 3 of event-block to "&0%{editcp.name::%player%}%"
|
| 65 | - | set line 4 of event-block to "&8&l====*=====*====" |
| 65 | + | set line 4 of event-block to "&3■■&2■&1|-||&9ground&1||-|&2■&3■■" |
| 66 | if {editcp.mode::%player%} is "c":
| |
| 67 | - | set line 1 of event-block to "&8&l====*=====*====" |
| 67 | + | set line 1 of event-block to "&3■■&2■&1|-||&5WayPoint&1||-|&2■&3■■" |
| 68 | - | set line 2 of event-block to "&7&l:. &eCheckPoint &7&l.:" |
| 68 | + | set line 2 of event-block to "&8Right click" |
| 69 | - | set line 3 of event-block to "&b%{editcp.name::%player%}%"
|
| 69 | + | set line 3 of event-block to "&0%{editcp.name::%player%}%"
|
| 70 | - | set line 4 of event-block to "&8&l====*=====*====" |
| 70 | + | set line 4 of event-block to "&3■■&2■&1|-||&9ground&1||-|&2■&3■■" |
| 71 | if {editcp.mode::%player%} is "g":
| |
| 72 | - | set line 1 of event-block to "&8&l====*=====*====" |
| 72 | + | set line 1 of event-block to "&3■■&2■&1|-||&6Goal&1||-|&2■&3■■" |
| 73 | - | set line 2 of event-block to "&7&l:. &cGoal &7&l.:" |
| 73 | + | set line 2 of event-block to "&8Right click" |
| 74 | - | set line 3 of event-block to "&b%{editcp.name::%player%}%"
|
| 74 | + | set line 3 of event-block to "&0%{editcp.name::%player%}%"
|
| 75 | - | set line 4 of event-block to "&8&l====*=====*====" |
| 75 | + | set line 4 of event-block to "&3■■&2■&1|-||&9ground&1||-|&2■&3■■" |
| 76 | ||
| 77 | on rightclick: | |
| 78 | - | if player's held item is stick named "&cCheck&9Point": |
| 78 | + | if player's held item is quartz named "&aWayPoint: |
| 79 | event-block is not sign | |
| 80 | command "/cp %player%" | |
| 81 | if line 2 of event-block is "&7&l:. &9Select &7&l.:": | |
| 82 | set {_line2} to line 3 of event-block
| |
| 83 | replace "&b" in {_line2} with ""
| |
| 84 | set {cpselect::%player%} to {_line2}
| |
| 85 | - | message "&7[&cC&9P&7] &bチェックポイントを選択しました" |
| 85 | + | message "&f&l<&e&l< &f&lWP &e&l>&f&l> &aWaypoint has been saved &7(%{editcp.name::%player%}%)"
|
| 86 | - | command "/execute %player% ~ ~ ~ playsound block.note.pling master @s ~ ~ ~ 1 1.5" |
| 86 | + | execute console command "playsound entity.player.levelup master %player% ~ ~ ~ 1 2 1" |
| 87 | - | command "/execute %player% ~ ~ ~ playsound block.note.pling master @s ~ ~ ~ 1 1.2" |
| 87 | + | |
| 88 | {cooltimeTA::%player%} = 0
| |
| 89 | set {cooltimeTA::%player%} to 4
| |
| 90 | set {_line2} to line 3 of event-block
| |
| 91 | replace "&b" in {_line2} with ""
| |
| 92 | set {enableTA.%{_line2}%::%player%} to false
| |
| 93 | set {countTA.%{_line2}%::%player%} to 0
| |
| 94 | message "&f&l<&e&l< &e&lTA &e&l>&f&l> &f%{editcp.name::%player%}% のTAを開始しました。"
| |
| 95 | - | message "&7[&cC&9P&7] &6タイムアタックを開始しました" |
| 95 | + | execute console command "playsound entity.enderdragon.ambient master %player% ~ ~ ~ 1 1.3 1" |
| 96 | - | command "/execute %player% ~ ~ ~ playsound block.note.pling master @s ~ ~ ~ 1 1.5" |
| 96 | + | |
| 97 | - | wait 2 tick |
| 97 | + | |
| 98 | - | command "/execute %player% ~ ~ ~ playsound block.note.pling master @s ~ ~ ~ 1 2.0" |
| 98 | + | |
| 99 | - | wait 2 tick |
| 99 | + | |
| 100 | - | command "/execute %player% ~ ~ ~ playsound block.note.pling master @s ~ ~ ~ 1 1.5" |
| 100 | + | |
| 101 | tickConvMSMS({countTA.%{_line2}%::%player%})
| |
| 102 | broadcast "&7[&6T&aA&7] &d%player%&a: &b'%{_line2}%' &e&l%{tickConvMSMS}% &7(%{countTA.%{_line2}%::%player%}%Tick)"
| |
| 103 | if {recordTA.%{_line2}%::%player%} is not set:
| |
| 104 | set {recordTA.%{_line2}%::%player%} to {countTA.%{_line2}%::%player%}
| |
| 105 | message "&f&l<&e&l< &e&lTA &e&l>&f&l> &eCongratulations to your first clear!" | |
| 106 | else if {recordTA.%{_line2}%::%player%} <= {countTA.%{_line2}%::%player%}:
| |
| 107 | tickConvMSMS({recordTA.%{_line2}%::%player%})
| |
| 108 | message "&f&l<&e&l< &e&lTA &e&l>&f&l> Congratulations to clear! &6(Best Time:&l%{tickConvMSMS}%&6)"
| |
| 109 | else if {recordTA.%{_line2}%::%player%} > {countTA.%{_line2}%::%player%}:
| |
| 110 | - | message "&7[&6T&aA&7] &e&l初クリアおめでとうございます!" |
| 110 | + | |
| 111 | set {recordTA.%{_line2}%::%player%} to {countTA.%{_line2}%::%player%}
| |
| 112 | message "&f&l<&e&l< &e&lTA &e&l>&f&l> &3自己記録を更新しました! &d(旧自己最高:&l%{tickConvMSMS}%&6)"
| |
| 113 | - | message "&7[&6T&aA&7] &e次は記録更新目指して頑張りましょう! &d(自己最高:&l%{tickConvMSMS}%&d)"
|
| 113 | + | execute console command "playsound entity.player.levelup master %player% ~ ~ ~ |
| 114 | set {goalTA.%{_line2}%::%player%} to false
| |
| 115 | set {enableTA.%{_line2}%::%player%} to false
| |
| 116 | set {countTA.%{_line2}%::%player%} to 0
| |
| 117 | - | message "&7[&6T&aA&7] &6&l自己最高記録更新! &d(旧自己最高:&l%{tickConvMSMS}%&d)"
|
| 117 | + | |
| 118 | - | message "&7[&6T&aA&7] &aタイムアタックお疲れ様でした!" |
| 118 | + | |
| 119 | - | command "/execute %player% ~ ~ ~ playsound block.note.pling master @s ~ ~ ~ 1 2.0" |
| 119 | + | |
| 120 | - | wait 2 tick |
| 120 | + | |
| 121 | - | command "/execute %player% ~ ~ ~ playsound block.note.pling master @s ~ ~ ~ 1 1.5" |
| 121 | + | message "&f&l<&e&l< &e&lTA &e&l>&f&l> &cTAを開始していません!" |
| 122 | - | wait 2 tick |
| 122 | + | |
| 123 | - | command "/execute %player% ~ ~ ~ playsound block.note.pling master @s ~ ~ ~ 1 2.0" |
| 123 | + | |
| 124 | message "&f&l<&e&l< &e&lTA &e&l>&f&l> &4近くまで来てから右クリックしてください!" | |
| 125 | stop | |
| 126 | set {goalTA.%{_line2}%::%player%} to true
| |
| 127 | clear {checkpoint.%{cpselect::%{_player}%}%::%{_player}%}
| |
| 128 | if line 2 of event-block is "&7&l:. &eCheckPoint &7&l.:": | |
| 129 | if block below player is air: | |
| 130 | message "&c&l<&4&l<&4&l WP &4&l>&c&l> &c空中で設定することはできません! " | |
| 131 | - | message "&7[&6T&aA&7] &cタイムアタックを開始していません" |
| 131 | + | |
| 132 | set {_line2} to line 3 of event-block
| |
| 133 | replace "&b" in {_line2} with ""
| |
| 134 | - | message "&7[&6T&aA&7] &c近くまで来てからクリックしてください" |
| 134 | + | |
| 135 | set {_line2} to line 3 of event-block
| |
| 136 | replace "&b" in {_line2} with ""
| |
| 137 | set {cpselect::%player%} to {_line2}
| |
| 138 | message " &f&l<&e&l< &f&lWP &e&l>&f&l> &aWaypoint has been saved &7(%{editcp.name::%player%}%)"
| |
| 139 | execute console command "playsound entity.player.levelup master %player% ~ ~ ~ 1 2 1" | |
| 140 | - | message "&7[&cC&9P&7] &c空中ではチェックポイントを設定できません" |
| 140 | + | if {_cooldown} is less than 1 seconds:
|
| 141 | send " &c&l<&4&l<&4&l WP &4&l>&c&l> &4Please wait at 1 second for Waypoint save to next." | |
| 142 | ||
| 143 | command /goal [<player>]: | |
| 144 | permission: skript.admin | |
| 145 | trigger: | |
| 146 | set {_player} to arg 1
| |
| 147 | if arg 1 is not set: | |
| 148 | - | message "&7[&cC&9P&7] &aチェックポイントを設定しました" |
| 148 | + | |
| 149 | - | command "/execute %player% ~ ~ ~ playsound block.note.pling master @s ~ ~ ~ 1 0.9" |
| 149 | + | |
| 150 | - | command "/execute %player% ~ ~ ~ playsound block.note.pling master @s ~ ~ ~ 1 0.75" |
| 150 | + | |
| 151 | ||
| 152 | command /checkpoint [<player>]: | |
| 153 | aliases: /cp | |
| 154 | trigger: | |
| 155 | set {_player} to arg 1
| |
| 156 | if arg 1 is not set: | |
| 157 | set {_player} to player
| |
| 158 | teleport {_player} to location of {checkpoint.%{cpselect::%{_player}%}%::%{_player}%}
| |
| 159 | ||
| 160 | command /item [<player>]: | |
| 161 | trigger: | |
| 162 | set {_player} to arg 1
| |
| 163 | if arg 1 is not set: | |
| 164 | set {_player} to player
| |
| 165 | set slot 1 of player to stick named "&cCheck&9Point" |