Terrain Generation from Lua, among other things.
#8
The Gallery plugin doesn't do much generating on its own. For each Gallery it takes an input Schematic file and just uses that for both the plot and the walkway; it also defines the half-width of the walkway. This is all it needs to do (and it should be what you should be doing in your plugin - have a Schematic (possibly separate ones for the plot, for the walkways in between and the crossings) and paste that into chunks being generated, and also upon claiming a plot (just to be sure).

A sign is a block like any other, so the OnPlayerUsingBlock() should suffice. I'm not 100% sure about this one, though, you may find that you need to use the OnPlayerRightClick, which is called for each and every right-click.

Explosions cannot currently separate the terrain damage from the entity damage, so you can either disable the entire explosion (the Gallery plugin does that as well, OnExploding hook) or let it have its full effect.
Reply
Thanks given by:


Messages In This Thread
RE: Terrain Generation from Lua, among other things. - by xoft - 01-02-2015, 07:04 AM



Users browsing this thread: 1 Guest(s)