How do I check for item type

Started by Bendoo on

Topic category: Help with modding (Java Edition)

Last seen on 10:36, 15. Oct 2023
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I check for item type

Is there a way to check if an item is edible or usable as furnace fuel that works across other mods?

Last seen on 20:41, 23. Jul 2023
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes, just using the [is…
Thu, 08/18/2022 - 09:53

yes, just using the [is itemstack food] or [get fuel power of itemstack]
For fuel power you can just detect if fuel power is higher than 0.
 

Last seen on 10:36, 15. Oct 2023
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thx  
Fri, 08/26/2022 - 17:09

thx