Module util
Provides generic utility functions.
deepslate.sounds |
A table of `node_sound_*_defaults()` functions, from whichever API is available. |
-
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.
-
deepslate.sounds
-
A table of `node_sound_*_defaults()` functions, from whichever API is available.