[1.12.2] Help With Loot
GWSheridan opened this issue ยท 7 comments
Trying to add loot to a mob but i seem to have hit a snag. This what i have tried
import loottweaker.vanilla.loot.LootTables;
import loottweaker.vanilla.loot.LootTable;
import loottweaker.vanilla.loot.LootPool;
import loottweaker.vanilla.loot.Functions;
//add leather
val blazing_juggernautTable = LootTables.getTable("primitivemobs:entities/blazing_juggernaut");
val blazing_juggernautPool = blazing_juggernautTable.addPool("leather", 0, 1, 0, 0);
val leather = minecraft:leather;
blazing_juggernautPool.addItemEntry(leather, 1);
Then I tried this way
import loottweaker.vanilla.loot.LootTables;
import loottweaker.vanilla.loot.LootTable;
import loottweaker.vanilla.loot.LootPool;
import loottweaker.vanilla.loot.Functions;
//Value
val blazing_juggernautTable = LootTables.getTable("primitivemobs:entities/blazing_juggernaut");
blazing_juggernaut.addPool("loot", 3, 64, 0, 0);
val blazingloot = blazing_juggernaut.getPool("loot");
blazingloot.addItemEntry(minecraft:leather, 1);
LootTweaker: 1.12-0.0.6.5
CraftTweaker/Minetweaker: 1.12-4.0.12
Forge: 14.23.1.2583
Minecraft: 1.12.2
Oh right, < & > symbols are part of markdown syntax, so you you usually need to escape them. It's better to use a paste site like pastebin or hastebin. Don't screenshot text, then it can't be copy-pasted. Instead it has to be typed out manually, which is time consuming and annoying.
Now, what exactly doesn't work? You've just given me a script, and told me "i seem to have hit a snag", so I have no idea what your problem is.
Okay sorry for that
The problem in having is the to syntax i have tried will not add leather to a mob for a drop when killed. Either by player or normal death
This is the syntax I have used. 2 version of the syntax an still no drops from the mob
version 1 https://pastebin.com/5d1Rh9hy
version 2 https://pastebin.com/w4Zc7URf
The mob is from primitive mobs version 1.1.4b_beta
LootTweaker: 1.12-0.0.6.5
CraftTweaker/Minetweaker: 1.12-4.0.12
Forge: 14.23.1.2583
Minecraft: 1.12.2
ye have it set out like that. Just dont know how to put it on github like you have just done
Ye im also have problems with recipe changes now
Will keep digging till can find the issue