Using the player as a dependency

Started by Purple1988 on Mon, 10/04/2021 - 16:06

Topic category: Troubleshooting, bugs, and solutions

Last seen on 02:05, 17. Nov 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Using the player as a dependency
Thu, 10/14/2021 - 01:23 (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 Thu, 10/14/2021 - 01:23
Last seen on 02:37, 15. Oct 2021
Joined Sep 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
The player is usually the…
Wed, 10/13/2021 - 07:28

The player is usually the event/target entity, but if you want to replace an item, I would try using this block - set 1 (item) in slot 0 of provided itemstack if it has inventory