Modding:Block Entity Classes
Using block Entity classes
May blocks that have interactive functions will require using a block entity to accomplish. When your block requires the use of a block entity you assign it using the following property format in the JSON:
NOTE: Although they are referenced in JSONS as "Anvil", "Bed" etc. Block Entity class files themselves use the BEAnvil, BEBed naming convention.
A majority of all block entities can be viewed at the Vintage Story Github here for those looking to learn more about each.
Additionally, all mechanical block entities can be found here.
All Block Entities
Here is a table containing all block entities used as of version 1.9.+z
Mechanical Power Block Entity Classes
This table contains all the block entities relevant to mechanical power.
|Class Name||Example Blocks||Description||Github Link|
|Brake||brake||Controls the rotation of the brake axle and events that occur when the player interacts with it.||Brake Block Entity Class|
|Clutch||clutch||-||Clutch Block Entity Class|
|HelveHammer||helvehammerbase||-||Helve Hammer Class|
|Vintage Story: Modding|
|Basics||Mod Types | Asset System | Textures | Items | Recipes | Blocks | Model Creator | Release|
|Advanced||Setup(Windows,Linux) | Items | Blocks | Item-Block interractions | Block Behavior | Block Entity | Particles | World Access|
|Worldgen||Terrain | Ores | Trees | Worldgen API|
|Rendering||Shaders and Renderers|
|Property Overview||Item | Block | Block Behaviors | Block Classes | Block Entities | Block Entity Behaviors|