Hidding Items in NEI

raymondbh

New Member
Jul 29, 2019
12
0
0
Hi all
I am working on a modpack, and I would like to remove/hide certain items/blocks from the NEI "panel". Is there an easy way to do this? Or maybe ha hard way?
 

jordsta95

New Member
Jul 29, 2019
5,056
-4
1
You create a separate script in your scripts folder just for NEI (because it doesn't work on servers)

And do:

Code:
import mods.nei.NEI;

NEI.hide(<minecraft:diamond>);
NEI.hide(<minecraft:bread>);
This example hides diamonds and bread
 

raymondbh

New Member
Jul 29, 2019
12
0
0
@jordsta95 thank's! but that did not work for me... do the script file need to be named in a special to make it load?
Using CCC 1.0.2.9 and NEI 1.0.2.15 and MT3 3.0.9B (Forge 1.7.10-10.13.2.1230)
 
  • Like
Reactions: krazy_kow

jordsta95

New Member
Jul 29, 2019
5,056
-4
1
You need the script file to be named something like:
NEI.zs
(the only thing that matters is the extension)

and that needs to be in the scripts folder (which you need to create alongside the mods and configs folders)
 

raymondbh

New Member
Jul 29, 2019
12
0
0
You need the script file to be named something like:
NEI.zs
(the only thing that matters is the extension)

and that needs to be in the scripts folder (which you need to create alongside the mods and configs folders)

The extention did the trick! Thank you very much! :D
 

raymondbh

New Member
Jul 29, 2019
12
0
0
You create a separate script in your scripts folder just for NEI (because it doesn't work on servers)

And do:

Code:
import mods.nei.NEI;

NEI.hide(<minecraft:diamond>);
NEI.hide(<minecraft:bread>);
This example hides diamonds and bread

I have to bother you again @jordsta95. Can you do this for blocks with metadata to? like the different planks that have the same ID but different meta?
Name ID meta has NBT Display name
minecraft:planks 5 1 false Spruce Wood Planks
minecraft:planks 5 2 false Birch Wood Planks
minecraft:planks 5 3 false Jungle Wood Planks
minecraft:planks 5 4 false Acacia Wood Planks
minecraft:planks 5 5 false Dark Oak Wood Planks
 

jordsta95

New Member
Jul 29, 2019
5,056
-4
1
Yes... assuming you are using 1.7 the code would be:
Code:
NEI.hide(<minecraft:planks>); 
NEI.hide(<minecraft:planks:*>);
And that would hide all planks
But if you want to do it in 1.6, and that method doesn't work:
Code:
NEI.hide(<5>);
NEI.hide(<5:*>);
Should work :)
 

Ricky840

New Member
Apr 4, 2021
1
0
2
Yes... assuming you are using 1.7 the code would be:
Code:
NEI.hide(<minecraft:planks>);
NEI.hide(<minecraft:planks:*>);
And that would hide all planks
But if you want to do it in 1.6, and that method doesn't work:
Code:
NEI.hide(<5>);
NEI.hide(<5:*>);
Should work :)
The 1.6 version did not work. It says "symbol NEI not found".