Support Lua read/write access to voxels.
Please enable players to create "build" tools (e.g. Voxel Place) by providing a Lua interface to voxels. Consider a voxel to be made up of the following pair: a material "handle" and vertex definition. The material handle should have a well defined value identifying an "empty" voxel, but may be an opaque (but fixed) value. The vertex definition would consist of the offset (x,y,z) from the voxel origin. The location of a voxel's origin in a construct would be given using the construct's local coordinate system (X, Y, Z). The Lua API would consist of core functions to query the voxel material and vertex values, and a function to set those values. These functions would return an error value if the player is not in "build" mode (e.g. nil), or if the active inventory does not have the material being set (if different from the current material).
It would be useful in creating "build" tools to also have a method to query the coordinates of the corners of the current selection box.
Comments: 2
-
28 Jan, '21
Oran GootanThis would be far more powerful and less tedious than any vertex editor. If you are thinking about not upvoting this because you don't use Lua, keep in mind that people will release tools made with this which will help YOU with building. Upvoting this is in everyone's best interest who likes building and buying pretty ships. I can think of hundreds of applications for this. Will take the burden off the devs to improve voxel tools somewhat, and allow people to design ships in maya/autocad/whatever instead of trying to use the vanilla tools. Imagine being able to create 128m radius circles, triangles, custom shapes, etc. Without resorting to manually editing each vertex over the next five months. Whether you know it or not, you need this.
-
31 Jan, '21
JEREMYdo this it will solve so many problems !