Jump to content

Recommended Posts

Posted (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 by cinsiian
Posted

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;
Posted
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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.