Skip to content
This repository has been archived by the owner on Jun 3, 2022. It is now read-only.

Latest commit

 

History

History
47 lines (38 loc) · 1.21 KB

README.md

File metadata and controls

47 lines (38 loc) · 1.21 KB

!! ARCHIVED !!

새로운 프로젝트로 찾아올게요 :) We'll be back with a new project :)

Mine.js(W-I-P)

Minecraft Bukkit Scripting with JS by Netherald

How to apply?

Download Paper or Bungee Version. and put it to plugins folder.
Script folder is plugins/js!

How to build?

Run build task of Bukkit or Bungee module!

How to use?

Wiki

Example code

let a = 'yep'
function onInit() {
  a = storage.get('test')
  createCommand('hello', [], callback)
  console.log('ok init succ')
}

function onPlayerMove(event) {
  if(event.player.name === 'hiworld') {
    event.player.send('<red>Don\'t move!')
    event.setCancelled(true)
  }
}

function callback(args, sender) {
  sender.send('hello')
  if(sender.type === 'type') {
    sender.player().teleport(location.create('world', 1, 2, 3))
  }
}

umm sib