{"action":"opened","issue":{"url":"https://api.github.com/repos/stanhebben/MineTweaker3/issues/299","labels_url":"https://api.github.com/repos/stanhebben/MineTweaker3/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/stanhebben/MineTweaker3/issues/299/comments","events_url":"https://api.github.com/repos/stanhebben/MineTweaker3/issues/299/events","html_url":"https://github.com/stanhebben/MineTweaker3/issues/299","id":124002564,"number":299,"title":"[Request] Try-block style construct","user":{"login":"PrincessRTFM","id":8753564,"avatar_url":"https://avatars.githubusercontent.com/u/8753564?v=3","gravatar_id":"","url":"https://api.github.com/users/PrincessRTFM","html_url":"https://github.com/PrincessRTFM","followers_url":"https://api.github.com/users/PrincessRTFM/followers","following_url":"https://api.github.com/users/PrincessRTFM/following{/other_user}","gists_url":"https://api.github.com/users/PrincessRTFM/gists{/gist_id}","starred_url":"https://api.github.com/users/PrincessRTFM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrincessRTFM/subscriptions","organizations_url":"https://api.github.com/users/PrincessRTFM/orgs","repos_url":"https://api.github.com/users/PrincessRTFM/repos","events_url":"https://api.github.com/users/PrincessRTFM/events{/privacy}","received_events_url":"https://api.github.com/users/PrincessRTFM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-28T00:15:39Z","updated_at":"2015-12-28T00:15:39Z","closed_at":null,"body":"This would mainly be useful for adding tooltips to items without needing a separate file for each mod, in case one is removed. Something like\r\n\r\n```\r\ntry {\r\n\t<mymod:unexplainedItem>.addTooltip(\"Here's how to use this item\");\r\n}\r\ntry {\r\n\t<anothermod:strangeItem>.addTooltip(\"More information on this item\");\r\n}\r\n```\r\n\r\nwhere each try block is separate, and an error in a try block would abort the block (like an error in a file does now) but continue execution outside the block. Obviously, this could be complicated with regards to variables, but I'm hoping it could be worked out. Maybe you couldn't declare a `var` or `val` inside a try block? It's basically a dogwash, cause I can just make a bunch of files, but it'd be a nice thing to have if it's possible."}}