Minecraft wiki entry for Development_versions, associated text: Components
Removed function setColor(color : Number)
property value : Number
Gets or sets the color of the entity
Added additional component interfaces. movement, navigation, healable, breathable, ageable, and tameable components can be referenced via entity.getComponent(componentName : string)
minecraft:color
Container - New interface for interacting with entity containers. Can be referenced via entity.getComponent("inventory").container
function setItem(slot : Number, itemStack : ItemStack)
Adds itemStack to the container at the given slot
function getItem(slot : Number) : ItemStack
Gets the itemStack at the given slot
function addItem(itemStack : ItemStack)
Adds the given itemStack to the first available slot of the container
function transferItem(fromSlot : Number, toSlot : Number, toContainer : Container)
Transfers an ItemStack from fromSlot of the container to toSlot of toContainer
function swapItems(slot : Number, otherSlot : Number, otherContainer : Container)
Swaps ItemStacks between slot of the container and otherSlot of otherContainer
function worldLocation(relativeLocation : BlockLocation)
Transforms the coordinates of given GameTest location to its corresponding world location
function relativeLocation(worldLocation : BlockLocation)
Transforms the coordinates of given world location to its corresponding GameTest location