#Check if item exists

6 messages · Page 1 of 1 (latest)

orchid saddle
#

How would I check if an item exists in a recipe script? I am making a function that automatically checks for certain items (ingot, nugget, dust, plate, etc) and automatically adds recipes but IDK how to check for if an item of a certain ID exists.

onyx flameBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

spiral star
#
Item.of('test') != 'minecraft:air'```
gleaming folio
#

Pretty sure there’s a Item.of(‘test’).exists()

spiral star
#

that seems not exists on 1.19.2, but this works

Item.of('test').isEmpty()
orchid saddle