Skip to content

stepcut/minecraft-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minecraft-data Hackage Status Build Status

This library provides support for creating mindcraft levels (.mca files) and commands (that can be entered in the game console).

At the moment it only contains low-level primatives. The support for levels, blocks, player, etc is relatively complete, though has not yet been updated for Minecraft 1.10.

The next step is to add some high level combinators.

An example showing how to generate a (boring) chunk in a level can be found at:

https://github.com/stepcut/minecraft-data/blob/master/utils/GenWorld.hs

At the moment, the only commands which are implemented are Give and SetBlock

https://github.com/stepcut/minecraft-data/blob/master/Minecraft/Command.hs

Instead of creating levels from scratch, it is possible to use Minecraft.Combinators to create a minecraft function which uses SetBlock to place a lot of blocks.

The building combinators were introduced by Tim Philip Williams is this blog post

http://www.timphilipwilliams.com/posts/2019-07-25-minecraft.html

At the momment, those combinators can not be used to generate worlds directly -- someone should fix that.

Much of the data comes from here:

http://minecraft.gamepedia.com/Data_values

This site looks promising as well:

https://www.digminecraft.com/lists/item_id_list_pc.php

The flattening in 1.13 and later,

http://llbit.se/?p=3274

Patches welcome!

  • jeremy

About

library for creating minecraft levels and commands

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages