fogleman / Craft

A simple Minecraft clone written in C using modern OpenGL (shaders).
http://www.michaelfogleman.com/craft/
MIT License
10.38k stars 1.39k forks source link

How to add new blocks ? #281

Open Peugeot205GTI opened 2 years ago

GamerXYZ3000 commented 2 years ago

With Mod…

pintman commented 1 year ago

The builder.py file shows how to add a new block.

https://github.com/fogleman/Craft/blob/master/builder.py#L160

Python-Sargent commented 1 year ago

That is the setblock() function used for setting a block at a given position to a given type.

This is not what you are looking for.