
The identifier matches an existing block or item ID.The file layout is otherwise identical to that of custom entities.Ī few key things to point out with this attachable definition:

The attachable definition goes within the 'attachables' folder. This means having the item held in the main hand, off hand, or armor slots.Īttachable definitions are quite similar in design to client entity definitions they let us define textures, materials, geometries, and animations to display the attachable. Overview #Īttachables are a system of rendering entity models when an item or block is equipped. This document covers two different ways to create attachables, depending on how the geometry being used is constructed. By using a system called attachables we can design our own models to be displayed when these items are held.Įver wanted sticks to look like spyglasses? Or to wield a big chainsaw with a spinning chain? Attachables are the way to accomplish that! This takes the form of the item's sprite being an extruded texture mesh, or blocks displaying with their model. When we design a custom item or block, Minecraft will build a model from a template so the item can be displayed when held. Ensure you are familiar with the basics of client entities! Introduction #

This document assumes you have a basic understanding of Molang, render controllers, animations, and client entity definitions.
