Active Block Modifiers: Improve alien grass chapter, and fix introduction formatting
This commit is contained in:
parent
ee10fcd6fd
commit
963da10ac9
@ -6,18 +6,21 @@ root: ../../
|
|||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
An active *A**ctive **B**lock **M**odifier (**ABM**) allows you to run code on
|
An active **A**ctive **B**lock **M**odifier (**ABM**) allows you to run code on
|
||||||
certain nodes at specific intervals.
|
certain nodes at specific intervals.
|
||||||
|
|
||||||
Please be warned, ABMs which are too frequent or act on a large number of nodes
|
Please be warned, ABMs which are too frequent or act on a large number of nodes
|
||||||
cause massive amounts of lag. Use them sparingly.
|
cause massive amounts of lag. Use them sparingly.
|
||||||
|
|
||||||
* Special Growing Grass
|
* [Special Growing Grass](#example-growing-alien-grass)
|
||||||
* Your Turn
|
* [Your Turn](#your-turn)
|
||||||
|
|
||||||
## Special Growing Grass
|
## Example: Growing Alien Grass
|
||||||
|
|
||||||
If you want to make a mod that adds a type of grass called alien grass
|
Alien grass, for the purposes of this chapter, is a type of grass which
|
||||||
- it grows near water on grassy blocks - you first register the grass, then
|
has a chance to appear near water.
|
||||||
|
|
||||||
|
To create it, you first need to register the grass, then
|
||||||
write an ABM.
|
write an ABM.
|
||||||
|
|
||||||
{% highlight lua %}
|
{% highlight lua %}
|
||||||
|
Loading…
Reference in New Issue
Block a user