Modding:Block Entity Behaviors: Difference between revisions

From Vintage Story Wiki
(Created page with "== Using block Entity Behaviors == Block entity behaviors are an expanded type of behavior that block entities can utilize. At the moment, these are mostly used by mechanical...")
(No difference)

Revision as of 19:34, 1 May 2020

Using block Entity Behaviors

Block entity behaviors are an expanded type of behavior that block entities can utilize. At the moment, these are mostly used by mechanical power blocks. If you're looking for regular block behaviors (which are used differently) they can be found here.

Otherwise, you can give your block entity behaviors with the following format:

entityBehaviors: [{ name: "BlockEntityBehavior" }]

Most block entity behavior classes can be viewed at the Vintage Story Github here for those looking to learn more about each.