Advertisement
Guest User

Untitled

a guest
May 19th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 1.91 KB | None | 0 0
  1. variables:
  2.     souls.%player% = 0
  3.     soulwellmax.%player% = 100
  4. on death:
  5.     if {souls.%player%} is smaller than {soulwellmax.%player%}:
  6.         victim is player
  7.         attacker is player
  8.         world is "Memorial"
  9.         send "&b+1 Soul" to player
  10.         add 1 to {souls.%player%}
  11.     if {souls.%player%} is {soulwellmax.%player%}:
  12.         victim is player
  13.         attacker is player
  14.         world is "Memorial"
  15.         send "&cSoulWell is full"
  16. command /souls:
  17.     trigger:
  18.         if world is "SkyWars":
  19.             send "&bYou have &a%{souls.%player%}% &bSouls" to player
  20. command /soulwell [<text>]:
  21.     trigger:
  22.         if argument 1 is not set:
  23.             if world is "SkyWars":
  24.                 open chest with 3 rows named "&b&lSoul Well" to player
  25.                 format slot 4 of player with End Portal Frame named "&bRoll Soul Well" with lore "&aRoll the soul well &eCost &a10 &bsouls" to close
  26.                 format slot 18 of player with Ender Pearl named "&aSouls" with lore "&eClick to see how many souls you have " to close then run [execute player command "/souls"]
  27.                 format slot 26 of player with Ender Pearl named "&aUpgrade soul well" with lore "&eClick to add 10 to maximum souls capicity, Cost %{soulwellmax.%player%}% souls " to close then run [execute player command "/soulwell uppgrade"]
  28.         if argument 1 is "upgrade":
  29.             if world is "SkyWars":
  30.                 if {souls.%player%} is {soulwellmax.%player%}:
  31.                     remove 100 from {souls.%player%}
  32.                     add 10 to {soulwellmax.%player%}
  33.                     send "&eSoul well capicity is now &a%{soulwellmax.%player%}%" to player
  34.                 if {souls.%player%} is smaller than {soulwellmax.%player%}:
  35.                     send "&cYou dont have enough souls to upgrade"
  36. on rightclick:
  37.      target block is end portal frame
  38.      world is "SkyWars"
  39.      make player execute "/soulwell"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement