LootTweaker

LootTweaker

17M Downloads

Script problem

scalda opened this issue · 4 comments

commented

Hi,

I am wondering if you can tell me why my script keeps throwing the below error?
CraftTweaker-1.10.2-3.0.16.jar
LootTweaker-1.10.2-0.0.4.jar

`import loottweaker.vanilla.loot.LootTables;
import loottweaker.vanilla.loot.LootTable;
import loottweaker.vanilla.loot.LootPool;

val simple_dungeon = LootTables.getTable("minecraft:chests/simple_dungeon");

//simple_dungeon
simple_dungeon.removeItemEntry(minecraft:bone);`

error

regards

scalda

commented

@scalda if you solve your own issue it is common courtesy to close it ypurself with the resolution for others incase they have the same issue.

Not being a complete fuck-tard to people who are helping you.

commented

@bookerthegeek Please do not use insults.
@scalda As booker said, it is common courtesy to leave the solution for others.

commented

removeItemEntry is a method of LootPool, not LootTable.
LootTables contain LootPools. LootPools contain LootEntries. Use table.getPool(poolName) to get a particular LootPool from a LootTable.

commented