hassanmaher / minecraft_api

A Ruby API for the Raspberry Pi version of minecraft

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minecraft API for the Raspberry Pi

A Ruby API for the Raspberry Pi version of minecraft

Prerequisites:

To install:

gem install minecraft_api

and in your code:

require 'minecraft_api'

# hostname should be the ip or hostname of your server.
# port defaults to 4711, but you can override it.
api = MinecraftApi.new(hostname) 
api.world.block(5,10,15,Block::WOOD)
api.player.go(20,40,60)

etc...

About

A Ruby API for the Raspberry Pi version of minecraft