Problem with NEI.addentry
ToyPower opened this issue ยท 4 comments
Description: I wanted to add an item to the nei, apon using NEI.addentry it works at first. But when I then do /mt reload, it breaks and no longer shows. For example NEI.addEntry(minecraft:stick.withTag({display:{Name:"Oak Stick"}})): shows up apon one reload but when I do it again, it disappears along with the original minecraft:stick. I do not know if I am doing anything wrong.
What happens:
When ever I do /mt reload twice anything I did using NEI.addEntry is now gone with whatever part also contains it.
What you expected to happen:
I expected that when I execute this, it generates it in the NEI and stays there without any problem instead of just going away.
Script used (Please Pastebin or gist your script, posting an unpasted or ungist'd script will automatically close this issue):
Minetweaker.log file (Please Pastebin or gist your file, posting an unpasted or ungist'd file will automatically close this issue):
Affected Versions (Do not use "latest"):
- Minecraft: 1.7.10
- Forge: 1.7.10 - 10.13.4.1614
- Crafttweaker: 1.7.10-3.0.11
Your most recent log file where the issue was present:
I already put the two logs you wanted in I do not know what to put here
I also forgot to mention, I also tried the script without NEI.hide in front of NEI.addEntry
... using NEI.addentry it works ...
... I then do /mt reload, it breaks ...
Don't use /mt reload
as that is only supported for the following vanilla minecraft mechanics:
- Crafting
- Furnace
All other issues with that command are not supported. If you can reproduce the issue without using that command please come back and make a new issue. Thank you for the report.
Edit: Also, https://github.com/jaredlll08/CraftTweaker/wiki/MT-Reload
That is unfortunate, given that some mods register their items too late it seems, so in this case I either ignore that, or reload to get that clean but loose the added entries >.<
Is there any way to force CraftTweaker do come in action "at the last minute"?