-
Notifications
You must be signed in to change notification settings - Fork 0
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.mcfunctionfile. - For filter functions, call them from the
listutils.custom/functions/filter/main.mcfunctionfile. - For map functions, call them from the
listutils.custom/functions/map/main.mcfunctionfile. - For fold functions, call them from the
listutils.custom/functions/fold/main.mcfunctionfile. The default functions show you in which format the function should be called.