Add mini-documentation for rp_wielditem
This commit is contained in:
parent
f53defb1be
commit
bb7ebc347c
@ -57,6 +57,7 @@ Mods with documented APIs:
|
||||
* `rp_sounds`: Node sounds
|
||||
* `rp_util`: Helper functions for Repixture
|
||||
* `rp_tnt`: Ignite and blow up TNT, also spawn TNT-less explosions
|
||||
* `rp_wielditem`: Custom rotation of item in hand in 3rd person view (in case it looks awkward)
|
||||
* `tt`: Custom tooltips
|
||||
|
||||
Beware: Calling functions that are not documented are NOT guaranted to be stable
|
||||
|
8
mods/rp_wielditem/API.md
Normal file
8
mods/rp_wielditem/API.md
Normal file
@ -0,0 +1,8 @@
|
||||
Normally, you don't need to do anything special for this mod to work,
|
||||
most items will show up correctly in 3rd person view.
|
||||
|
||||
Sometimes, an item might show up with the wrong rotation in 3rd person view,
|
||||
so a correct angle has to be specified.
|
||||
|
||||
To do this, add `_rp_wielditem_rotation` to the node definition and set it
|
||||
to a rotation value (between 0 and 360 degrees).
|
@ -6,9 +6,7 @@ Shows the wield item in 3rd person view.
|
||||
|
||||
## For developers
|
||||
|
||||
If an item does not show up correctly in 3rd person view (bad rotation),
|
||||
add `_rp_wielditem_rotation` to the node definition and set it to a rotation value
|
||||
(between 0 and 360 degrees).
|
||||
See `API.md`.
|
||||
|
||||
## Licensing
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user