Mob loot with a specific weapon

Started by AsupenChan on

Topic category: Help with Minecraft modding (Java Edition)

Active 5 years ago
Joined Aug 2017
Points:
695

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
Mob loot with a specific weapon

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?

Active 6 years ago
Joined Mar 2016
Points:
841

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 189
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.

Active 6 years ago
Joined Mar 2016
Points:
841

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 189
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