Difference between revisions of "Mods:NEI Support"
From MineTweaker 3
(Created page with "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...") |
m (6 revisions imported) |
||
(5 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | ''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 9: | Line 11: | ||
NEI.overrideName(<minecraft:stick>, "Sticky"); | NEI.overrideName(<minecraft:stick>, "Sticky"); | ||
− | 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.'' | ||
+ | ''Additionally, in dedicated servers, there is no NEI support and loading of the file will fail. Put your NEI scripts in a separate file and other files will still load fine.'' |
Latest revision as of 14:36, 12 September 2023
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. Additionally, in dedicated servers, there is no NEI support and loading of the file will fail. Put your NEI scripts in a separate file and other files will still load fine.