Module util

Provides generic utility functions.

Functions

deepslate.register_shapes (name, subname) Registers stairs, slabs, walls, etc.
deepslate.first_available_item (...) Finds the first item available for crafting.
deepslate.register_rp_craft (items, output) Registers a Repixture crafting recipe where applicable.

Fields

deepslate.sounds A table of `node_sound_*_defaults()` functions, from whichever API is available.


Functions

deepslate.register_shapes (name, subname)
Registers stairs, slabs, walls, etc. of the specified node.

Parameters:

  • name The prefixed ID of the original node, such as 'deepslate:deepslate_brick'.
  • subname The non-prefixed base ID of the shape nodes, such as 'deepslate_brick'.
deepslate.first_available_item (...)
Finds the first item available for crafting.

Parameters:

  • ... Any number of prefixed node/item IDs.

Returns:

    One of the specified IDs, or nil.
deepslate.register_rp_craft (items, output)
Registers a Repixture crafting recipe where applicable.

Parameters:

  • items A list of namespaced item IDs for the recipe.
  • output A namespaced item ID for the result.

Fields

deepslate.sounds
A table of `node_sound_*_defaults()` functions, from whichever API is available.
generated by LDoc 1.4.6 Last updated 2023-03-13 09:39:44