Skip to content

Instantly share code, notes, and snippets.

@triphion triphion/ModEventHandler Secret
Created Oct 9, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.