Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {%player%::multigold} = 1
- every 2 ticks:
- loop all players:
- set name of sidebar of loop-player to ""
- set line 15 of loop-player's scoreboard to "&7&m------------------------------"
- set line 14 of loop-player's scoreboard to "&6ゴールド&f: &e%nn({%loop-player%::gold}, loop-player)% &6gold"
- set line 13 of loop-player's scoreboard to ""
- set line 12 of loop-player's scoreboard to ""
- set line 11 of loop-player's scoreboard to ""
- set line 10 of loop-player's scoreboard to ""
- set line 9 of loop-player's scoreboard to "&7&l ┗&7倍率&f: &ex%{%loop-player%::multigold}%"
- set line 1 of loop-player's scoreboard to "&7&m------------------------------"
- command /base:
- trigger:
- set {%player%::multigold} to 1
- on mine:
- if event-block is cobblestone:
- cancel event
- give cobblestone named "&7[&6*&7] &r&f丸石" with nbt "{sell:1}" to player
- on rightclick on sign:
- if line 1 is "[Mining]":
- if line 2 of clicked block is "sell":
- execute player command "/sell"
- command /sell:
- trigger:
- loop 36 times:
- set {_item} to slot ((loop-number)-1) of player's inventory
- set {_n} to tag "sell" of nbt of {_item}
- if {_n} > 0:
- set {_item2} to {_item}
- remove {_item2} from player's inventory
- add (item amount of {_item2})*{_n}*{%player%::multigold} to {%player%::gold}
- add (item amount of {_item2})*{_n}*{%player%::multigold} to {_total}
- set {_n} to 0
- message "&7[&6・&7] &6+ &e%nn({_total}, player)% &6gold" to player if {_total} is set
Advertisement
Add Comment
Please, Sign In to add comment