Posted August 29, 20223 yr Hello, I recently got into Minecraft modding so sorry if this isn't the best place or correct format. I am trying to add a drop to all mobs but I cannot find good documentation on loot conditions. I followed a tutorial on how to use global loot modifiers and I was able to add it to the zombie loot pool. I tried removing the conditions entirely but that meant it was dropped when mining blocks. Below is the condition I currently have, if someone could suggest what to do or where I would be able to find a list of conditions I would greatly appreciate that. "conditions": [ { "condition": "forge:loot_table_id", "loot_table_id": "minecraft:entities/zombie" }
August 29, 20223 yr You should be able to do this with the LootItemEntityPropertyCondition using EntityPredicate#ANY (to allow this GLM on all Entites) and EntityTarget#THIS to use the killed Entity as target. You also can take a look at this FCW page for GLMs.
August 29, 20223 yr Look within `LootItemConditions` for vanilla conditions prefixed with `minecraft:` and `ForgeMod#registerLootData` for Forge conditions. You can look at the wiki articles written for vanilla and Forge as well.
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.