SHARE
TWEET

Untitled

pz_neko Aug 26th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on join:
  2.     if player has played before:
  3.         set join message to "&8[&7+&8] &7%Player%"
  4.         add 0 to {exp.%Player%}
  5.         add 0 to {nextlv.%Player%}
  6.         add 0 to {money::%Player%}
  7.         if {Lv::%Player%} is not set:
  8.             add 50 to {nextlv.%Player%}
  9.             add 1 to {Lv::%Player%}    
  10.     else:
  11.         set join message to "&8[&b+&8] &7%Player%"
  12.         add 50 to {nextlv.%Player%}
  13.         add 1 to {Lv::%Player%}
  14.         add 0 to {exp.%Player%}
  15.         add 0 to {money::%Player%}
  16.  
  17. on quit:
  18.     set quit message to "&8[&7-&8] &7%Player%"
  19.  
  20. on Break:
  21.     cancel event
  22.     add 1 to {exp.%Player%}
  23.     Lvup(player)
  24.     send actionbar "&e&l%Player% &b&l[&f&l%{Lv::%Player%}%Lv&b&l][&f&l%{exp.%Player%}%&b&l/&f&l%{nextlv.%Player%}%&b&l]" to Player
  25.     if event-block is stone:
  26.         add 1 to {stone.%Player%}
  27.     if event-block is coal ore:
  28.         add 1 to {coal.%Player%}
  29.     if event-block is iron ore:
  30.         add 1 to {iron.%Player%}
  31.     if event-block is gold ore:
  32.         add 1 to {gold.%Player%}
  33.     if event-block is lapis ore:
  34.         add 1 to {lapis.%Player%}
  35.     if event-block is emerald ore:
  36.         add 1 to {emerald.%Player%}
  37.     if event-block is diamond ore:
  38.         add 1 to {diamond.%Player%}
  39.     if event-block is end stone:
  40.         add 1 to {endstone.%Player%}
  41.  
  42. command /Lvuplog:
  43.     trigger:
  44.         if {lvuplog.%Player%} is not set:
  45.             set {lvuplog.%Player%} to "off"
  46.             send "&8[&7System&8] &7LvUp Messageを &e&lOFF &7にしました"
  47.             stop
  48.         else:
  49.             delete {lvuplog.%Player%}
  50.             send "&8[&7System&8] &7LvUp Messageを &e&lON &7にしました"
  51.             stop
  52.  
  53. on rightclick:
  54.     player's tool is enchanted with fortune 0
  55.     open chest with 2 rows named "&a&lMENU" to player
  56.     wait 3 ticks
  57.     set slot 2 of Player's current inventory to feather named "&6&l>> &f&lLobby"
  58.     set slot 4 of Player's current inventory to diamond pickaxe named "&6&l>> &f&l採掘場"
  59.     set slot 6 of Player's current inventory to gold ingot named "&6&l>> &f&lShop"
  60.     set slot 8 of Player's current inventory to gold ingot named "&6&lYour Status" with lore "&fLv&b: &f%{Lv::%Player%}%" and "&fMoney&b: &f%{money::%Player%}%"
  61.     set slot 12 of Player's current inventory to chest named "&6&l>> &f&l鉱石保管庫"
  62.     set slot 14 of Player's current inventory to ender chest named "&6&l>> &f&lEnder Chest"
  63.     set slot 17 of Player's current inventory to barrier named "&6&l>> &f&lClose"
  64.  
  65. on inventory click:
  66.     if name of Player's current inventory contains "&a&lMENU":
  67.         if clicked slot is 2:
  68.             cancel event
  69.             teleport Player to {TP.spawn}
  70.         if clicked slot is 4:
  71.             cancel event
  72.             teleport Player to {TP.mine}
  73.         if clicked slot is 6:
  74.             cancel event
  75.             teleport Player to {TP.shop}
  76.         if clicked slot is 8:
  77.             cancel event
  78.         if clicked slot is 12:
  79.             cancel event
  80.             send "Coming soon"
  81.         if clicked slot is 14:
  82.             cancel event
  83.             open player's ender chest to player
  84.         if clicked slot is 17:
  85.             cancel event
  86.             close Player's inventory
  87.  
  88. command /settp <text>:
  89.     permission: admin.sk
  90.     trigger:
  91.         set {TP.%arg%} to location of Player
  92.         send "&aSetting (&e%arg%&a)"
  93.  
  94. function Lvup(p: player):
  95.     while {exp.%{_p}%}+1 is more than {nextlv.%{_p}%}:
  96.         remove {nextlv.%{_p}%} from {exp.%{_p}%}
  97.         add 1 to {Lv::%{_p}%}
  98.         add paper named "&e&lLevelUp Ticket" to {_p}
  99.         set {nextlv.%{_p}%} to round({nextlv.%{_p}%} * 1.2)
  100.         if {lvuplog.%{_p}%} is not set:
  101.             send "&b======================" to {_p}
  102.             send "&c&lLevel UP !!" to {_p}
  103.             send "&7&lLevel &7&l%{Lv::%{_p}%}-1% &f→ &6&lLevel &6&l%{Lv::%{_p}%}%" to {_p}
  104.             send "&b======================" to {_p}
  105.  
  106. every 2 second:
  107.     loop all Players:
  108.         send actionbar "&e&l%loop-Player% &b&l[&f&l%{Lv::%loop-Player%}%Lv&b&l][&f&l%{exp.%loop-Player%}%&b&l/&f&l%{nextlv.%loop-Player%}%&b&l]" to loop-Player
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top