Started by
Retronplay
on
Topic category: Help with MCreator software
I've been trying to figure out how to do this. Essentially, I want to change the item in a player's main hand to another item I've made if a specific entity is right-clicked with that specific item. Would greatly appreciate some help.
Make a procedure with global triger 'on entity right cilick' and check if its your entity. Then check if source entity has your spesific item in its main hand. Here's example:
If: is entity (sub)type of spesific_entity
Do: If get item in main hand of source entity = spesific item
Do: (whatever you want)
Yeah, I've made that procedure now. I can't quite figure out how to attach it to my item (The target entity is a vanilla mob). It says it's missing dependencies.
Procedures made with global triggers can't jave missing dependicies so try again but using global triger. If that dosen't work out senf me a screenshot od procedure.
Sorry foto bad grammar : (
Where do I change it to a global trigger (Apologies if this is simple, very new to this)?
While mading procedure without any procedure block you can see green thing. It looks like procedure block but you can't move it.
You need to click on it and set your trigger.
https://imgur.com/a/YFRNaXa
This is what I've got. It doesn't work in game though.
I don't know i'll try to figure it out...
i cannot find "If get item in main hand of source entity = spesific item" procedure block can you help?