{"action":"created","issue":{"url":"https://api.github.com/repos/Leviathan143/LootTweaker/issues/23","repository_url":"https://api.github.com/repos/Leviathan143/LootTweaker","labels_url":"https://api.github.com/repos/Leviathan143/LootTweaker/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/Leviathan143/LootTweaker/issues/23/comments","events_url":"https://api.github.com/repos/Leviathan143/LootTweaker/issues/23/events","html_url":"https://github.com/Leviathan143/LootTweaker/issues/23","id":237002088,"number":23,"title":"Unable to remove a loot pools and then later add them back with new items","user":{"login":"MisterObvious25","id":19491809,"avatar_url":"https://avatars0.githubusercontent.com/u/19491809?v=3","gravatar_id":"","url":"https://api.github.com/users/MisterObvious25","html_url":"https://github.com/MisterObvious25","followers_url":"https://api.github.com/users/MisterObvious25/followers","following_url":"https://api.github.com/users/MisterObvious25/following{/other_user}","gists_url":"https://api.github.com/users/MisterObvious25/gists{/gist_id}","starred_url":"https://api.github.com/users/MisterObvious25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MisterObvious25/subscriptions","organizations_url":"https://api.github.com/users/MisterObvious25/orgs","repos_url":"https://api.github.com/users/MisterObvious25/repos","events_url":"https://api.github.com/users/MisterObvious25/events{/privacy}","received_events_url":"https://api.github.com/users/MisterObvious25/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-19T19:43:47Z","updated_at":"2017-06-19T19:51:47Z","closed_at":null,"body":"**Description:**\r\n\r\nTrying to use a script to remove all the loot pools in the loot table simple dungeons, then add the pool main back and try to add iron ingot. when using game shows error cannot be executed\r\n\r\nThe item is in \"pool1\", but if i remove the pool, i still cant add the item to another pool, is this intended behavior??\r\n\r\nRemoving the item from pool1, before adding it to my pool \"test\" works, but i was trying to remove the whole to so that i don't need to remove every single item from the pool.\r\n\r\nAlso tried adding simpleDungeon.clear();(with the script below) but that is not working at all.\r\n\r\n**Steps to reproduce:**\r\nAdd script to script directory.\r\nStart the game.\r\nCreate new world.\r\nWorld wont load.\r\n\r\n**Script Used**\r\nimport loottweaker.vanilla.loot.LootTables;\r\nimport loottweaker.vanilla.loot.LootTable;\r\nimport loottweaker.vanilla.loot.LootPool;\r\nimport loottweaker.vanilla.loot.Conditions;\r\nimport loottweaker.vanilla.loot.Functions;\r\n\r\nval simpleDungeon = LootTables.getTable(\"minecraft:chests/simple_dungeon\");\r\n\r\nsimpleDungeon.removePool(\"main\");\r\nsimpleDungeon.removePool(\"pool1\");\r\nsimpleDungeon.removePool(\"pool2\");\r\n//simpleDungeon.removePool(\"ic2\");\r\n//simpleDungeon.removePool(\"forestry_apiculture_bees\");\r\n//simpleDungeon.removePool(\"randomthings:lavaCharm\");\r\n//simpleDungeon.removePool(\"randomthings:summoningPendulum\");\r\n//simpleDungeon.removePool(\"randomthings:magicHood\");\r\n//simpleDungeon.removePool(\"randomthings:slimeCube\");\r\n//simpleDungeon.removePool(\"randomthings:biomeCrystal\");\r\n//simpleDungeon.removePool(\"botania_inject_pool\");\r\n//simpleDungeon.removePool(\"xreliquary_inject_pool\");\r\n\r\nsimpleDungeon.addPool(\"test\", 3, 7, 0, 0);\r\n\r\nval main = simpleDungeon.getPool(\"test\");\r\n\r\ntest.addItemEntry(<minecraft:iron_ingot>, 1, 1);\r\n\r\n**Version Info(Exact versions only):**  \r\nLootTweaker-1.11.2-0.0.6.2.jar\r\nCraftTweaker-1.11.2-3.0.26.jar\r\nforge:1.11.2-13.20.0.2315\r\nMinecraft:1.11.2\r\n\r\n**Logs and other useful information:**\r\nhttps://pastebin.com/ubVXbAFB"},"comment":{"url":"https://api.github.com/repos/Leviathan143/LootTweaker/issues/comments/309553924","html_url":"https://github.com/Leviathan143/LootTweaker/issues/23#issuecomment-309553924","issue_url":"https://api.github.com/repos/Leviathan143/LootTweaker/issues/23","id":309553924,"user":{"login":"Leviathan143","id":10936237,"avatar_url":"https://avatars3.githubusercontent.com/u/10936237?v=3","gravatar_id":"","url":"https://api.github.com/users/Leviathan143","html_url":"https://github.com/Leviathan143","followers_url":"https://api.github.com/users/Leviathan143/followers","following_url":"https://api.github.com/users/Leviathan143/following{/other_user}","gists_url":"https://api.github.com/users/Leviathan143/gists{/gist_id}","starred_url":"https://api.github.com/users/Leviathan143/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leviathan143/subscriptions","organizations_url":"https://api.github.com/users/Leviathan143/orgs","repos_url":"https://api.github.com/users/Leviathan143/repos","events_url":"https://api.github.com/users/Leviathan143/events{/privacy}","received_events_url":"https://api.github.com/users/Leviathan143/received_events","type":"User","site_admin":false},"created_at":"2017-06-19T19:51:47Z","updated_at":"2017-06-19T19:51:47Z","body":"Your script is not valid ZenScript.\r\nThis line is not valid:\r\ntest.addItemEntry(minecraft:iron_ingot, 1, 1);\r\nIt should be\r\ntest.addItemEntry(<minecraft:iron_ingot>, 1, 1);\r\n"}}
{"actor":{"display_login":"Leviathan143"}}