docker-scriptcraft

It's a Docker container for minecraft with CanaryMod and ScriptCraft installed and ready to run.

Run

To run it launch :

docker run -p 25565:25565 -p 22:22 -it tclavier/scriptcraft

Options

Some options could be pass by environment variables :

  • INIT_WORLD : if this variable is set, all worlds will be removed at startup
  • OPS : Pseudo of first ops
  • ONLINE_MODE : true or false, option to enable account verification
  • WORLD_TYPE : FLAT by default
  • GENERATE_STRUCTURES : true or false, not used in FLAT world

I have enabled a volume: /minecraft, to persist world

For exemple :

docker run -p 25565:25565 -it -e OPS=FooBar -e ONLINE_MODE=false -v /tmp/minecraft:/minecraft tclavier/scriptcraft

Classroom plugin

First ops can activate scripting in online console with

/jsp classroom on

or directly in server console by

jsp classroom on 

The ssh port is available to upload scripts in players directories only in sftp, the default credentials are : login root and password minecraft. Details about this functionality are available on classroom-plugin documentation.

Deliverous

You can find a file named Deliverous. It must be update with your IP to deploy this container on Deliverous plate-forme.

Build

If you whant to build it, for exemple to tune your world, clone it :

git clone https://github.com/tclavier/docker-scriptcraft.git

Install dependencies

cd docker-scriptcraft
bundle install

And build

rake build

That will download all require files and build container tclavier/scriptcraft for you.