Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- prefix: &dMiningServer&c>>
- command /setminescore [<text>]:
- permission: mine.sk
- trigger:
- tool of player is not block:
- message "{@prefix}&c設定するブロックを手に持ってください。"
- stop
- tool of player is air:
- message "{@prefix}&c設定するブロックを手に持ってください。"
- stop
- arg-1 is not set:
- message "{@prefix}&c数値を指定する必要があります。"
- stop
- set {_num} to arg-1 parsed as number
- {_num} is not number:
- message "{@prefix}&c有効な数値ではありません。"
- stop
- set {mp.point::%type of tool of player%} to {_num}
- message "{@prefix}&e%type of tool of player%&eの取得スコアを%{mp.point::%type of tool of player%}%に設定しました。"
- command /setminemp [<text>]:
- permission: mine.sk
- trigger:
- tool of player is not block:
- message "{@prefix}&c設定するブロックを手に持ってください。"
- stop
- tool of player is air:
- message "{@prefix}&c設定するブロックを手に持ってください。"
- stop
- arg-1 is not set:
- message "{@prefix}&c数値を指定する必要があります。"
- stop
- set {_num} to arg-1 parsed as number
- {_num} is not number:
- message "{@prefix}&c有効な数値ではありません。"
- stop
- set {mp.score::%type of tool of player%} to {_num}
- message "{@prefix}&e%type of tool of player%&eの取得MPを%{mp.score::%type of tool of player%}%に設定しました。"
- command /setminelv [<text>]:
- permission: mine.sk
- trigger:
- tool of player is not block:
- message "{@prefix}&c設定するブロックを手に持ってください。"
- stop
- tool of player is air:
- message "{@prefix}&c設定するブロックを手に持ってください。"
- stop
- arg-1 is not set:
- message "{@prefix}&c数値を指定する必要があります。"
- stop
- set {_num} to arg-1 parsed as number
- {_num} is not number:
- message "{@prefix}&c有効な数値ではありません。"
- stop
- set {mp.lv::%type of tool of player%} to {_num}
- command /pickaxe:
- trigger:
- set {_item} to unbreakable iron pickaxe named "&f&l&o%player%の鶴橋" with lore "&c現在のレベル: &e1" , "&b効率: &e1" , "&b幸運: &e1"
- add "{HideFlags:61}" to nbt of {_item}
- give player {_item}
- function pickaxemenu(p:player):
- set {_lores::*} to lore of tool of {_p}
- set {_1::*} to {_lores::1} split at " "
- set {_lv} to (uncolored {_1::2}) parsed as number
- set {_1::*} to {_lores::2} split at " "
- set {_eff} to (uncolored {_1::2}) parsed as number
- set {_1::*} to {_lores::3} split at " "
- set {_lucky} to (uncolored {_1::2}) parsed as number
- set {_effmp} to 3 * (20 + {_eff} ^ 2) + 28 * {_eff}
- set {_luckymp} to 3 * (20 + {_lucky} ^ 2) + 28 * {_lucky}
- set {_lvmp} to 3 * (20 + {_lv} ^ 2) + 28 * {_lv}
- add 1 to {_lucky}
- add 1 to {_eff}
- add 1 to {_lv}
- open chest with 3 rows named "&8強化メニュー" to {_p}
- set slot 4 of {_p}'s current inventory to {_p}'s tool
- set slot 10 of {_p}'s current inventory to enchanted book named "&a効率強化" with lore "&c必要MP: &b%{_effmp}%" , "" , "&f&l次のレベル: &e&l%{_eff}%"
- set slot 12 of {_p}'s current inventory to glistering melon slice named "&a幸運" with lore "&c必要MP: &b%{_luckymp}%" , "" , "&f&l次のレベル: &e&l%{_lucky}%"
- set slot 14 of {_p}'s current inventory to anvil named "&aピッケルのLv強化" with lore "&c必要MP: &b%{_lvmp}%" , "" , "&f&l次のレベル: &e&l%{_lv}%"
- set slot 16 of {_p}'s current inventory to barrier named "&c未実装"
- on right click:
- tool of player is iron pickaxe
- player is sneaking
- pickaxemenu(player)
- on inventory click:
- name of player's current inventory is "&8強化メニュー"
- cancel event
- set {_item} to slot 4 of player's current inventory
- set {_c::*} to lore of {_item}
- set {_lores::*} to {_c::1} split at " "
- set {_picklv} to (uncolored {_lores::2}) parsed as number
- set {_lores::*} to lore of item
- name of item is "&aピッケルのLv強化":
- set {_c::*} to {_lores::1} split at " "
- set {_mp} to (uncolored {_c::2}) parsed as number
- set {_c::*} to {_lores::3} split at " "
- set {_nextlv} to (uncolored {_c::2}) parsed as number
- {status::%uuid of player%::mp} <= {_mp}:
- close player's inventory
- message "{@prefix}&c&lMPが足りません!"
- stop
- remove {_mp} from {status::%uuid of player%::mp}
- message "&a&lピッケルのLvを強化しました。"
- set {_item} to slot 4 of player's current inventory
- remove {_item} from player
- set line 1 of lore of {_item} to "&c現在のレベル: &e%{_nextlv}%"
- give player {_item}
- close player's inventory
- wait 1 tick
- pickaxemenu(player)
- name of item is "&a効率強化":
- set {_c::*} to {_lores::1} split at " "
- set {_mp} to (uncolored {_c::2}) parsed as number
- set {_c::*} to {_lores::3} split at " "
- set {_nextlv} to (uncolored {_c::2}) parsed as number
- {_picklv} < {_nextlv}:
- close player's inventory
- message "{@prefix}&e&l%{_nextlv}%&c&lLv以上のピッケルが必要です!"
- stop
- {status::%uuid of player%::mp} <= {_mp}:
- close player's inventory
- message "{@prefix}&c&lMPが足りません!"
- stop
- remove {_mp} from {status::%uuid of player%::mp}
- message "&a&lピッケルの効率を強化しました。"
- set {_item} to slot 4 of player's current inventory
- remove {_item} from player
- enchant {_item} with "efficiency %{_nextlv}%" parsed as enchantment type
- set line 2 of lore of {_item} to "&b効率: &e%{_nextlv}%"
- give player {_item}
- close player's inventory
- wait 1 tick
- pickaxemenu(player)
- name of item is "&a幸運":
- set {_c::*} to {_lores::1} split at " "
- set {_mp} to (uncolored {_c::2}) parsed as number
- set {_c::*} to {_lores::3} split at " "
- set {_nextlv} to (uncolored {_c::2}) parsed as number
- {_picklv} < {_nextlv}:
- close player's inventory
- message "{@prefix}&e&l%{_nextlv}%&c&lLv以上のピッケルが必要です!"
- stop
- {status::%uuid of player%::mp} <= {_mp}:
- close player's inventory
- message "{@prefix}&c&lMPが足りません!"
- stop
- remove {_mp} from {status::%uuid of player%::mp}
- message "&a&l幸運を強化しました。"
- set {_item} to slot 4 of player's current inventory
- remove {_item} from player
- set line 3 of lore of {_item} to "&b幸運: &e%{_nextlv}%"
- give player {_item}
- close player's inventory
- wait 1 tick
- pickaxemenu(player)
- every 5 ticks:
- loop all players:
- send action bar "&6&lLevel: &e%{status::%uuid of loop-player%::lv}% &6&lNextLvExp: &e%{status::%uuid of loop-player%::nextexp}% &6&lEXP: &e%{status::%uuid of loop-player%::exp}% &6&lMP: &e%{status::%uuid of loop-player%::mp}% &6&lScore: &e%{status::%uuid of loop-player%::score}%" to loop-player
- on join:
- {status::%uuid of player%::lv} is not set:
- set {status::%uuid of player%::lv} to 1
- {status::%uuid of player%::nextexp} is not set:
- set {status::%uuid of player%::nextexp} to 2 * (30 + {status::%uuid of player%::lv} ^ 2) + 28 * {status::%uuid of player%::lv}
- on mine:
- {mp.score::%type of event-block%} is set
- {mp.lv::%type of event-block%} is set
- {mp.point::%type of event-block%} is set
- {mp.lv::%type of event-block%} > {status::%uuid of player%::lv}:
- message "{@prefix}&c%{mp.lv::%type of event-block%}%Lv以上のみ採掘可能です!"
- stop
- add {mp.score::%type of event-block%} to {status::%uuid of player%::mp}
- add {ranks::%{status::%player%::rank}%::mp} to {status::%uuid of player%::mp}
- add 1 to {status::%uuid of player%::exp}
- add {mp.point::%type of event-block%} to {status::%uuid of player%::score}
- {status::%uuid of player%::exp} >= {status::%uuid of player%::nextexp}
- set {_lv} to {status::%uuid of player%::lv} + 1
- message "&e&l&m "
- message ""
- message ""
- message "&f &lおめでとうございます!あなたのレベルが上がりました!"
- message "&f &a&l%{status::%uuid of player%::lv}%&f >> &a&l%{_lv}%"
- message ""
- message ""
- message "&e&l&m "
- add 1 to {status::%uuid of player%::lv}
- set {_nextlv} to 2 * (30 + {status::%uuid of player%::lv} ^ 2) + 28 * {status::%uuid of player%::lv}
- set {status::%uuid of player%::nextexp} to {_nextlv}
- set {status::%uuid of player%::exp} to 0
- command /createrank [<text>]:
- permission: mine.sk
- trigger:
- arg-1 is not set:
- message "{@prefix}&c作るランク入力する必要があります。"
- stop
- {ranks::%arg-1%} is set:
- message "{@prefix}&c既に存在するランクです。"
- stop
- message "{@prefix}&e%arg-1%&bランクを作成しました。"
- message "{@prefix}&e/editrank %arg-1% でランクの編集ができます。"
- set {ranks::%arg-1%} to true
- command /editrank [<text>] [<text>] [<text>]:
- permission: mine.sk
- trigger:
- arg-1 is not set:
- message "{@prefix}&e/editrank <ランク> prefix <Prefix> &7- Prefixを設定します。"
- message "{@prefix}&e/editrank <ランク> fly <true or false> &7- flyが可能かどうかを設定します。"
- message "{@prefix}&e/editrank <ランク> mp <number> &7- 掘った時に加算されるポイントを設定します。"
- stop
- {ranks::%arg-1%} is not true:
- message "{@prefix}&c存在しないランクです。作成してください。"
- stop
- arg-2 is not "prefix" or "fly" or "mp":
- message "{@prefix}&e/editrank %arg-1% prefix <Prefix> &7- Prefixを設定します。"
- message "{@prefix}&e/editrank %arg-1% fly <true or false> &7- flyが可能かどうかを設定します。"
- message "{@prefix}&e/editrank %arg-1% mp <number> &7- 掘った時に加算されるポイントを設定します。"
- stop
- arg-2 is "prefix":
- arg-3 is not set:
- message "{@prefix}&cPrefixを入力する必要があります。"
- stop
- set {ranks::%arg-1%::prefix} to arg-3
- message "{@prefix}&e%arg-1%&bのPrefixを%arg-3%&bに設定しました。"
- arg-2 is "fly":
- set {_boolean} to arg-3 parsed as boolean
- {_boolean} is not true or false:
- message "{@prefix}&ctrueあるいはfalseを入力する必要があります。"
- stop
- set {ranks::%arg-1%::fly} to {_boolean}
- message "{@prefix}&e%arg-1%&bのflyを&e%arg-3%&bに設定しました。"
- arg-2 is "mp":
- set {_number} to arg-3 parsed as number
- {_number} is not number:
- message "{@prefix}&c数値を入力する必要があります。"
- stop
- set {ranks::%arg-1%::mp} to {_number}
- message "{@prefix}&e%arg-1%&bのMPを&e%arg-3%&bに設定しました。"
- command /ranklist:
- trigger:
- loop {ranks::*}:
- set {_c} to ""
- loop {ranks::%loop-index%::*}:
- set {_c} to "%{_c}%&e%loop-index-2%: &b%loop-value-2% "
- message "&6&l%loop-index% &8[%{_c}%&8]"
- command /setrank [<text>] [<text>]:
- permission: mine.sk
- trigger:
- arg-1 is not set:
- message "{@prefix}&cプレイヤーを指定してください。"
- stop
- set {_player} to arg-1 parsed as number
- {_player} is not online:
- message "{@prefix}&cプレイヤーが参加している必要があります。"
- stop
- arg-2 is not set:
- message "{@prefix}&cランクを指定する必要があります。"
- {ranks::%arg-2%} is not set:
- message "{@prefix}&c存在しないランクです。以下はランク一覧です。%nl%&6%{ranks::*}%"
- stop
- set {status::%player%::rank} to arg-2
- message "{@prefix}&bプレイヤーのランクを&e%arg-1%&bに変更しました。"
- message "{@prefix}&bあなたのランクを&e%arg-1%&bに変更しました。" to {_player}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement