Module api.lua

API

Functions

asm.registerEggRecipe (name, ingredients) Adds a craft recipe for an egg.
asm.registerEgg (def) Registers new egg in game.

Tables

EggDef Egg definition table.


Functions

asm.registerEggRecipe (name, ingredients)
Adds a craft recipe for an egg.

Alias: asm.addEggRecipe

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 (def)
Registers new egg in game.

Alias: asm.addEgg

Parameters:

Tables

EggDef
Egg definition table.

Fields:

  • name Human readable name.
  • inventory_image Image displayed in inventory.
  • spawn Entity that will be spawned from egg.
  • ingredients Ingredients to us, in addition to spawneggs:egg, to register craft recipe (optional).
generated by LDoc 1.4.6-antum-2 Last updated 2021-05-05 06:41:02