Difference between revisions of "Mods:NEI Support"

From MineTweaker 3
Jump to: navigation, search
Line 1: Line 1:
''NOTICE: this page uses the 1.7.2 item names''
+
''NOTICE: this page uses the 1.7+ item names''
  
 
NEI support can be used to hide items in NEI, add a specific item (with specific damage/tag) or to change the item name as displayed with NEI.
 
NEI support can be used to hide items in NEI, add a specific item (with specific damage/tag) or to change the item name as displayed with NEI.
Line 12: Line 12:
  
 
These are the only NEI functions available. Enjoy! :)
 
These are the only NEI functions available. Enjoy! :)
 +
 +
''In 1.6.4, NEI.hide works per item ID. Thus, applying NEI.hide(<item:34>) will hide all items with that name, not only the ones with 34 meta value. This is a NEI API limitation and cannot be fixed.''

Revision as of 12:39, 30 August 2014

NOTICE: this page uses the 1.7+ item names

NEI support can be used to hide items in NEI, add a specific item (with specific damage/tag) or to change the item name as displayed with NEI.

How? Just follow these examples:

import mods.nei.NEI;

NEI.hide(<minecraft:bread>);
NEI.addEntry(<minecraft:bread>.withTag({display: {Name: "Tasty bread", Lore: ["Thanks to MineTweaker,", "We can now have tastier bread"]}}));
NEI.overrideName(<minecraft:stick>, "Sticky");

These are the only NEI functions available. Enjoy! :)

In 1.6.4, NEI.hide works per item ID. Thus, applying NEI.hide(<item:34>) will hide all items with that name, not only the ones with 34 meta value. This is a NEI API limitation and cannot be fixed.