Using the player as a dependency

Started by Purple1988 on

Topic category: Troubleshooting, bugs, and solutions

Active 3 years ago
Joined Jun 2021
Points:
572

User statistics:

  • Modifications: 0
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
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
Active 3 years ago
Joined Sep 2017
Points:
703

User statistics:

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