mirror of
https://github.com/pyrollo/display_modpack.git
synced 2024-12-04 20:13:44 +01:00
Updated API with new group
This commit is contained in:
parent
9ce075d30b
commit
b16f9fc23b
6
API.md
6
API.md
@ -41,9 +41,7 @@ This is a helper to register entities used for display.
|
||||
|
||||
* Register node with :
|
||||
- `on_place`, `on_construct`, `on_destruct` and `on_rotate` callbacks using display_api callbacks.
|
||||
|
||||
- `display_modpack_node` group. This will make this node have their entities updated as soon as the mapblock is loaded (Useful after /clearobjects).
|
||||
|
||||
- `display_api` group. This will make this node have their entities updated as soon as the mapblock is loaded (Useful after /clearobjects).
|
||||
- a `display_entities` field in node definition containing a entity name indexed table. See below for description of each display_entities fields.
|
||||
|
||||
### Display_entities fields
|
||||
@ -75,7 +73,7 @@ In order to avoid flickering text, it's better to have text a little behind node
|
||||
...
|
||||
paramtype2 = "facedir",
|
||||
...
|
||||
groups = { display_modpack_node = 1, ... },
|
||||
groups = { display_api = 1, ... },
|
||||
...
|
||||
display_entities = {
|
||||
["mymod:entity1"] = {
|
||||
|
Loading…
Reference in New Issue
Block a user