Need help with Loot Table that shouldn't overwrite vanilla mobs.

Started by Riodroid124 on

Topic category: Help with modding (Java Edition)

Last seen on 19:56, 13. Apr 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help with Loot Table that shouldn't overwrite vanilla mobs.

I've added a rare drop to the Wither boss mob by creating a Loot Table under the Minecraft namespace.

Which should over-ride it's vanilla Loot Table.., but it didn't.

This is exactly what I wanted, so no problems there.

But when I tried it on other mobs, it did replace the vanilla Loot Table.

When I tried the Mod namespace for the creeper, the modded item didn't drop at all.

I did set the drop chance to always drop for testing purposes off course.

So the question is: how do I "ADD" a drop chance??

Minecraft namespace replaces vanilla & Mod namespace doesn't use the new Loot Table.

 

Last seen on 19:56, 13. Apr 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I solved it by making the…
Mon, 11/08/2021 - 05:14

I solved it by making the added loot a Procedure rather then a Loot Table.

use an ''IF do'' statement and check for ''(sub)type of''.

Add another ''IF do'' statement and a ''<'' (less then) with a random generator and a number if you want it to be a rare drop.

Finally add ''Spawn item/gem'' for the drop itself.

https://imgur.com/a/XWAkrCd

Last seen on 01:22, 14. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i'm trying to do something…
Sat, 11/13/2021 - 11:16

i'm trying to do something similar but with creeper loot when killed by a skeleton. it works as expected but i cant figure out how to make it drop only one item, as the vanilla loot will still drop as well as the loot ive added (dropping two discs instead of one). im trying to do the same thing as you but i actually want it to overwrite normal loot. it doesnt look like theres a way to directly add it to the loot table, so this roundabout method is the only way i can think of doing this. i was just wondering if you had any ideas if it doesnt bother you