How do I check for item type

Started by Bendoo on Thu, 08/18/2022 - 04:44

Topic category: Help with modding (Java Edition)

Last seen on 17:09, 26. Aug 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I check for item type
Thu, 08/18/2022 - 04:44

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

Last seen on 08:08, 1. Sep 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 17:09, 26. Aug 2022
Joined Jul 2020
Points:

User statistics:

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

thx