Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- p: &6[&eCaveMining&6]
- v: &d0.3
- vt: &ashopと丸石を仮想丸石と交換することができるようになった
- g: &c&lに当選しました。
- b: &e%player%&7が
- c: &6Cost &6&l- &7
- variables:
- {%player%.mp} = 1
- {%player%.truemp} = 1
- {%player%.option::1} = 0
- {%player%.option::2} = 1
- {cobblestone} = 1
- {coalore} = 4
- {ironore} = 10
- {goldore} = 75
- {lapisore} = 630
- {emeraldore} = 6900
- {diamondore} = 110000
- every second:
- loop all players:
- set {%loop-player%.truemp} to floor({%loop-player%.mp})
- on mine of cobblestone:
- cancel event
- add {%player%.mp}*{cobblestone} to {%player%.cb}
- chance of 2%:
- add {%player%.mp}*{cobblestone}*4 to {%player%.cb}
- message "{@p} &bCritical Hit! &cx5"
- on mine of iron ore:
- cancel event
- add {%player%.mp}*{ironore} to {%player%.cb}
- chance of 2%:
- add {%player%.mp}*{ironore}*4 to {%player%.cb}
- message "{@p} &bCritical Hit! &cx5"
- on mine of gold ore:
- cancel event
- add {%player%.mp}*{goldore} to {%player%.cb}
- chance of 2%:
- add {%player%.mp}*{goldore}*4 to {%player%.cb}
- message "{@p} &bCritical Hit! &cx5"
- every 2 tick:
- loop all players:
- send action bar with text "{@p} &6所持丸石 : &e%{%loop-player%.cb}% &6cb" to loop-player
- command /status <player>:
- trigger:
- message "&7━━━━━━━━━━━━━━━━━━━━━━━━━"
- message "&6┣ &eplayer : &b%arg%"
- message "&6┣ &e仮想丸石 : &e%{%arg%.cb}% &6cb"
- message "&6┣ &e倍数 : &e%{%arg%.mp}% &6倍"
- message "&6┣ &eプレイ時間 : &e%{%arg%.min}% &6分"
- message "&7━━━━━━━━━━━━━━━━━━━━━━━━"
- every 60 seconds:
- loop all players:
- add 1 to {%loop-player%.min}
- command /option <integer>:
- trigger:
- if arg is 1:
- if {%player%.option::1} is 1:
- set {%player%.option::1} to 0
- message "{@p}&7-system &7自動売却モードを&c無効&7にしました。"
- else:
- set {%player%.option::1} to 1
- message "{@p}&7-system &7自動売却モードを&a有効&7にしました。"
- if arg is 2:
- if {%player%.option::2} is 1:
- set {%player%.option::2} to 0
- message "{@p}&7-system &7圧縮丸石解凍モードを&c無効&7にしました。"
- else:
- set {%player%.option::2} to 1
- message "{@p}&7-system &7圧縮丸石解凍モード&a有効&7にしました。"
- on right click with a cobblestone:
- cancel event
- if player is sneaking:
- add amount of cobblestone in the event-player's inventory to {%player%.cb}
- remove all cobblestone from event-player's inventory
- else:
- add 1 to {%player%.cb}
- remove a cobblestone from player's inventory
- on right click with a stone:
- cancel event
- if {%player%.option::2} is 1:
- set {_level.%player%} to the line 1 of lore of event-item
- replace all "&8ID:" with "" in {_level.%player%}
- set {_level.%player%.number} to {_level.%player%} parsed as an integer
- add (16+{_level.%player%.number})^({_level.%player%.number}) to {%player%.cb}
- remove 1 of player's held item from the player's inventory
- else:
- message "{@p}&7-system &7圧縮丸石解凍モードが無効になっています。"
- on join:
- message "&7&l====================================="
- message "&6&b-CaveMinerStory-"
- message "&6 &eversion : {@v}"
- message "&6[&cChangeLog&6] &f: {@vt}"
- message "&7&l====================================="
- command /ec:
- trigger:
- open the player's ender chest to the player
- message "&5エンダーチェストを開きました"
- on click with a paper:
- if event-item is paper named "&6CaveTicket":
- cancel event
- remove a paper named "&6CaveTicket" from player
- set {_gacha1} to random integer between 1 and 1000
- if {_gacha1} is between 1 and 250:
- message "{@p} &b水晶の欠片 *1 {@g}"
- if {_gacha1} is between 251 and 350:
- message "{@p} &b水晶の欠片 *2 {@g}"
- if {_gacha1} is between 351 and 400:
- message "{@p} &b水晶の欠片 *3 {@g}"
- if {_gacha1} is between 401 and 410:
- broadcast "{@p} {@b}&b&l水晶 *1 {@g}"
- if {_gacha1} is between 411 and 500:
- message "{@p} &dVoteTicket *1 {@g}"
- if {_gacha1} is between 501 and 505:
- message "{@p} &d&lVoteTicket *4 {@g}"
- if {_gacha1} is between 506 and 600:
- broadcast "{@p} {@b}&7丸石取得量が&a1.01倍&7になりました。 &e(+%{cobblestone}%)"
- if {_gacha1} is between 601 and 660:
- broadcast "{@p} {@b}&6鉄鉱石&7取得量が&a1.01倍&7になりました。 &e(+%{ironore}%)"
- if {_gacha1} is between 981 and 990:
- broadcast "{@p} {@b}&e&l採掘倍率 Ⅰ &r&e(*1.01) {@g}"
- if {_gacha1} is between 991 and 997:
- broadcast "{@p} {@b}&e&l&n採掘倍率 Ⅱ &r&e(*1.03) {@g}"
- if {_gacha1} is between 998 and 999:
- broadcast "{@p} {@b}&6&l採掘倍率 Ⅲ &r&6(*1.08) {@g}"
- if {_gacha1} is 1000:
- broadcast "{@p} {@b}&6&l&n採掘倍率 &r&b&l極 &r&6&l(*1.2){@g}"
- command /rank [<text>]:
- trigger:
- message "{@p} &7--RankInformation--"
- if arg is not set:
- message "{@p} &8[&7old&6VIP&8]&f ... &7採掘倍率 +1倍"
- message "{@p} &8[&6VIP&8]&f ... &7採掘倍率 +2倍"
- message "{@p} &8[&7old&bMVP&8]&f ... &7採掘倍率 +3.5倍"
- message "{@p} &8[&bMVP&8]&f ... &7採掘倍率 +5.5倍"
- message "{@p} &8[&7old&a&lMIP&r&8]&f ... &7採掘倍率 +9倍"
- message "{@p} &8[&a&lMIP&8]&f ... &7採掘倍率 +17倍"
- command /m:
- trigger:
- open chest inventory with 3 row named "&7=CaveMinerStory=" to player
- set {_l} to 0
- set {_air} to gray glass pane named "_"
- loop 27 times:
- set slot {_l} of player's current inventory to {_air}
- add 1 to {_l}
- set slot 0 of player's current inventory to stone named "&7丸石" with lore "{@c}1 cb"
- set slot 1 of player's current inventory to stone named "&7圧縮丸石 &6##1" with lore "{@c}16cb" and "&7初めての圧縮丸石。硬い。"
- set slot 2 of player's current inventory to stone named "&7圧縮丸石 &6##2" with lore "{@c}289cb" and "&7重さ : 2kg"
- set slot 3 of player's current inventory to stone named "&7圧縮丸石 &6##3" with lore "{@c}5,832cb" and "&7圧縮圧縮 (丸石を) 圧縮ぅ"
- set slot 4 of player's current inventory to stone named "&7&l圧縮丸石 &6##4" with lore "{@c}130,321cb" and "&713万cbは丸石約2000st"
- set slot 5 of player's current inventory to stone named "&7&l圧縮丸石 &6##5" with lore "{@c}2,476,099cb" and "&7((tier)+15)^(tier)"
- set slot 6 of player's current inventory to stone named "&7&l圧縮丸石 &6##6" with lore "{@c}64,000,000cb" and "&7綺麗な数字だね"
- on inventory click:
- name of clicked inventory is "&7=CaveMinerStory="
- cancel event
- set {_i} to 0
- loop 27 times:
- if clicked slot is {_i}:
- set {_clicked} to {_i}
- else:
- add 1 to {_i}
- if {_clicked} is between 0 and 6:
- if {%player%.cb} >= ({_clicked}+15)^{_clicked}:
- play sound "ENTITY_ITEM_PICKUP" with volume 100 with pitch 1.9 at player for player
- remove ({_clicked}+15)^{_clicked} from {%player%.cb}
- command "/menu grab %player% cb-%{_clicked}%"
- else:
- message "{@p} &c所持丸石が不足しています。"
- message "{@p} &cあと%(({_clicked}+15)^{_clicked})-{%player%.cb}% cb 必要です。"
- command /setcb <player> <number>:
- permission: skript.admin
- trigger:
- set {_befcb} to {%arg-1%.cb}
- set {%arg-1%.cb} to arg-2
- message "{@p}&7-system &7%{_befcb}% cb &f→ &7%{%player%.cb}%" to player
Advertisement
Add Comment
Please, Sign In to add comment