Posted December 12, 201411 yr Hello. I am trying to create a mob that, on death, drops a bunch of dungeon loot items (like what you would find in a regular dungeon chest), but I'm kind of stuck on the get loot/drop loot part. I figure something like : - Mob death - Get random dungeon loot (DungeonHooks ?) - Convert to inventory (ItemStack[] ?) - Scatter loot like in player death I am not sure how to go about coding the middle two steps. Can somebody help me? My mods: http://www.curse.com/mc-mods/minecraft/225548-greenscreen http://mods.curse.com/mc-mods/minecraft/238981-cash-craft
December 12, 201411 yr The items is very easy, world.spawnEntityInWorld(new EntityItem(stackToDrop)); Now getting the right loot...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.