Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /class:
- aliases: /.c
- trigger:
- open chest with 6 rows named "&2&lClass &3&lList" to player
- wait a tick
- set {_slot} to 10
- loop {mnmn::sys.cl.list::*}:
- set {_icon} to {mnmn::sys.cl::%loop-value%::opt::icon} parsed as item
- set {_name} to {mnmn::sys.cl::%loop-value%::opt::name}
- set {_lore::*} to {mnmn::sys.cl::%loop-value%::opt::lore} split by "||"
- set slot {_slot} of player's current inventory to {_icon} named {_name} with lore colored {_lore::*}
- add 1 to {_slot}
- if mod({_slot}-1,9) > 6:
- add 2 to {_slot}
- command /classlist <text> <text>:
- permission: skript.classlist
- aliases: /.cl
- trigger:
- if arg 1 is "add":
- add arg 2 to {mnmn::sys.cl.list::*}
- if arg 1 is "remove":
- remove all arg 2 from {mnmn::sys.cl.list::*}
- command /setclass <text> <text>:
- permission: skript.setclass
- aliases: /.sc
- trigger:
- set {_p} to arg 1
- if arg 1 is "@":
- set {_p} to player
- set {mnmn::player::%{_p}%::class::classname} to arg 2
- set {mnmn::player::%{_p}%::skillboard::boardname} to {mnmn::sys.cl::%arg 2%::opt::board}
- set {_coord::*} to {mnmn::sys.cl::%arg 2%::start} split by ","
- set {mnmn::player::%{_p}%::skillboard::coord.x} to {_coord::1} parsed as integer
- set {mnmn::player::%{_p}%::skillboard::coord.y} to {_coord::2} parsed as integer
- remove 1 from {mnmn::player::%{_p}%::skillboard::coord.x}
- remove 1 from {mnmn::player::%{_p}%::skillboard::coord.y}
- command /skillboardsetting <text> <text> <text> <text>:
- permission: skript.skillboardsetting
- aliases: /.sbs
- trigger:
- set {mnmn::sys.sb::%arg 1%::layout::%arg 2%,%arg 3%} to arg 4
- if arg 4 is "1":
- set {mnmn::sys.sb::%arg 1%::start} to "%arg 2%,%arg 3%"
- command /skillboardremove <text> <text> <text>:
- permission: skript.skillboardremove
- aliases: /.sbrm
- trigger:
- clear {mnmn::sys.sb::%arg 1%::layout::%arg 2%,%arg 3%}
- command /skillboardreset <text>:
- permission: skript.skillboardreset
- aliases: /.sbr
- trigger:
- set {_p} to arg 1
- if arg 1 is "@":
- set {_p} to player
- set {_coord::*} to {mnmn::sys.cl::%{mnmn::player::%{_p}%::skillboard::boardname}%::start} split by ","
- set {mnmn::player::%{_p}%::skillboard::coord.x} to {_coord::1} parsed as integer
- set {mnmn::player::%{_p}%::skillboard::coord.y} to {_coord::2} parsed as integer
- remove 1 from {mnmn::player::%{_p}%::skillboard::coord.x}
- remove 1 from {mnmn::player::%{_p}%::skillboard::coord.y}
- clear {mnmn::player::%{_p}%::skillboard::status::*}
- clear {mnmn::player::%{_p}%::attributes::*}
- command /classsetting <text> <text> <text>:
- permission: skript.classsetting
- aliases: /.cs
- trigger:
- set {mnmn::sys.cl::%arg 1%::opt::%arg 2%} to arg 3
- command /setstatus <text> <text> <integer>:
- permission: skript.setstatus
- aliases: /.ss
- trigger:
- set {_p} to arg 1
- if arg 1 is "@":
- set {_p} to player
- set {mnmn::player::%arg 1%::status::%arg 2%} to arg 3
- command /skillboard:
- aliases: /.sb
- trigger:
- if {mnmn::player::%player%::skillboard::boardname} is not set:
- message "&cボードが未設定です"
- stop
- open chest with 6 rows named "&4&lSkill &1&lBoard &0&l- %{mnmn::player::%player%::skillboard::boardname}%&0(%{mnmn::player::%player%::skillboard::coord.x}%,%{mnmn::player::%player%::skillboard::coord.y}%)" to player
- wait a tick
- set {_name} to {mnmn::player::%player%::skillboard::boardname}
- set {_y} to 0
- loop 6 times:
- set {_x} to 0
- loop 9 times:
- set {_slot} to (5-{_y})*9+{_x}
- set {_fieldx} to {_x}+{mnmn::player::%player%::skillboard::coord.x}
- set {_fieldy} to {_y}+{mnmn::player::%player%::skillboard::coord.y}
- if {mnmn::sys.sb::%{_name}%::layout::%{_fieldx}%,%{_fieldy}%} is "1":
- set {_icon} to sugar
- set {_lore::*} to "&e&lボード開始地点" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else if {mnmn::sys.sb::%{_name}%::layout::%{_fieldx}%,%{_fieldy}%} is "2":
- if {mnmn::player::%player%::skillboard::status::%{_fieldx}%,%{_fieldy}%} > 0:
- if {mnmn::player::%player%::skillboard::status::%{_fieldx}%,%{_fieldy}%} is 1:
- set {_icon} to red dye
- set {_lore::*} to "&7カケラ設定済: &c&l赤" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else if {mnmn::player::%player%::skillboard::status::%{_fieldx}%,%{_fieldy}%} is 2:
- set {_icon} to orange dye
- set {_lore::*} to "&7カケラ設定済: &6&l橙" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else if {mnmn::player::%player%::skillboard::status::%{_fieldx}%,%{_fieldy}%} is 3:
- set {_icon} to yellow dye
- set {_lore::*} to "&7カケラ設定済: &e&l黄" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else if {mnmn::player::%player%::skillboard::status::%{_fieldx}%,%{_fieldy}%} is 4:
- set {_icon} to lime dye
- set {_lore::*} to "&7カケラ設定済: &a&l緑" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else if {mnmn::player::%player%::skillboard::status::%{_fieldx}%,%{_fieldy}%} is 5:
- set {_icon} to light blue dye
- set {_lore::*} to "&7カケラ設定済: &b&l青" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else if {mnmn::player::%player%::skillboard::status::%{_fieldx}%,%{_fieldy}%} is 6:
- set {_icon} to cyan dye
- set {_lore::*} to "&7カケラ設定済: &9&l藍" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else if {mnmn::player::%player%::skillboard::status::%{_fieldx}%,%{_fieldy}%} is 7:
- set {_icon} to purple dye
- set {_lore::*} to "&7カケラ設定済: &d&l紫" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else:
- set {_fieldx_} to {_fieldx}-1
- set {_fieldy_} to {_fieldy}-1
- if {_fieldy} is 0:
- if {mnmn::player::%player%::skillboard::status::%{_fieldx_}%,%{_fieldy}%} > 0:
- set {_icon} to magma cream
- set {_lore::*} to "&7&lカケラ設定可" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&e&lカケラ &aを設定する"
- else if {mnmn::sys.sb::%{_name}%::layout::%{_fieldx_}%,%{_fieldy}%} is "1":
- set {_icon} to magma cream
- set {_lore::*} to "&7&lカケラ設定可" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&e&lカケラ &aを設定する"
- else:
- set {_icon} to snowball
- set {_lore::*} to "&7カケラ未設定" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else:
- if {mnmn::player::%player%::skillboard::status::%{_fieldx}%,%{_fieldy_}%} > 0:
- set {_icon} to magma cream
- set {_lore::*} to "&7&lカケラ設定可" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&e&lカケラ &aを設定する"
- else if {mnmn::sys.sb::%{_name}%::layout::%{_fieldx}%,%{_fieldy_}%} is "1":
- set {_icon} to magma cream
- set {_lore::*} to "&7&lカケラ設定可" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&e&lカケラ &aを設定する"
- else:
- set {_icon} to snowball
- set {_lore::*} to "&7カケラ未設定" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else if {mnmn::sys.sb::%{_name}%::layout::%{_fieldx}%,%{_fieldy}%} is "3":
- set {_icon} to glowstone dust
- set {_lore::*} to "&e&lボード終了地点" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- else:
- set {_icon} to light gray stained glass pane
- set {_lore::*} to "&8カケラ設定不可" and "&f座標: (%{_fieldx}%,%{_fieldy}%)"
- set {_iconname} to "&7---"
- if {_x} is 0:
- set slot {_slot} of player's current inventory to {_icon} named "&e&l左 &aにスクロールする" with lore {_lore::*}
- if {_y} is 5:
- set slot {_slot} of player's current inventory to {_icon} named "&e横 &aの移動量を &e上げる" with lore {_lore::*}
- if {_y} is 0:
- set slot {_slot} of player's current inventory to {_icon} named "&e横 &aの移動量を &e下げる" with lore {_lore::*}
- else if {_x} is 8:
- set slot {_slot} of player's current inventory to {_icon} named "&e&l右 &aにスクロールする" with lore {_lore::*}
- if {_y} is 5:
- set slot {_slot} of player's current inventory to {_icon} named "&e縦 &aの移動量を &e上げる" with lore {_lore::*}
- if {_y} is 0:
- set slot {_slot} of player's current inventory to {_icon} named "&e縦 &aの移動量を &e下げる" with lore {_lore::*}
- else if {_y} is 0:
- set slot {_slot} of player's current inventory to {_icon} named "&e&l下 &aにスクロールする" with lore {_lore::*}
- else if {_y} is 5:
- set slot {_slot} of player's current inventory to {_icon} named "&e&l上 &aにスクロールする" with lore {_lore::*}
- else:
- set slot {_slot} of player's current inventory to {_icon} named "%{_iconname}%" with lore {_lore::*}
- add 1 to {_x}
- add 1 to {_y}
- on inventory click:
- if name of player's current inventory contains "&4&lSkill &1&lBoard":
- cancel event
- if {mnmn::player::%player%::skillboard::move.x} is not set:
- set {mnmn::player::%player%::skillboard::move.x} to 1
- if {mnmn::player::%player%::skillboard::move.y} is not set:
- set {mnmn::player::%player%::skillboard::move.y} to 1
- if name of clicked item contains "左 ":
- remove {mnmn::player::%player%::skillboard::move.x} from {mnmn::player::%player%::skillboard::coord.x}
- execute player command "/sb"
- if name of clicked item contains "右 ":
- add {mnmn::player::%player%::skillboard::move.x} to {mnmn::player::%player%::skillboard::coord.x}
- execute player command "/sb"
- if name of clicked item contains "下 ":
- remove {mnmn::player::%player%::skillboard::move.y} from {mnmn::player::%player%::skillboard::coord.y}
- execute player command "/sb"
- if name of clicked item contains "上 ":
- add {mnmn::player::%player%::skillboard::move.y} to {mnmn::player::%player%::skillboard::coord.y}
- execute player command "/sb"
- if name of clicked item contains "縦" and "上げる":
- if {mnmn::player::%player%::skillboard::move.y} >= 10:
- message "&cこれ以上上がりません"
- else:
- add 1 to {mnmn::player::%player%::skillboard::move.y}
- message "&a%{mnmn::player::%player%::skillboard::move.y}%に設定しました"
- execute player command "/sb"
- if name of clicked item contains "縦" and "下げる":
- if {mnmn::player::%player%::skillboard::move.y} <= 1:
- message "&cこれ以上下がりません"
- else:
- add -1 to {mnmn::player::%player%::skillboard::move.y}
- message "&a%{mnmn::player::%player%::skillboard::move.y}%に設定しました"
- execute player command "/sb"
- if name of clicked item contains "横" and "上げる":
- if {mnmn::player::%player%::skillboard::move.x} >= 10:
- message "&cこれ以上上がりません"
- else:
- add 1 to {mnmn::player::%player%::skillboard::move.x}
- message "&a%{mnmn::player::%player%::skillboard::move.x}%に設定しました"
- execute player command "/sb"
- if name of clicked item contains "横" and "下げる":
- if {mnmn::player::%player%::skillboard::move.x} <= 1:
- message "&cこれ以上下がりません"
- else:
- add -1 to {mnmn::player::%player%::skillboard::move.x}
- message "&a%{mnmn::player::%player%::skillboard::move.x}%に設定しました"
- execute player command "/sb"
- if name of clicked item contains "設定":
- if {mnmn::player::%player%::status::ap} is not set:
- set {mnmn::player::%player%::status::ap} to 0
- if {mnmn::player::%player%::status::ap} <= 0:
- message "&cアトリビュートポイントが足りません"
- execute player command "/sb"
- stop
- set {mnmn::temp::skillboard.clickedslot::%player%} to clicked slot
- open chest with 1 rows named "&4Select Attributes-Piece" to player
- wait a tick
- set slot 0 of player's current inventory to barrier named "&7キャンセル" with lore "&3所持AP: &l%{mnmn::player::%player%::status::ap}%"
- set slot 2 of player's current inventory to red dye named "&c&l赤 &cのカケラ&fを設定する" with lore "&3所持AP: &l%{mnmn::player::%player%::status::ap}%" and "&c割り振り済み: &l%{mnmn::player::%player%::attributes::1}%"
- set slot 3 of player's current inventory to orange dye named "&6&l橙 &6のカケラ&fを設定する" with lore "&3所持AP: &l%{mnmn::player::%player%::status::ap}%" and "&6割り振り済み: &l%{mnmn::player::%player%::attributes::2}%"
- set slot 4 of player's current inventory to yellow dye named "&e&l黄 &eのカケラ&fを設定する" with lore "&3所持AP: &l%{mnmn::player::%player%::status::ap}%" and "&e割り振り済み: &l%{mnmn::player::%player%::attributes::3}%"
- set slot 5 of player's current inventory to lime dye named "&a&l緑 &aのカケラ&fを設定する" with lore "&3所持AP: &l%{mnmn::player::%player%::status::ap}%" and "&a割り振り済み: &l%{mnmn::player::%player%::attributes::4}%"
- set slot 6 of player's current inventory to light blue dye named "&b&l青 &bのカケラ&fを設定する" with lore "&3所持AP: &l%{mnmn::player::%player%::status::ap}%" and "&b割り振り済み: &l%{mnmn::player::%player%::attributes::5}%"
- set slot 7 of player's current inventory to cyan dye named "&9&l藍 &9のカケラ&fを設定する" with lore "&3所持AP: &l%{mnmn::player::%player%::status::ap}%" and "&9割り振り済み: &l%{mnmn::player::%player%::attributes::6}%"
- set slot 8 of player's current inventory to purple dye named "&d&l紫 &dのカケラ&fを設定する" with lore "&3所持AP: &l%{mnmn::player::%player%::status::ap}%" and "&d割り振り済み: &l%{mnmn::player::%player%::attributes::7}%"
- else if name of player's current inventory contains "&4Select Attributes-Piece":
- cancel event
- set {_x} to mod({mnmn::temp::skillboard.clickedslot::%player%},9)
- set {_y} to 5-floor({mnmn::temp::skillboard.clickedslot::%player%}/9)
- add {mnmn::player::%player%::skillboard::coord.x} to {_x}
- add {mnmn::player::%player%::skillboard::coord.y} to {_y}
- if name of clicked item contains "キャンセル":
- execute player command "/sb"
- stop
- add -1 to {mnmn::player::%player%::status::ap}
- if name of clicked item contains "赤":
- set {mnmn::player::%player%::skillboard::status::%{_x}%,%{_y}%} to 1
- add 1 to {mnmn::player::%player%::attributes::1}
- execute player command "/sb"
- if name of clicked item contains "橙":
- set {mnmn::player::%player%::skillboard::status::%{_x}%,%{_y}%} to 2
- add 1 to {mnmn::player::%player%::attributes::2}
- execute player command "/sb"
- if name of clicked item contains "黄":
- set {mnmn::player::%player%::skillboard::status::%{_x}%,%{_y}%} to 3
- add 1 to {mnmn::player::%player%::attributes::3}
- execute player command "/sb"
- if name of clicked item contains "緑":
- set {mnmn::player::%player%::skillboard::status::%{_x}%,%{_y}%} to 4
- add 1 to {mnmn::player::%player%::attributes::4}
- execute player command "/sb"
- if name of clicked item contains "青":
- set {mnmn::player::%player%::skillboard::status::%{_x}%,%{_y}%} to 5
- add 1 to {mnmn::player::%player%::attributes::5}
- execute player command "/sb"
- if name of clicked item contains "藍":
- set {mnmn::player::%player%::skillboard::status::%{_x}%,%{_y}%} to 6
- add 1 to {mnmn::player::%player%::attributes::6}
- execute player command "/sb"
- if name of clicked item contains "紫":
- set {mnmn::player::%player%::skillboard::status::%{_x}%,%{_y}%} to 7
- add 1 to {mnmn::player::%player%::attributes::7}
- execute player command "/sb"
- on death:
- attacker is a player
- wait 3 ticks
- loop 3 times:
- chance of 25%:
- drop a bonemeal named "&f&l白のカケラ" with lore "&7色のついていないカケラ" and "&7他の色に変換することができそうだ" at location of victim
- if victim is a player:
- chance of 4%:
- drop a red dye named "&c&l赤のカケラ" with lore "&a赤色のカケラ" and "&a炎の象徴の色だ" at location of victim
- chance of 4%:
- drop a orange dye named "&6&l橙のカケラ" with lore "&b橙色のカケラ" and "&b地の象徴の色だ" at location of victim
- chance of 4%:
- drop a yellow dye named "&e&l黄のカケラ" with lore "&9黄色のカケラ" and "&9光の象徴の色だ" at location of victim
- chance of 4%:
- drop a lime dye named "&a&l緑のカケラ" with lore "&d緑色のカケラ" and "&d木の象徴の色だ" at location of victim
- chance of 4%:
- drop a light blue dye named "&b&l青のカケラ" with lore "&c青色のカケラ" and "&c風の象徴の色だ" at location of victim
- chance of 4%:
- drop a cyan dye named "&9&l藍のカケラ" with lore "&6藍色のカケラ" and "&6水の象徴の色だ" at location of victim
- chance of 4%:
- drop a purple dye named "&d&l紫のカケラ" with lore "&e紫色のカケラ" and "&e闇の象徴の色だ" at location of victim
- on place of hopper:
- set {_loc} to location of event-block
- if block 1 below {_loc} is coal block:
- give a hopper named "&f&l抽出機 &7&l&o[C]" with lore "&e残り耐久値&7:&f 20" , "&b貯蔵FP&7:&f 0" and "&6成功確率(%%)&7:&f 45" to player
- set block 1 below {_loc} to air
- else if block 1 below {_loc} is iron block:
- give a hopper named "&f&l抽出機 &f&l&o[I]" with lore "&e残り耐久値&7:&f 35" , "&b貯蔵FP&7:&f 0" and "&6成功確率(%%)&7:&f 60" to player
- set block 1 below {_loc} to air
- else if block 1 below {_loc} is gold block:
- give a hopper named "&f&l抽出機 &e&l&o[G]" with lore "&e残り耐久値&7:&f 10" , "&b貯蔵FP&7:&f 0" and "&6成功確率(%%)&7:&f 95" to player
- set block 1 below {_loc} to air
- else if block 1 below {_loc} is diamond block:
- give a hopper named "&f&l抽出機 &b&l&o[D]" with lore "&e残り耐久値&7:&f 50" , "&b貯蔵FP&7:&f 0" and "&6成功確率(%%)&7:&f 75" to player
- set block 1 below {_loc} to air
- else if block 1 below {_loc} is emerald block:
- give a hopper named "&f&l抽出機 &a&l&o[E]" with lore "&e残り耐久値&7:&f 20" , "&b貯蔵FP&7:&f 0" and "&6成功確率(%%)&7:&f 85" to player
- set block 1 below {_loc} to air
- else if block 1 below {_loc} is lapis block:
- give a hopper named "&f&l抽出機 &9&l&o[L]" with lore "&e残り耐久値&7:&f 20" , "&b貯蔵FP&7:&f 0" and "&6成功確率(%%)&7:&f 30" to player
- set block 1 below {_loc} to air
- else if block 1 below {_loc} is redstone block:
- give a hopper named "&f&l抽出機 &c&l&o[R]" with lore "&e残り耐久値&7:&f 1" , "&b貯蔵FP&7:&f 0" and "&6成功確率(%%)&7:&f 90" to player
- set block 1 below {_loc} to air
- else:
- stop
- set block at {_loc} to air
- command /canexcfp <text> [<integer>]:
- permission: mnmn.canexcfp
- aliases: /.cef
- trigger:
- if arg 1 is "add":
- arg 2 is set
- add player's held item to {canexcfp::*}
- set {_id} to "%player's held item%"
- set {canexcfp.rate::%{_id}%} to arg 2
- if arg 1 is "remove":
- remove all player's held item from {canexcfp::*}
- set {_id} to "%player's held item%"
- clear {canexcfp.rate::%{_id}%}
- if arg 1 is "check":
- message "Id: %player's held item% / Rate: %{canexcfp.rate::%player's held item%}%"
- if arg 1 is "list":
- loop {canexcfp.rate::*}:
- message "%loop-index%: %loop-value%"
- on rightclick with hopper:
- name of player's held item contains "抽出機"
- set {close.hopper::%player%} to false
- open virtual hopper inventory named "&0&l抽出機" to player
- while {close.hopper::%player%} is false:
- set {_lore1::*} to line 1 of lore of player's held item parsed as "%text% %number%"
- set {_lore2::*} to line 2 of lore of player's held item parsed as "%text% %number%"
- set {_lore3::*} to line 3 of lore of player's held item parsed as "%text% %number%"
- format gui slot 0 of player with barrier named "&c&l閉じる" with lore "&f抽出機のステータス" and "&bFP: %{_lore2::2}% &8- &e残り %{_lore1::2}%回 &6(%{_lore3::2}%%%)" to close
- command "execute %player% ~ ~ ~ playsound block.anvil.place master @p ~ ~ ~ 0.4 2.0"
- set {_exit} to false
- while {_exit} is false:
- wait 3 tick
- set {_cnt} to -1
- loop all items in player's current inventory:
- wait 3 tick
- add 1 to {_cnt}
- clear {_id}
- clear {_amount}
- {canexcfp::*} contains type of loop-item
- set {_id} to "%type of loop-item%"
- set {_fp} to {_lore2::2}+{canexcfp.rate::%{_id}%}
- set line 2 of lore of player's held item to "&b貯蔵FP&7:&f %{_fp}%"
- set {_exit} to true
- set {_amount} to item amount of loop-item
- remove 1 from {_amount}
- if {_amount} > 0:
- clear slot {_cnt} of player's current inventory
- exit loop-3
- set {_item} to {_id} parsed as item
- set slot {_cnt} of player's current inventory to {_amount} of {_item}
- exit loop-3
- wait 3 tick
- on inventory close:
- set {close.hopper::%player%} to true
Advertisement
Add Comment
Please, Sign In to add comment