Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Variables:
- # player's class
- #default civilian
- {Class.%player%} = 9
- on join:
- if player is not in world {ChosenMap}:
- give event-player a feather named "&bClick to choose a class" with lore "&6Soulbound"
- give event-player a nether star named "&eClick to choose a team" with lore "&6Soulbound"
- give event-player a feather named "&bClick to choose a map" with lore "&6Soulbound"
- give event-player a feather named "&aClick to manage your preferences" with lore "&6Soulbound"
- #===============
- #===============
- #open up class selector
- #===============
- #===============
- on right click with feather:
- if name of event-player's tool contains "&bClick to choose a class":
- if player is in world "world":
- make player execute command "/classgui"
- #===============
- #===============
- #team selector
- #===============
- #===============
- on rightclick with nether star:
- if name of event-player's tool contains "&eClick to choose a team":
- if player is in world "world":
- open chest with 1 row named "&7||&0Team Selector&7||" to player
- wait 1 tick
- format slot 0 of player with white wool named "&fRandom" to close then run [make player execute command "/team random"]
- format slot 1 of player with red wool named "&4Red" to close then run [message "&5You have joined &4Red &5Team"]
- format slot 2 of player with blue wool named "&1Blue" to close then run [message "&5You have joined &1Blue &5Team"]
- format slot 3 of player with yellow wool named "&eYellow" to close then run [message "&5You have joined &eYellow &5Team"]
- format slot 4 of player with green wool named "&aGreen" to close then run [message "&5You have joined &aGreen &5Team"]
- #==============
- #==============
- #class selector
- #open via command can make this part use at the portal and the lobby
- #because both use the same interface
- #==============
- #==============
- command /kit:
- trigger:
- open chest with 6 rows named "&f&7|&0Class Selector&7|" to event-player
- wait 1 tick
- format slot 0 of event-player with feather named "&fAcrobat" to run [make player execute command "/class gui"]->[make player execute command "/class acrobat"]
- format slot 1 of event-player with enchanted book named "&fAlchemist" to run [make player execute command "/class alchemist"]
- format slot 2 of event-player with bow named "&fArcher" to run [make player execute command "/class archer"]
- format slot 3 of event-player with golden sword named "&fAssassin" to run [make player execute command "/class assassin"]
- format slot 4 of event-player with jukebox named "&fBard" to run [make player execute command "/class bard"]
- format slot 5 of event-player with chain chestplate named "&fBerserker" to run [make player execute command "/class berserker"]
- format slot 6 of event-player with blocks disc named "&fBloodmage" to run [make player execute command "/class bloodmage"]
- format slot 7 of event-player with brick block named "&fBuilder" to run [make player execute command "/class builder"]
- format slot 8 of event-player with crafting table named "&fCivilian" to run [make player execute command "/class civilian"]
- format slot 9 of event-player with ender pearl named "&fDasher" to run [make player execute command "/class dasher"]
- format slot 10 of event-player with wooden sword named "&fDefender" to run [make player execute command "/class defender"]
- format slot 11 of event-player with exp bottle named "&fEnchanter" to run [make player execute command "/class enchanter"]
- format slot 12 of event-player with redstone block named "&fEngenieer" to run [make player execute command "/class engenieer"]
- format slot 13 of event-player with seeds named "&fFarmer" to run [make player execute command "/class farmer"]
- format slot 14 of event-player with anvil named "&fHandyman" to run [make player execute command "/class handyman"]
- format slot 15 of event-player with paper named "&fHealer" to run [make player execute command "/class healer"]
- format slot 16 of event-player with lead named "&fHunter" to run [make player execute command "/class hunter"]
- format slot 17 of event-player with ice named "&fIceman" to run [make player execute command "/class iceman"]
- format slot 18 of event-player with slimeball named "&fImmobilizer" to run [make player execute command "/class immobilizer"]
- format slot 19 of event-player with stone axe named "&fLumberjack" to run [make player execute command "/class lumberjack"]
- format slot 20 of event-player with skeleton head named "&fMercenary" to run [make player execute command "/class mercenary"]
- format slot 21 of event-player with stone pickaxe named "&fMiner" to run [make player execute command "/class miner"]
- format slot 22 of event-player with flint and steel named "&fPyro" to run [make player execute command "/class pyro"]
- format slot 23 of event-player with blaze rod named "&fRiftwalker" to run [make player execute command "/class riftwalker"]
- format slot 24 of event-player with nether star named "&fScorpio" to run [make player execute command "/class scorpio"]
- format slot 25 of event-player with fishing rod named "&fScout" to run [make player execute command "/class scout"]
- format slot 26 of event-player with bow named "&fSniper" to run [make player execute command "/class sniper"]
- format slot 27 of event-player with vines named "&fSpider" to run [make player execute command "/class spider"]
- format slot 28 of event-player with potion of:8270 named "&fSpy" to run [make player execute command "/class spy"]
- format slot 29 of event-player with rose red named "&fSuccubus" to run [make player execute command "/class succubus"]
- format slot 30 of event-player with cat disc named "&fSwapper" to run [make player execute command "/class swapper"]
- format slot 31 of event-player with gold axe named "&fThor" to run [make player execute command "/class thor"]
- format slot 32 of event-player with stone pressure plate named "&fTinkerer" to run [make player execute command "/class tinkerer"]
- format slot 33 of event-player with quartz item named "&fTransporter" to run [make player execute command "/class transporter"]
- format slot 34 of event-player with redstone named "&fVampire" to run [make player execute command "/class vampire"]
- format slot 35 of event-player with stone sword named "&fWarrior" to run [make player execute command "/class warrior"]
- format slot 36 of event-player with stick named "&fWizard" to run [make player execute command "/class wizard"]
- #==============
- #==============
- #class select command
- #==============
- #==============
- command /class <text>:
- trigger:
- if arg-1 is "acrobat":
- message "&5Acrobat selected"
- set {Class.%player%} to 1
- if arg-1 is "alchemist":
- message "&5Alchemist selected"
- set {Class.%player%} to 2
- if arg-1 is "archer":
- message "&5Archer selected"
- set {Class.%player%} to 3
- if arg-1 is "assassin":
- message "&5Assassin selected"
- set {Class.%player%} to 4
- if arg-1 is "bard":
- message "&5Bard selected"
- set {Class.%player%} to 5
- if arg-1 is "berserker":
- message "&5Berserker selected"
- set {Class.%player%} to 6
- if arg-1 is "bloodmage":
- message "&5Bloodmage selected"
- set {Class.%player%} to 7
- if arg-1 is "builder":
- message "&5Builder selected"
- set {Class.%player%} to 8
- if arg-1 is "Civilian":
- message "&5Civilian selected"
- set {Class.%player%} to 9
- if arg-1 is "dasher":
- message "&5Dasher selected"
- set {Class.%player%} to 10
- if arg-1 is "defender":
- message "&5Defender selected"
- set {Class.%player%} to 11
- if arg-1 is "enchanter":
- message "&5Enchanter selected"
- set {Class.%player%} to 12
- if arg-1 is "engineer":
- message "&5Engineer selected"
- set {Class.%player%} to 13
- if arg-1 is "farmer":
- message "&5Farmer selected"
- set {Class.%player%} to 14
- if arg-1 is "handyman":
- message "&5Handyman selected"
- set {Class.%player%} to 15
- if arg-1 is "healer":
- message "&5Healer selected"
- set {Class.%player%} to 16
- if arg-1 is "hunter":
- message "&5Hunter selected"
- set {Class.%player%} to 17
- if arg-1 is "icaman":
- message "&5Icaman selected"
- set {Class.%player%} to 18
- if arg-1 is "immobilizer":
- message "&5Immobilizer selected"
- set {Class.%player%} to 19
- if arg-1 is "lumberjack":
- message "&5Lumberjack selected"
- set {Class.%player%} to 20
- if arg-1 is "mercenary":
- message "&5Mercenary selected"
- set {Class.%player%} to 21
- if arg-1 is "miner":
- message "&5Miner selected"
- set {Class.%player%} to 22
- if arg-1 is "pyro":
- message "&5Pyro selected"
- set {Class.%player%} to 23
- if arg-1 is "riftwalker":
- message "&5RiftWalker selected"
- set {Class.%player%} to 24
- if arg-1 is "scorpio":
- message "&5Scorpio selected"
- set {Class.%player%} to 25
- if arg-1 is "scout":
- message "&5Scout selected"
- set {Class.%player%} to 26
- if arg-1 is "sniper":
- message "&5Sniper selected"
- set {Class.%player%} to 27
- if arg-1 is "sipder":
- message "&5Spider selected"
- set {Class.%player%} to 28
- if arg-1 is "spy":
- message "&5Spy selected"
- set {Class.%player%} to 29
- if arg-1 is "succubus":
- message "&5Succubus selected"
- set {Class.%player%} to 30
- if arg-1 is "swapper":
- message "&5Swapper selected"
- set {Class.%player%} to 31
- if arg-1 is "thor":
- message "&5Thor selected"
- set {Class.%player%} to 32
- if arg-1 is "tinkerer":
- message "&5Tinkerer selected"
- set {Class.%player%} to 33
- if arg-1 is "transporter":
- message "&5Transporter selected"
- set {Class.%player%} to 34
- if arg-1 is "vampire":
- message "&5Vampire selected"
- set {Class.%player%} to 35
- if arg-1 is "warrior":
- message "&5Warrior selected"
- set {Class.%player%} to 36
- if arg-1 is "wizard":
- message "&5Wizard selected"
- set {Class.%player%} to 37
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement