In Control!

In Control!

72M Downloads

Drop only if not on specific block

Boolyman opened this issue ยท 1 comments

commented

I am trying to remove a specific item from the loot drops of a mob only IF they are standing on top of a specific block. I am trying to prevent the drops of powerful items when the mob is killed in a mob farm. Unfortunately, so many mods include blocks that simulate the mob being killed by a player, that the "player, true" boolean doesn't really help. So I would like to remove specific drops from the loot only if the mob is standing on top of "darkutilities:player_trap" or a similar block that I specify.

Could you help me with an example syntax if this is even possible? I am struggling to form a syntax that adds a true boolean for the drop, but a false boolean for the condition of not being on a specific block.

commented

Sorry for slow reply. Not sure if this is still relevant:

Doesn't this work?

  {
    "mob": "minecraft:blaze",
   "block": "blabla",
    "remove": "minecraft:blaze_rod"
  },