Posted November 9, 20195 yr 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, 20195 yr by cinsiian
November 10, 20195 yr 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. 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;
November 10, 20195 yr Author Thank you, i will do that. But what if its replaced by another mod? Maybe with the event would be better.
November 10, 20195 yr 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 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.
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.