cinsiian Posted November 9, 2019 Share Posted November 9, 2019 (edited) How can I remove a vanilla loot pool? It needs a name but i cant figure out wich name: @SubscribeEvent public static void loot(LootTableLoadEvent event) { ResourceLocation iron = new ResourceLocation("minecraft", "blocks/iron_ore"); ResourceLocation gold = new ResourceLocation("minecraft", "blocks/gold_ore"); if(event.getName().equals(iron)) { event.getTable().removePool("minecraft:iron_ore"); event.getTable().addPool(LootPool.builder().addEntry(TableLootEntry.builder(new ResourceLocation(ortonogeum.INSTANCE.assets.name, "blocks/ore_iron"))).build()); } if(event.getName().equals(gold)) { event.getTable().addPool(LootPool.builder().addEntry(TableLootEntry.builder(new ResourceLocation(ortonogeum.INSTANCE.assets.name, "blocks/ore_gold"))).build()); } } event.getTable().removePool Thank you so much Edited November 10, 2019 by cinsiian Quote Link to comment Share on other sites More sharing options...
cinsiian Posted November 10, 2019 Author Share Posted November 10, 2019 bump Quote Link to comment Share on other sites More sharing options...
cinsiian Posted November 10, 2019 Author Share Posted November 10, 2019 Does it needs the file name? Quote Link to comment Share on other sites More sharing options...
Legenes Posted November 10, 2019 Share Posted November 10, 2019 Put the loot table's file in to you mod's data/minecraft/loot_tables/ folder with the same name, but make it drop something you want, or nothing. You're basically able to overwrite already existing files in minecraft, if I'm correct. Quote procedure WakeMeUp(Integer plusTime); var I: Integer; begin for I := 0 to plusTime do begin println('One more minute!'); Sleep(1000); end; println('Okay, nothing to worry, I''m alive!'); println('So... somebody can give me a coffee?'); println('I know it''s Pascal, and not Java, but I love it :D.'); end; Link to comment Share on other sites More sharing options...
cinsiian Posted November 10, 2019 Author Share Posted November 10, 2019 Thank you, i will do that. But what if its replaced by another mod? Maybe with the event would be better. Quote Link to comment Share on other sites More sharing options...
Draco18s Posted November 10, 2019 Share Posted November 10, 2019 3 hours ago, cinsiian said: But what if its replaced by another mod? See this comment: https://github.com/MinecraftForge/MinecraftForge/pull/5871#issuecomment-542697064 Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.