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:

asm.addEgg ()
Alias for asm.registerEgg.

Tables

EggDef
Egg definition table.

Fields:

  • name Human readable name.
  • inventory_image Image displayed in inventory.
  • spawn Entity that will be spawned from egg.
generated by LDoc 1.4.6-antum-2 Last updated 2021-05-05 05:21:26