Skip to content
ben-mkiv edited this page Feb 14, 2019 · 2 revisions

3D World Widget

Item3D

widget = component.glasses.addItem3D()
-- adds a Item Icon to the 3D World
setItem(String:name, Integer:meta):boolean
-- sets the widget item by its name and metaindex
-- returns false if the item couldn't be found/set, otherwise it's true

Examples

-- add widget which shows an Andesite block
glasses = require("component").glasses
widget = glasses.addItem3D()
widget.setItem("minecraft:stone", 6)

methods