Skip to content
Dylan Larkins edited this page Nov 6, 2015 · 38 revisions

Consoles

Fully programmable computers are available by using this plugin. These are extremely extensive, and can be a lot of fun to play with.

Consoles features:

  • A Lua interpreter, allowing players to (safely) write their own programs for their computers.

  • Redstone and chest integration, allowing for complex sorting and redstone I/O with Lua.

  • A graphics API for Lua, allowing custom rendering via Lua code

  • A mapping program, allowing players to pan, zoom, and explore maps viewed in a computer

  • Image rendering. Images are saved and loaded from URLs, and are fit onto canvases (without any resizing).

  • And even a Minesweeper game, written entirely in Lua!

Installation

Installation on normal servers is pretty simple, just install both the consoles-core and consoles-computers plugins. If you don't want computers, skip installing the computers plugin.

For servers linked with BungeeCord: you will need to set bungee-forward in console.core's config.yml to true, and then you will need to install the consoles-bungee plugin (put it in your BungeeCord plugins folder).

If you ignore installing the Bungee plugin, consoles will stop updating and bug out for clients that switch servers!

Computers

To create a computer, you have two methods - you can either use the /computer give command, or craft it in a crafting table. The recipe looks like this: Crafting Recipe

Once you've got that, you can place down the computer wherever you want, and start typing commands into it. Commands are only handled for the computer when you're looking at it, and you just put a / in front of your command as if it were a normal server command.

Check out help and man [program] on the computer for information about particular programs and the computer itself.

Computer Programming

Check out Getting Started with Lua for learning how to program computers in Consoles.

Plugin Commands

Computer commands (requires computers.manage permission node, and the consoles-computers plugin installed):

  • /computer list - lists all active computers
  • /computer create [N/E/S/W] [hostname] - creates a computer facing the given direction, and using the given hostname
  • /computer give - gives you a computer in your inventory
  • /computer remove [hostname] - forcefully removes a computer

Image commands (requires consoles.image permission node):

  • /im list - lists all images, and their indexes.
  • /im create [N/E/S/W] [URL] - creates an image facing the given direction, and with the given URL
  • /im remove [index] - removes an image at the given index