mcpi-0.0.1.0: Connect to MineCraft running on a Raspberry PI.

PortabilityRecordWildCards
Stabilityexperimental
MaintainerDouglas Burke
Safe HaskellNone

Data.MineCraft.Pi.Other

Contents

Description

A mixture of routines.

Synopsis

Queries

getHeight :: IPos -> MCPI IntSource

Return the height of the world at this position. The spec says that the input uses the (x,z) coordinates, but I am assuming this is a typo and am using (x,y) instead.

It would be easy to test.

Commands

chatPost :: String -> MCPI ()Source

Send a message to MineCraft for it to display.

There is no attempt to remove or replace invalid characters. The MineCraft server API uses ASCII and it is likely that new lines are not allowed in the message, although this is not specified.