plusCreator

A library for creating various game classes using Lua.

createBox(minX, minY, minZ, maxX, maxY, maxZ)

Create box.

Parameters:

  • minX (double).

  • minY (double).

  • minZ (double).

  • maxX (double).

  • maxY (double).

  • maxZ (double).

Example Usage:

-- Example code showing how to use the function
local box = creator.createBox(0, 0, 0, 1, 1 ,1)
registerWorldRenderer(function(context)
    local filled = {
        box = box,
        red = 255, green = 0, blue = 0, alpha = 140,
        through_walls = false
    }
    context.renderFilled(filled)
end)

createItemStackFromId(id)

Create item.

Parameters:

  • id (string).

Example Usage:

Last updated