Wizardry icon indicating copy to clipboard operation
Wizardry copied to clipboard

Evil wizard drop table

Open binh3012 opened this issue 4 years ago • 4 comments

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.

binh3012 avatar Mar 24 '20 09:03 binh3012

https://github.com/davidmaamoaix/TinyMobFarm/issues/11

binh3012 avatar Mar 24 '20 09:03 binh3012

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?

Electroblob77 avatar Mar 31 '20 18:03 Electroblob77

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.

davidmaamoaix avatar Apr 04 '20 05:04 davidmaamoaix

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.

Electroblob77 avatar Apr 18 '20 16:04 Electroblob77