Started by
Purple1988
on
Topic category: Help with Minecraft modding (Java Edition)
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
mob is hit with tool
add potion effect to Event Target Entity: Venom
remove item in main hand of source entity
set item in main hand of source entity to: Dagger_Without_Venom
I tried that but it keeps saying that, it Failed to load dependency source entity for procedure
could I see the Procedure and Triggers tab?
https://ibb.co/cg7HKNg
I don't know what you mean, but here is the procedure
well I don't see why it wouldn't work, just save it
Which trigger you are using ?
you can use the link to see the procedure
https://ibb.co/cg7HKNg
And it is supposed to trigger when a living entity is hit with item
just click save and go to triggers and select it
I already did that
then what's the problem??
I just rebuilt the procedure by scratch, in the exact same way and it worked... somewhat.
now it recognizes the player as the dependency but won't give the dagger back, after taking the poisoned one.
i have a video of it so it is easier to see
https://streamable.com/0q45vy
remove the Add and Remove blocks, and instead use this:
set item in main hand of source entity to:Normal_Dagger
found in Entity Management
Ok that worked but I still need to get rid of the chat message
what