When rubbing the integrated package, I found that there is no label "FORGE: Food". I read a lot of information and did not work. Finally, I explored a method.
(Kubejs-Forge-1902.6.1-build.352)
Directly on the code (in the serverEvents.tags)
Ingredient.all.getItemids (). FOREACH (i => {
Ifm.of (i) .edible) Event.add ('TREASUREBAG: Food', i);
})
In fact, it is to traverse all items to determine whether it is edible with EDIBLE one by one
Items that have uniform features for some IDs can also use regular expressions,/.*Xxx.*/Represent all string containing xxx
// spawn_eggEvent.add ('timebag: spawn_egg', /.* spawn_egg.*/);
However, it should be noted that when the author is named
For example, the magic symbol of the newborn magic art
(These magic symbols actually belong to a creative item field with '%ARS_GLYPHS', but this thing is filled in the ADD function.
// glyphEvent.add ('timebag: glyph', /.*glyph.*/);
Event.add ('Treason: GLYPH', 'ARS_NOUVEAU: BURST'); //
Event.remove ('TREASUREBAG: GLYPH', 'ARS_NOUVEAU: Blank_glyph'); // It is not clear about what useful white magic symbols
Various ritual boards
// ritualof the ritual flamesEvent.add ('tarsureBag: ritual', /.*ritual.*/);
Event.remove ('XXX: Ritual', 'ARS_NOUVEAU: Ritual_brazier'); // Remove the tag
If there is a better way