#Predicate based on burn time
25 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
An Itemstack is Item.of("mod:id") though idk If this is what you want.
Also do you have some Sort of Code already?
🗒️**Send the code!**🗒️
You may have an issue with a KubeJS script and you explain it to the best of your ability yet without the actual code in question we have very little to go off of in trying to assist you.
is that a question or a sentence. 
Question
public static Restriction restrict (Predicate<IItemStack> predicate, String... requiredStages) {
return restrictInternal(stack -> predicate.test(new MCItemStack(stack)), requiredStages);
}
Like this.
they should be wrapped automatically
so you just need to give it a Item.of(...) iirc
Ok, I'll try.
console.log(Item.of('anything').getBurnTime == 150)
This is the code.

console.log(Item.of('anything').burnTime == 150)
// or
console.log(Item.of('anything').getBurnTime() == 150)
But how can I check every item in minecraft then take every item that as burnTime == 150?
Excuse the first
No no, the second

Therefore?
both should work
But for this?
I'd like to obtain all items that have burnTime == 150.
Any idea?