{"action":"created","issue":{"url":"https://api.github.com/repos/Electroblob77/Wizardry/issues/32","repository_url":"https://api.github.com/repos/Electroblob77/Wizardry","labels_url":"https://api.github.com/repos/Electroblob77/Wizardry/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/Electroblob77/Wizardry/issues/32/comments","events_url":"https://api.github.com/repos/Electroblob77/Wizardry/issues/32/events","html_url":"https://github.com/Electroblob77/Wizardry/issues/32","id":322515968,"number":32,"title":"Using the \"elements\" tag of the \"ebwizardry:random_spell\" function in the loot table causes a crash when opening the chest.","user":{"login":"belathus","id":3826783,"avatar_url":"https://avatars0.githubusercontent.com/u/3826783?v=4","gravatar_id":"","url":"https://api.github.com/users/belathus","html_url":"https://github.com/belathus","followers_url":"https://api.github.com/users/belathus/followers","following_url":"https://api.github.com/users/belathus/following{/other_user}","gists_url":"https://api.github.com/users/belathus/gists{/gist_id}","starred_url":"https://api.github.com/users/belathus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belathus/subscriptions","organizations_url":"https://api.github.com/users/belathus/orgs","repos_url":"https://api.github.com/users/belathus/repos","events_url":"https://api.github.com/users/belathus/events{/privacy}","received_events_url":"https://api.github.com/users/belathus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-12T14:32:02Z","updated_at":"2018-05-13T09:54:03Z","closed_at":null,"author_association":"NONE","body":"Minecraft version: 1.12.2\r\nWizardry version: 4.1.1\r\nEnvironment: Singleplayer\r\n\r\n### Issue details:\r\nCrash when opening a chest with a modified loot table using the \"elements\" tag:\r\n```\r\n{\"function\": \"ebwizardry:random_spell\", \"elements\":[\"necromancy\"], \"tiers\":[\"basic\"]}\r\n```\r\nFor reference, I'm using LootTweaker to modify the loot tables. I tested the loot table after restarting the world by using a command:\r\n```\r\n/blockdata ~ ~ ~ {LootTable:\"twilightforest:structures/tower_library/tower_library\"}\r\n```\r\nReplace the \"~ ~ ~\" with the coordinates of a chest, of course. Omitting the \"elements\" tag seems to work fine.\r\n\r\n### Other mods involved:\r\nLootTweaker\r\nThe script I'm using is here, with the relevant lines commented out: https://github.com/belathus/Wanderlust-Renewed/blob/master/scripts/loot/twilightforest/lich_library.zs\r\n\r\n### Link to crash report (if applicable):\r\nhttps://gist.github.com/belathus/cef1d7228dc2278331693e6f98082d31\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Electroblob77/Wizardry/issues/comments/388614677","html_url":"https://github.com/Electroblob77/Wizardry/issues/32#issuecomment-388614677","issue_url":"https://api.github.com/repos/Electroblob77/Wizardry/issues/32","id":388614677,"user":{"login":"Electroblob77","id":35599699,"avatar_url":"https://avatars1.githubusercontent.com/u/35599699?v=4","gravatar_id":"","url":"https://api.github.com/users/Electroblob77","html_url":"https://github.com/Electroblob77","followers_url":"https://api.github.com/users/Electroblob77/followers","following_url":"https://api.github.com/users/Electroblob77/following{/other_user}","gists_url":"https://api.github.com/users/Electroblob77/gists{/gist_id}","starred_url":"https://api.github.com/users/Electroblob77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Electroblob77/subscriptions","organizations_url":"https://api.github.com/users/Electroblob77/orgs","repos_url":"https://api.github.com/users/Electroblob77/repos","events_url":"https://api.github.com/users/Electroblob77/events{/privacy}","received_events_url":"https://api.github.com/users/Electroblob77/received_events","type":"User","site_admin":false},"created_at":"2018-05-13T09:54:03Z","updated_at":"2018-05-13T09:54:03Z","author_association":"OWNER","body":"Well that was very stupid of me, I've managed to write tiers instead of elements on that line of code. Thanks for reporting this, I'll get it fixed for the next patch."}}
{"actor":{"display_login":"Electroblob77"}}