Difference between revisions of "Mods:NEI Support"

From MineTweaker 3
Jump to: navigation, search
Line 9: Line 9:
 
  NEI.overrideName(<minecraft:stick>, "Sticky");
 
  NEI.overrideName(<minecraft:stick>, "Sticky");
  
These are the only methods. Enjoy! :)
+
These are the only NEI functions available. Enjoy! :)

Revision as of 19:43, 22 June 2014

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! :)