[Help] Making an Item Drop Config Whitelist

Started by WyrmBones on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Help] Making an Item Drop Config Whitelist

Apologies if this is the wrong forum section!

My mod concept is essentially to get a new item to drop from existing mobs. I have figured out how to use MCreator to create a procedure to make the item drop. I've also figured out how to use NerdyPuzzle's Configuration Files plugin to create a config to control the drop rate chance. However I would love some help in figuring out how to make a config whitelist to use the config file to decide what mobs the item can drop from (primarily so users could have the option to add new mobs to the drop list).

 

My procedure is currently:

Event trigger - Entity Dies
If Random [0,1) ≤ Get number variable config AND is enitity subtype of ≠ is entity a child
do Drop item

 

I'm using MCreator 2024.3 & Config File plugin 2.3.1

I'm very new to using MCreator and creating mods so I apologies if I struggle to understand any explanations.