Skip to content

Custom functions

PeerHeer edited this page Dec 31, 2019 · 2 revisions

Custom functions can be created by users to be used in various operations.

Custom functions can be created anywhere, inside any datapack in your world. These custom functions must adhere to the return values specified in the documentation, or the result will be undefined.

To make custom functions usable by the Lists Util datapack, you need to put them inside the appropriate function.

  • For comparison functions, call them from the listutils.custom/functions/compare/main.mcfunction file.
  • For filter functions, call them from the listutils.custom/functions/filter/main.mcfunction file.
  • For map functions, call them from the listutils.custom/functions/map/main.mcfunction file.
  • For fold functions, call them from the listutils.custom/functions/fold/main.mcfunction file. The default functions show you in which format the function should be called.

Clone this wiki locally