Module api.lua
API
Functions
as.addEggRecipe (name, ingredients) | Adds a craft recipe for an egg. |
asm.registerEgg (eggdef) | Registers new egg in game. |
asm.addEgg () | Alias for asm.registerEgg. |
Tables
EggDef | Egg definition table. |
Functions
- as.addEggRecipe (name, ingredients)
-
Adds a craft recipe for an egg.
Parameters:
- name Name of spawnegg that will be created from recipe.
- ingredients
Items used for recipe in addition to
spawneggs:egg
. Can be string or list.
- asm.registerEgg (eggdef)
-
Registers new egg in game.
Parameters:
- eggdef EggDef table.
- asm.addEgg ()
- Alias for asm.registerEgg.