https://www.reddit.com/r/CreateMod/comments/17ypnly/items_missing_from_creative_and_jei_menu/
referencing to this but i honestly dont really know what im doing just trying to add all of the recipy from the mod to jei or emi
kubejs-neoforge-2101.7.0-build.148
kubejs-neoforge-2100.7.0-build.102
either of those 2
would take any help
#add back item in jei and/or in emi
54 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Send your code here instead of a screenshot
It makes it easier to diagnose your code and help you fix it or make the required changes/additions.
onEvent('JEIEvents.addItems'(e => {
e.add(Ingredient.of([
'@forbidden_arcanus',
]).getItemIds().toArray());
});)
try this
JEIEvents.addItems(e => {
e.add(/^forbidden_arcanus:/)
})
ill try
[14:16:15] [INIT] KubeJS 2101.7.0-build.148; MC 2006 NeoForge
[14:16:15] [INIT] Loaded plugins:
[14:16:15] [INIT] - dev.latvian.mods.kubejs.BuiltinKubeJSPlugin
[14:16:15] [INIT] - dev.latvian.mods.kubejs.client.BuiltinKubeJSClientPlugin
[14:16:15] [INIT] - dev.latvian.mods.kubejs.integration.architectury.ArchitecturyIntegration
[14:16:15] [INIT] - moe.wolfgirl.probejs.plugin.BuiltinProbeJSPlugin
[14:16:15] [INIT] - moe.wolfgirl.probejs.plugin.ProbeJSKJSPlugin
[14:16:15] [INIT] - com.sunekaer.sdrp.neoforge.kubejs.SDRPKubeJSIntegration
[14:16:15] [INIT] - dev.ftb.mods.ftbxmodcompat.neoforge.ftbquests.kubejs.FTBQuestsKubeJSPlugin
[14:16:15] [INIT] - dev.ftb.mods.ftbxmodcompat.neoforge.ftbchunks.kubejs.FTBChunksKubeJSPlugin
[14:16:15] [INIT] - dev.ftb.mods.ftbxmodcompat.neoforge.ftbteams.kubejs.FTBTeamsKubeJSPlugin
[14:16:15] [INIT] - com.blakebr0.cucumber.compat.kubejs.CucumberKubeJSPlugin
[14:16:16] [ERROR] ! jei forbidden.js#1: dev.latvian.mods.rhino.EcmaError: ReferenceError: "JEIEvents" is not defined.
[14:16:16] [INFO] Loaded script client_scripts:maybe.js in 0.017 s
[14:16:16] [INFO] Loaded 1/2 KubeJS client scripts in 0.078 s with 1 errors and 0 warnings
[14:16:31] [INFO] Client resource reload complete!
thx for the help still ^^ any help is better then none when i dont know at all what im doing ?
we'll have to wait for Lat to see, cuz i havent seen this before D:
RecipeViewerEvents.addEntries('item', event => {
event.add(['@forbidden_arcanus',
]);
})
that seem to load without issues and no warning but doesnt seem to have done anything
emi/jei has no entries
1.21 just merge thoes (JEIEvents, REIEvents) together
RecipeViewerEvents.addEntries only work when use REI
because of it is RecipeViewerEvents for 1.21+
So what I should be doing then is recipeviewerevents.additems?
A mix of both then ?
Bc honestly now I'm very confused
yes
oh wait
Sorry, I confused addEntries with groupEntries, you just need to use addEntries
So this no ? Or I have to use JEIEVents.addEntries?
RecipeViewerEvents.addEntries('item', event => {
event.add('@forbidden_arcanus');
})
Copied directly from the link and edited the item for my need
RecipeViewerEvents.addEntries('item', event => {
event.add(['@forbidden_arcanus',
]);
})
Now compared to what I had done before
Do I need to remove the []
Bc honestly sole difference I see
try
RecipeViewerEvents.addEntries('item', event => {
Ingredient.of('@forbidden_arcanus').itemIds.forEach(item => {
event.add(item)
})
})
Thx ill try I somewhat understand what the syntax do but god im sure I would struggle to replicate it lol
or try this```js
RecipeViewerEvents.addEntries('item', event => {
event.add(Ingredient.of('@forbidden_arcanus').itemIds);
});
ok now the weird part it show the item but not the recipy but hey thats a huge upgrade
ive got a weird question but do you think its possible to make it list all item from each mod without having to manually list the 400 mods in the pack ?
If there are No items in JEI somethingis very wronf
There's probably Like an incompatible / Bad mod
But it would be Ingredient.all.itemIds.forEach(...)
the fun part is the recipy work but isnt showing on jei thats why im trying to add it back with a script
yeah as said something is very wrong then
if this is for both items and recipes there must be some bad mod
can you send like a latest.log file or debug.log file
without the script active ?
shouldn't really matter, but yeah deactivate it
did you enter a world? if not could you do so as I think that's when most jei stuff is loaded
Paste version of debug.log, latest.log from @wanton quiver
RecipeViewerEvents.addEntries('item', event => {
event.add(Ingredient.all.itemIds.forEach(...));
}); so like this ?
also thanks for the all the help
