Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create Int[] in tag #35

Open
TechnicianLP opened this issue Aug 13, 2015 · 1 comment
Open

Unable to create Int[] in tag #35

TechnicianLP opened this issue Aug 13, 2015 · 1 comment

Comments

@TechnicianLP
Copy link

NEI.hide(appliedenergistics2:item.ItemFacade:*);
NEI.addEntry(appliedenergistics2:item.ItemFacade:0.withTag({itemname:"log", modid:"minecraft", x:[17,0]}));

using this code to only show one type of facade in NEI; the x-tag hast to be an int[] but it gets interpreted as List which crashes the game to desktop when puttig the item into the inventory; when using the give-commmand with the same tag it gets interpreted as an int[] which the works

so it would be neat to have some syntax to determine this is an array or this is an list ...

@stanhebben
Copy link
Owner

You're in the old minetweaker repo.

But to answer your question, such syntax already exists:

NEI.addEntry(appliedenergistics2:item.ItemFacade:0.withTag({itemname:"log", modid:"minecraft", x:[17,0] as int[]}));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants