Skip to content

Instantly share code, notes, and snippets.

@triphion
Created October 9, 2017 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save triphion/46d58db390127e2a0d14e1a2132e1d9e to your computer and use it in GitHub Desktop.
Save triphion/46d58db390127e2a0d14e1a2132e1d9e to your computer and use it in GitHub Desktop.
package com.triphion.ancient.handlers;
import net.minecraftforge.event.LootTableLoadEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
public class ModEventHandler
{
@SubscribeEvent
public void lootLoad(LootTableLoadEvent evt) {
if (evt.getName().toString().equals("minecraft:chests/simple_dungeon")) {
/* do stuff with evt.getTable() like
LootTable table = evt.getTable();
LootTable merge = MyCustomTable;
table.mergePool(merge.getPool("main");
evt.setTable(table);
*/
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment