Electroblob's Wizardry

Electroblob's Wizardry

18M Downloads

Evil wizard drop table

binh3012 opened this issue ยท 4 comments

commented

Minecraft version: 1.12.2
Wizardry version: 4.2.10
Environment: Singleplayer

Issue details: I'm using mob farm from Tiny Mob Farm mod to farm Evil Wizard but it seem to be drop only wrong spell book (Empty Slot).
2020-03-24_16 03 19

Other mods involved: Tiny Mob Farm https://www.curseforge.com/minecraft/mc-mods/tiny-mob-farm

Link to crash report (if applicable): Don't crash.

commented

The book is assigned a spell using the wizard_spell loot function. It may be that this function isn't being triggered, however, it's more likely that the wizard never had any spells in the first place, which might happen if it was spawned artifically. How does tiny mob farm work in this respect? Does it kill existing mobs, or create new ones?

commented

Hello.
In Tiny Mob Farm, loots are generated directly from loot table obtained from EntityLiving#getLootTable, and obtained from LootTable#generateLootForPools.
This is done with an instance of EntityLiving that was previously in the world (and killed after the player attempt to sample it). The loot generation does not involve any killing, but is done by generating loot from the EntityLiving's loot table pool.

commented

Hi, thanks for that information. That's interesting, I wonder if something about the entity not actually being in the world is causing problems? I'll have a look through the code for my loot function.