Portability | RecordWildCards |
---|---|
Stability | experimental |
Maintainer | Douglas Burke |
Safe Haskell | None |
A mixture of routines.
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 the server.
Until I find out otherwise, I am going to assume that
any conversion done by show msg
- such as protecting
any double quotes - is sufficient. The spec does not
mention what is required.
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.