MineClone2/API.md

37 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

2017-01-11 13:34:08 +01:00
# API
## Groups
2017-02-21 21:28:58 +01:00
MineClone 2 makes very extensive use of groups. Making sure your items and objects are members of the correct group is a good and easy way to ensure compability without using any function calls.
Groups are explained in `GROUPS.md`.
2017-02-21 21:28:58 +01:00
## APIs for adding simple things
You can add simple things by calling functions in the various MineClone 2 mods.
2017-01-11 13:34:08 +01:00
2017-02-21 21:28:58 +01:00
* Fences and fence gates: See `mods/ITEMS/mcl_fences/API.md`.
* Walls: See `mods/ITEMS/mcl_walls/API.md`
2017-01-11 13:34:08 +01:00
2017-02-21 21:28:58 +01:00
### Undocumented APIs
You can also add stuff for the following thins, but the APIs are currently undocumented. These mods are very similar to Minetest Game.
2017-01-11 13:34:08 +01:00
2017-02-21 21:28:58 +01:00
* Doors: See `mods/ITEMS/doors`
* Stairs and slabs: See `mods/ITEMS/stairs` and `mods/ITEMS/mcstair`
* Beds: See `mods/ITEMS/beds`
* Buckets (for new liquids): See `mods/ITEMS/bucket`
* Panes (like glass panes and iron bars): See `mods/ITEMS/xpanes`
2017-01-11 13:34:08 +01:00
2017-02-21 21:28:58 +01:00
WARNING! These 5 mods may be renamed or changed in future releases, and compability could be broken.
2017-02-21 21:28:58 +01:00
## Mobs
This mod uses Mobs Redo [`mobs`] by TenPlus1, a very powerful mod for adding mods of various kinds.
There are minor modificiations for MineClone 2 compability and some items have been removed or moved to other mods, but the API is identical to the original.
You can add your own mobs, spawn eggs and spawning rules with this mod.
API documnetation is included in `mods/ENTITIES/mobs/api.txt`.
2017-01-16 21:21:47 +01:00
2017-02-21 21:28:58 +01:00
Note that mobs in MineClone 2 are still very experimental, everything about mobs may change radically at any time!
2017-02-21 21:28:58 +01:00
## Other APIs
* Statbars / HUD bars: See `mods/HUD/hudbars`
* Hunger: See `mods/PLAYER/mcl_hunger/API.md`
2017-02-21 21:28:58 +01:00
## Other things of interest
Mods found in `mods/CORE` contain important core APIs and utility functions, used throughout the subgame.