HellJump 3.0

Minigame for VarScript

  1. DPOH-VAR
    HellJump
    Minigame script
    Requirements:
    VarScript 1.1+
    Bukkit/Spigot 1.8+
    1) Extract files to plugins/VarScript/scripts/ folder
    2) Build arena:
    • platforms must be 2x2 solid blocks
    • players should not be able to leave platforms without taking damage
    3) Create autorun file.
    plugins/VarScript/autorun/helljump.groovy
    Code (Groovy):
    myArena = new helljump.HelljumpArena("MyArena", world[186,69,227], 10, workspace);
    myArena - variable name
    "MyArena" - display name of arena
    world[186,69,227] - coordinates of center
    10 - radius of arena (don't use large values)
    4) Play:
    /ws set helljump
    /> myArena.play me

    5)
    (Optional) Create command block to join the game
    required plugin PowerNBT
    change commanbock name:
    /nbt block CustomName = "helljump"
    set command to block:
    /> myArena.play @p
    6)
    (Optional) join by right-click to block
    add code to plugins/VarScript/autorun/helljump.groovy
    Code (Groovy):
    def myArenaJoinBlock = world[180,62,212].block
    listen (PlayerInteractEvent) { event ->
        if (event.action.name() != "RIGHT_CLICK_BLOCK") return
        if (event.clickedBlock == myArenaJoinBlock) {
            event.cancelled = true
            myArena.play event.player
        }
    }
    world[180,62,212] - coordinates of block