{"action":"created","issue":{"url":"https://api.github.com/repos/stanhebben/MineTweaker/issues/32","labels_url":"https://api.github.com/repos/stanhebben/MineTweaker/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/stanhebben/MineTweaker/issues/32/comments","events_url":"https://api.github.com/repos/stanhebben/MineTweaker/issues/32/events","html_url":"https://github.com/stanhebben/MineTweaker/issues/32","id":74512534,"number":32,"title":"Recipe removal quirk","user":{"login":"PitchBright","id":8009866,"avatar_url":"https://avatars.githubusercontent.com/u/8009866?v=3","gravatar_id":"","url":"https://api.github.com/users/PitchBright","html_url":"https://github.com/PitchBright","followers_url":"https://api.github.com/users/PitchBright/followers","following_url":"https://api.github.com/users/PitchBright/following{/other_user}","gists_url":"https://api.github.com/users/PitchBright/gists{/gist_id}","starred_url":"https://api.github.com/users/PitchBright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PitchBright/subscriptions","organizations_url":"https://api.github.com/users/PitchBright/orgs","repos_url":"https://api.github.com/users/PitchBright/repos","events_url":"https://api.github.com/users/PitchBright/events{/privacy}","received_events_url":"https://api.github.com/users/PitchBright/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-08T22:15:47Z","updated_at":"2015-05-09T00:17:42Z","closed_at":null,"body":"If I do this:\r\n\r\nrecipes.addShapeless(<minecraft:dye:0> * 4, [<minecraft:bone>, <minecraft:coal:1>, <Metallurgy:tar>, <Aquaculture:item.Fish:*>, <minecraft:potion:0>.transformReplace(<minecraft:glass_bottle>)]);\r\n\r\nrecipes.removeShapeless(<minecraft:dye:0>, [<minecraft:bone>, <minecraft:coal:1>, <Metallurgy:tar>, <Aquaculture:item.Fish:13>, <minecraft:potion:0>]);\r\n\r\nI'm expecting Aquaculture:item.Fish:13 to be removed from the original recipe, leaving all the other Aquaculture:item.Fish:* in full effect… but Aquaculture:item.Fish:13 remains in the recipe for some reason.\r\n\r\nOr am I doing it wrong? "},"comment":{"url":"https://api.github.com/repos/stanhebben/MineTweaker/issues/comments/100397577","html_url":"https://github.com/stanhebben/MineTweaker/issues/32#issuecomment-100397577","issue_url":"https://api.github.com/repos/stanhebben/MineTweaker/issues/32","id":100397577,"user":{"login":"copygirl","id":272586,"avatar_url":"https://avatars.githubusercontent.com/u/272586?v=3","gravatar_id":"","url":"https://api.github.com/users/copygirl","html_url":"https://github.com/copygirl","followers_url":"https://api.github.com/users/copygirl/followers","following_url":"https://api.github.com/users/copygirl/following{/other_user}","gists_url":"https://api.github.com/users/copygirl/gists{/gist_id}","starred_url":"https://api.github.com/users/copygirl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copygirl/subscriptions","organizations_url":"https://api.github.com/users/copygirl/orgs","repos_url":"https://api.github.com/users/copygirl/repos","events_url":"https://api.github.com/users/copygirl/events{/privacy}","received_events_url":"https://api.github.com/users/copygirl/received_events","type":"User","site_admin":false},"created_at":"2015-05-09T00:17:42Z","updated_at":"2015-05-09T00:17:42Z","body":"You are indeed doing it wrong. What you're doing is trying to remove a specific recipe (of which there is only one, not one per type of fish) which contains ```Aquaculture:item.Fish:13``` in the ingredients.\r\n\r\nFortunately there's two ways (that I can think of) to do this: Either add separate recipes for each type of fish or creating a new ore dictionary entry (for example \"anyFish\", or \"aquacultureFish\") and then creating a single recipe. No, you're not going to have to do this manually:\r\n\r\n#### Setup\r\n```\r\nimport minetweaker.item.IItemStack;\r\nvar allFish = [\r\n    <Aquaculture:item.Fish:0>,\r\n    <Aquaculture:item.Fish:1>,\r\n    <Aquaculture:item.Fish:2>,\r\n    <Aquaculture:item.Fish:3>,\r\n    ...\r\n    <Aquaculture:item.Fish:12>,\r\n    <Aquaculture:item.Fish:14>,\r\n    <Aquaculture:item.Fish:15>\r\n  ] as IItemStack[];\r\n```\r\n#### Option 1\r\n```\r\nvar anyFish = <ore:anyFish>; // This creates a new ore dictionary entry.\r\nfor i, fish in allFish { // Go through everything in the list of fish.\r\n  anyFish.add(fish); // Add each fish to the ore dictionary entry.\r\n}\r\n// Now create a recipe using \"anyFish\" or \"<ore:anyFish>\".\r\n```\r\n#### Option 2\r\n```\r\nfor i, fish in allFish { // Go through everything in the list of fish.\r\n  // Create a recipe using \"fish\" as an ingredient.\r\n}\r\n```\r\n\r\nNot sure if it's possible to make a traditional for loop, it might decrease the number of lines needed. Though this is a pretty general example which can be applied to make all kinds of neat things. For example I used it to make recipes that [increase the plank / stick output when crafting an axe with logs / planks.](https://gist.github.com/copygirl/f4e9dfebdf51f29c28a4)"}}