Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- if {ykigen.zahyou} is not set:
- set {ykigen.zahyou} to 200
- set {ykigen.wariai} to 7000
- every tick:
- if {ykigen.zahyou} > 200:
- set {ykigen.zahyou} to 200
- if {ykigen.zahyou} < 1:
- set {ykigen.zahyou} to 200
- clear all players' inventory
- kill all players
- if {ykigen.wariai} > 10000:
- set {ykigen.wariai} to 10001
- if {ykigen.wariai} > -10000:
- remove 4 from {ykigen.wariai}
- if {ykigen.wariai} <= -10000:
- set {ykigen.wariai} to -10000
- set {_kigen} to floor({ykigen.wariai})/100
- set {_zahyouint} to floor({ykigen.zahyou})
- loop all players:
- if loop-player's y-coord > {ykigen.zahyou}:
- show an actionbar from coloured "&c&ly座標様の機嫌を損ねた! %{_zahyouint}%以下まで戻れ!" to loop-player
- apply wither 2 to loop-player for 2 tick
- remove 0.008 from {ykigen.zahyou}
- else:
- show an actionbar from coloured "&e&ly座標様の &b機嫌: %{_kigen}% &a許可座標: %{_zahyouint}%" to loop-player
- every second:
- if {ykigen.wariai} > 9900:
- add 0.2 to {ykigen.zahyou}
- else if {ykigen.wariai} > 8000:
- add 0.06 to {ykigen.zahyou}
- else if {ykigen.wariai} > 0:
- add 0.015 to {ykigen.zahyou}
- else if {ykigen.wariai} > -8000:
- remove 0.015 from {ykigen.zahyou}
- else if {ykigen.wariai} > -9900:
- remove 0.6 from {ykigen.zahyou}
- else:
- remove 0.2 from {ykigen.zahyou}
- on drop:
- set {_x} to floor(player's x-coord)
- set {_y} to floor(player's y-coord)
- set {_z} to floor(player's z-coord)
- if block below player is coal block:
- block of location at ({_x}-1, {_y}-1, {_z}+1) is coal_block
- block of location at ({_x}-1, {_y}-1, {_z}-1) is coal_block
- block of location at ({_x}, {_y}-1, {_z}+1) is coal_block
- block of location at ({_x}, {_y}-1, {_z}-1) is coal_block
- block of location at ({_x}+1, {_y}-1, {_z}+1) is coal_block
- block of location at ({_x}+1, {_y}-1, {_z}-1) is coal_block
- block of location at ({_x}-1, {_y}-1, {_z}) is coal_block
- block of location at ({_x}+1, {_y}-1, {_z}) is coal_block
- set {_t} to 1.0
- else if block below player is iron block:
- block of location at ({_x}-1, {_y}-1, {_z}+1) is iron_block
- block of location at ({_x}-1, {_y}-1, {_z}-1) is iron_block
- block of location at ({_x}, {_y}-1, {_z}+1) is iron_block
- block of location at ({_x}, {_y}-1, {_z}-1) is iron_block
- block of location at ({_x}+1, {_y}-1, {_z}+1) is iron_block
- block of location at ({_x}+1, {_y}-1, {_z}-1) is iron_block
- block of location at ({_x}-1, {_y}-1, {_z}) is iron_block
- block of location at ({_x}+1, {_y}-1, {_z}) is iron_block
- set {_t} to 2.0
- else if block below player is gold block:
- block of location at ({_x}-1, {_y}-1, {_z}+1) is gold_block
- block of location at ({_x}-1, {_y}-1, {_z}-1) is gold_block
- block of location at ({_x}, {_y}-1, {_z}+1) is gold_block
- block of location at ({_x}, {_y}-1, {_z}-1) is gold_block
- block of location at ({_x}+1, {_y}-1, {_z}+1) is gold_block
- block of location at ({_x}+1, {_y}-1, {_z}-1) is gold_block
- block of location at ({_x}-1, {_y}-1, {_z}) is gold_block
- block of location at ({_x}+1, {_y}-1, {_z}) is gold_block
- set {_t} to 2.5
- else if block below player is diamond block:
- block of location at ({_x}-1, {_y}-1, {_z}+1) is diamond_block
- block of location at ({_x}-1, {_y}-1, {_z}-1) is diamond_block
- block of location at ({_x}, {_y}-1, {_z}+1) is diamond_block
- block of location at ({_x}, {_y}-1, {_z}-1) is diamond_block
- block of location at ({_x}+1, {_y}-1, {_z}+1) is diamond_block
- block of location at ({_x}+1, {_y}-1, {_z}-1) is diamond_block
- block of location at ({_x}-1, {_y}-1, {_z}) is diamond_block
- block of location at ({_x}+1, {_y}-1, {_z}) is diamond_block
- set {_t} to 3.5
- else if block below player is emerald block:
- block of location at ({_x}-1, {_y}-1, {_z}+1) is emerald_block
- block of location at ({_x}-1, {_y}-1, {_z}-1) is emerald_block
- block of location at ({_x}, {_y}-1, {_z}+1) is emerald_block
- block of location at ({_x}, {_y}-1, {_z}-1) is emerald_block
- block of location at ({_x}+1, {_y}-1, {_z}+1) is emerald_block
- block of location at ({_x}+1, {_y}-1, {_z}-1) is emerald_block
- block of location at ({_x}-1, {_y}-1, {_z}) is emerald_block
- block of location at ({_x}+1, {_y}-1, {_z}) is emerald_block
- set {_t} to 4.0
- if {_t} is not set:
- stop
- if {nouhinn.ct::%{_x}%,%{_y}-1%,%{_z}%} > 0:
- message "&cクールダウン中です (残り%{nouhinn.ct::%{_x}%,%{_y}-1%,%{_z}%}%秒)"
- stop
- else:
- set {nouhinn.ct::%{_x}%,%{_y}-1%,%{_z}%} to 2
- add 0.1*{_t} to {ykigen.wariai}
Add Comment
Please, Sign In to add comment