Modding:Block System: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 18: Line 18:


'''Example 1''': Chests. For chests you need to be able store different data for each placed chest in the world. A block entity allows you to do just that.<br>
'''Example 1''': Chests. For chests you need to be able store different data for each placed chest in the world. A block entity allows you to do just that.<br>
'''Example 2''': Locust nests. A locust needs needs to be able to spawn locusts on a fixed timer when a player comes close. Fixed times like these are easy to make with block entities.
'''Example 2''': Locust nests. A locust needs needs to be able to spawn locusts on a fixed timer when a player comes close. Fixed timers like these are easy to make with block entities.


== The BlockEntityBehavior Class ==
== The BlockEntityBehavior Class ==
Confirmedusers, Bureaucrats, editor, Administrators
1,779

edits