Confirmedusers, Bureaucrats, editor, Administrators
1,779
edits
m (Tyron moved page Block System to Modding:Block System) |
No edit summary |
||
Line 18: | Line 18: | ||
Allows you to define stateful looks and behaviors. If you inherit from this class you can change looks and behaviors on a block-by-block basis. See also [[Modding:Block_Entity|Block Entity class]] page. | Allows you to define stateful looks and behaviors. If you inherit from this class you can change looks and behaviors on a block-by-block basis. See also [[Modding:Block_Entity|Block Entity class]] page. | ||
'''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. | '''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 times like these are easy to make with block entities. | ||