Skip to content

Instantly share code, notes, and snippets.

@popstarfreas
Last active June 19, 2019 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save popstarfreas/809c0aa502bc9bfa549cb5a6ec09a94a to your computer and use it in GitHub Desktop.
Save popstarfreas/809c0aa502bc9bfa549cb5a6ec09a94a to your computer and use it in GitHub Desktop.

Setting up your map

Select your map: /arena select "name"

Setting the chests

You will need to do the following for each chest once:

  • Type /set zchest
  • Open the chest

Setting the spawns

For player spawns, type all three on the same spot

  • Stand where you want the spawn to be
  • /set spawn B start
  • /set spawn R start
  • /set spawn N start

For mob spawns:

  • Stand where you want a spawn to be
  • /set mobspawn [name]
  • Set the name to be something where you will remember where that spawn is
  • Repeat the above 3 steps for each mob spawn

Adding classes

To add the classes:

  • /zclass add [name]
  • repeat for each class you will have

To set a class chest:

  • Select the chest /selectzchest
  • /zchest settype 3
  • /zchest setclass [name]

If you want to remove the class

  • /zchest remclass

Remember, only one class is set per class chest.

Adding Items

To set the chest type: First

  • Select the chest /selectzchest

Then for weapons or armor (these go up one tier each purchase)

  • /zchest settype 0

for accessories (these stay at tier 0 and auto-equip)

  • /zchest settype 1

for ammo (or life / mana upgrades) (these stay at tier 0)

  • /zchest settype 2

To add items to a type 0, 1, or 2 chest

  • Select the chest /selectzchest
  • Then /zchest additem {item name / ID} {class name} {tier} {item cost} {item stack}
  • Run the above command for each item you want to add
  • The first tier is 0, so use tier 0 for items that appear first in the chest
  • To remove an item from a chest: /zchest delitem {item name / ID} {class name} {tier}
  • You can list the items in a chest using /zchest listitems
  • You can clear all items in a chest using /zchest clearitems
  • You can remove a chests entry as part of the map using /zchest remove

Life/Mana

  • For life, add a life crystal with the stack being the +HP amount per purchase
  • For Mana, add a mana crystal with the stack being the +MP amount per purchase

Applying mods to items

To mod items

  • select the chest /selectzchest
  • /zchest moditem {item name / ID} {class name} {tier} {type} {value}

Types:

  • 0 = Prefix
  • 1 = Color
  • 2 = Damage
  • 3 = Knockback
  • 4 = UseAnimation
  • 5 = UseTime
  • 6 = ShootProjectileId
  • 7 = ShootSpeed
  • 8 = Scale
  • 9 = AmmoIdentifier
  • 10 = UseAmmoIdentifier
  • 11 = NotAmmo
  • 12 = DropAreaWidth
  • 13 = DropAreaHeight

Testing

You should know about /lobby escape, this is what allows you to subvert the lobby to edit your map. However you can also use /lobby descape to get back into it, and then /lobby sway <name> to force that map. Note that sway will change the lobby to custom (if it isn't already).

It is recommended that when you intend to edit your map, you join via /j z -c, this makes sure it is both private and that the lobby itself doesn't start automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment