Using the player as a dependency

Started by Purple1988 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Using the player as a dependency
Mon, 10/11/2021 - 19:39 (edited)

I am making a mod that lets you lace a dagger with poison.

and the procedure is to add the effects then remove the laced dagger and then add the regular dagger to the player's inventory when the player hits a mob with it.

But the problem is that the dependency blocks don't include the player.

I have tried all of them, Event/target entity, Source entity, Immediate source entity, and the Entity iterator.

Sorry if it is obvious I am new to making procedures

 

(solved)

 

Edited by Purple1988 on Mon, 10/11/2021 - 19:39
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nvm  the first time I tested…
Mon, 10/11/2021 - 19:36

nvm 

the first time I tested it, it said "gave Dev 1 [Laced Dagger]"

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so, it works?
Mon, 10/11/2021 - 20:06

so, it works?