Modding:WorldGen API: Difference between revisions

From Vintage Story Wiki
Line 231: Line 231:
}
}
</syntaxhighlight>
</syntaxhighlight>
The above code is our empty OnChunkColumnGeneration which will be called when a chunk is generated. Now we need to look at how to place blocks in this method. We have already seen the IBlockAccessor interface and we will be using that to place our blocks but we can't use the implementation we used before. In the next section we will see how to get the IBlockAccessor we need and use it to place our chest.


== Finding where to place the chest ==
== Finding where to place the chest ==
256

edits