GemBlocks 1.1.1

A .NET standard library for easy saving/loading/generating of minecraft worlds.

Install-Package GemBlocks -Version 1.1.1
dotnet add package GemBlocks --version 1.1.1
<PackageReference Include="GemBlocks" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GemBlocks --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

A C# library for easy generation of Minecraft worlds

GemBlocks aims to provide a simple library for custom map generation. In order to use this library it is not necessary to deal with things like regions, chunks and block data. However it aims to implement all map features that Minecraft offers.

This library was forked from MorbZ/J2Blocks and converted to C# for use of .NET Minecraft implementations (Clients, World Editors, Servers, etc.)

Any assistance is welcomed! Please do a pull request if you see something that needs changed.
Also changed was the naming conventions. Java conventions don't look right in C#! :D
[→ GemBlocks Documentation] COMING SOON!

Example (:D)

In this example, we generate a simple default world.

	try
        {
            /*
             * Determine the type of generator
             * either by SimpleGenerator(WorldKinds)
             * or by FlatGenerator(Layers)
             */
            IGenerator gen = new SimpleGenerator(WorldKinds.Default);
            
            /*
             * Name the world,
             * assign the generator to the level,
             * set the gamemode,
             * set the spawn point
             */
            Level level = new Level("SimpleWorld", gen)
            {
                GameMode = GameMode.Creative, SpawnPoint = new Position(0, 50, 0)
            };

            // Load the level into a world
            World world = new World(level);
            
            // If I have to explain this one we have issues.
            world.Save();
        }
        finally
        {
            Console.WriteLine("Finished!");
        }

The world has been saved to the /world/ directory in our execution directory. We can move it to the Minecraft /saves/ directory and enjoy all the fun!

Known Issues

A C# library for easy generation of Minecraft worlds

GemBlocks aims to provide a simple library for custom map generation. In order to use this library it is not necessary to deal with things like regions, chunks and block data. However it aims to implement all map features that Minecraft offers.

This library was forked from MorbZ/J2Blocks and converted to C# for use of .NET Minecraft implementations (Clients, World Editors, Servers, etc.)

Any assistance is welcomed! Please do a pull request if you see something that needs changed.
Also changed was the naming conventions. Java conventions don't look right in C#! :D
[→ GemBlocks Documentation] COMING SOON!

Example (:D)

In this example, we generate a simple default world.

	try
        {
            /*
             * Determine the type of generator
             * either by SimpleGenerator(WorldKinds)
             * or by FlatGenerator(Layers)
             */
            IGenerator gen = new SimpleGenerator(WorldKinds.Default);
            
            /*
             * Name the world,
             * assign the generator to the level,
             * set the gamemode,
             * set the spawn point
             */
            Level level = new Level("SimpleWorld", gen)
            {
                GameMode = GameMode.Creative, SpawnPoint = new Position(0, 50, 0)
            };

            // Load the level into a world
            World world = new World(level);
            
            // If I have to explain this one we have issues.
            world.Save();
        }
        finally
        {
            Console.WriteLine("Finished!");
        }

The world has been saved to the /world/ directory in our execution directory. We can move it to the Minecraft /saves/ directory and enjoy all the fun!

Known Issues

Release Notes

Updated Position so that GemsCraft and other similar softwares can utilize the Position class without having to do much extra work.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.1.1 191 12/20/2019
1.0.2.3 147 11/14/2019
1.0.2.2 123 11/13/2019
1.0.2.1 121 11/11/2019
1.0.2 141 11/8/2019
1.0.1 138 11/8/2019
1.0.0 134 11/8/2019