KubeJS

KubeJS

69M Downloads

Check if item exists for a recipe

pjlasl opened this issue ยท 2 comments

commented

I know I can check if a mod exists using Platform.isLoaded, but is there a way to check if a particular item is registered?
If the item exists I would like to create a recipe with it, if not, bypass it.

Any help would be appreciated.

commented

You can use Item.exists(id) for that

commented

Perfect, Thanks!