Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick on sign:
- wait 1 tick
- #======================================スポーンポイント================================================================#
- if line 1 of clicked block contains "Spawn":
- if line 4 of clicked block contains "1":
- execute console command "/spawnpoint %player% -253 60 -11"
- else if line 4 of clicked block contains "Lien":
- execute console command "/spawnpoint %player% 0 74 0"
- else if line 4 of clicked block contains "Fault":
- execute console command "/spawnpoint %player% -521.0 72 147.5"
- message "&b&lSystem &7&l≫ &a&lスポーンポイントを&6&l《%line 3 of clicked block%&6&l》&a&lにセットしました"
- #==========================================ユルド両替==================================================================#
- if line 1 of clicked block contains "Yuld":
- if name of held item contains "ユルド":
- set {_item} to held item
- set {_yurd} to name of player's tool
- set {_name} to player's tool
- replace "&6&l&m=====&6&l[[| &e&l" with "" in {_yurd}
- replace " ユルド &6&l|]]&m=====" with "" in {_yurd}
- set {_yurd} to {_yurd} parsed as number
- else:
- message "&b&lSystem &7&l≫ &e&lユルド&a&lを持った状態で&6&l右クリック&a&lしてください"
- stop
- if player is sneaking:
- if {_yurd} is 1:
- message "&b&lSystem &7&l≫ &e&l1ユルド&a&lは両替できません"
- stop
- remove 1 of {_item} from player
- set {_yurd} to {_yurd} / 10
- give player 10 emerald named "&6&l&m=====&6&l[[| &e&l%{_yurd}% ユルド &6&l|]]&m=====" with lore "&a&l人間が使っている通貨||&a&l基本どこでも使うことができる||&6&l&m--==__&6&l[| &3&lItem Stats &6&l|]&m__==--||&9&lカテゴリ&7: &a&l通貨"
- else if player have 10 of {_name}:
- remove 10 of {_item} from player
- set {_yurd} to {_yurd} * 10
- give player emerald named "&6&l&m=====&6&l[[| &e&l%{_yurd}% ユルド &6&l|]]&m=====" with lore "&a&l人間が使っている通貨||&a&l基本どこでも使うことができる||&6&l&m--==__&6&l[| &3&lItem Stats &6&l|]&m__==--||&9&lカテゴリ&7: &a&l通貨"
- else:
- message "&b&lSystem &7&l≫ &e&lユルド&a&lが足りません"
- #========================================回復ポイント================================================================#
- if line 1 of clicked block contains "Heal":
- if health of player is max health of player:
- message "&b&lSystem &7&l≫ &c&lHealth&a&lが減っていません"
- stop
- if name of held item contains "10 ユルド":
- remove 1 of held item from player
- heal the player
- command "class mana %player% 99999"
- message "&b&lSystem &7&l≫ &c&lHealth&a&lと&b&lMana&a&lを&e&l全回復&a&lしました"
- else:
- message "&b&lSystem &7&l≫ &e&l10 ユルド&a&lを持った状態で&6&l右クリック&a&lしてください"
- #==========================================アイテム買取口============================================================#
- if line 1 of clicked block contains "sell":
- set {_line} to 1
- if held item is none:
- message "&b&lSystem &7&l≫ &a&l売りたい&e&lアイテム&a&lを持って&6&l右クリック&a&lしてください"
- while {_line} is less than or equal to 30:
- if line {_line} of lore of held item contains "売却値段":
- set {_money} to line {_line} of lore of held item
- stop loop
- add 1 to {_line}
- if {_money} contains "売却値段":
- replace "&6&l売却値段&7: &a&l" with "" in {_money}
- replace " ユルド" with "" in {_money}
- set {_money} to {_money} parsed as number
- set {_item} to held item
- if player is sneaking:
- set {_v} to 64
- loop 64 times:
- if player have {_v} of held item:
- remove {_v} of held item from player
- set {_money} to {_money} * {_v}
- stop loop
- remove 1 from {_v}
- if player is not sneaking:
- remove 1 of {_item} from player
- loop {_money} times:
- add 1 to {_1}
- if {_1} is 10:
- clear {_1}
- add 1 to {_10}
- if {_10} is 10:
- clear {_10}
- add 1 to {_100}
- if {_100} is 10:
- clear {_100}
- add 1 to {_1000}
- set {_n} to 1
- loop 4 times:
- loop {_%{_n}%} times:
- give player 1 emerald named "&6&l&m=====&6&l[[| &e&l%{_n}% ユルド &6&l|]]&m=====" with lore "&a&l人間が使っている通貨||&a&l基本どこでも使うことができる||&6&l&m--==__&6&l[| &3&lItem Stats &6&l|]&m__==--||&9&lカテゴリ&7: &a&l通貨"
- set {_n} to {_n} * 10
Advertisement
Add Comment
Please, Sign In to add comment