Mob loot with a specific weapon

Started by AsupenChan on Wed, 08/02/2017 - 16:12

Topic category: Help with modding (Java Edition)

Last seen on 18:32, 12. Aug 2019
Joined Aug 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Mob loot with a specific weapon
Wed, 08/02/2017 - 16:12

I am creating a mod in which there are swords infused in blood and for that, it is necessary to collect blood of a certain mob with a certain weapon.
How do I get the mob to drop the item only if it is killed with that weapon?

Last seen on 17:47, 12. May 2018
Joined Mar 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I don't know much about this,
Wed, 08/02/2017 - 21:42

I don't know much about this, but try and mess with variables. Though I think you'll need some coding for this one too, and I have literally no idea how to do that.

Last seen on 17:47, 12. May 2018
Joined Mar 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
RE:I don't know much about this,
Wed, 08/02/2017 - 21:43

Sorry, but I really have no idea how to do it properly, I only can think of variables and coding is far out of my reach