Entity picks up item event set to a specific item only?

Started by Hijitori on Mon, 11/23/2020 - 17:51

Topic category: Help with modding (Java Edition)

Last seen on 18:09, 11. Mar 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Entity picks up item event set to a specific item only?
Mon, 11/23/2020 - 17:51

I want my item to play a sound when player picks it up.

I created a Procedure, set Trigger Event to "Entity picks up item" and saved the Procedure in my specific item's "When in inventory tick".

Then when I have the item in my inventory, any item which I pick makes the sound, so I need to specify somehow the item which I want to make the sound. How?

Last seen on 22:12, 18. May 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Another idea is to make the…
Mon, 11/23/2020 - 18:19

Another idea is to make the sound play when player has it in inventory. To not make it sound constantly try with the repeat blocks. Hope it helps!

Last seen on 21:41, 6. Jan 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Use: if provided itemstack …
Mon, 11/23/2020 - 19:37

Use:

  • if provided itemstack = [custom item]:
    • {play the sound}
Last seen on 18:09, 11. Mar 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
(No subject)
Mon, 11/23/2020 - 21:12

This error shows up.

Last seen on 18:09, 11. Mar 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
(No subject)
Mon, 11/23/2020 - 21:14

This error shows up.

Last seen on 18:09, 11. Mar 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I think you mean repeating…
Mon, 11/23/2020 - 21:22

I think you mean repeating command block, but I am not sure how can I use that in this way.

Last seen on 22:12, 18. May 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I meant this:  
Mon, 11/23/2020 - 21:50

I meant this:

 Procedure

Last seen on 22:12, 18. May 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I'm not 100% sure if it will…
Mon, 11/23/2020 - 21:50

I'm not 100% sure if it will work but it should

Last seen on 22:12, 18. May 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
For me it works, idk abt you
Mon, 11/23/2020 - 21:55

For me it works, idk abt you

Last seen on 18:09, 11. Mar 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Unfortunately it still doesn…
Mon, 11/23/2020 - 22:35

Unfortunately it still doesn't work.
I mean with trigger "entity picks up item" - if I have the apple - all items make the sound.
Without trigger "entity picks up item" - if I have the apple - sound spams every tick once again.

Last seen on 22:12, 18. May 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I have tried many ways (I…
Mon, 11/23/2020 - 22:44

I have tried many ways (I have spent almost 1 hour) and I don't find a solution. The only way I found is using repeat blocks but if it doesn't work for you then it's not a solution. (While I was writing this came to mind: how about do the same as I putted in the photo but on extra trigger do player tick update. You should try it, maybe it works.)

Last seen on 18:09, 11. Mar 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
  However my procedure has …
Mon, 11/23/2020 - 22:44

procedure

 

However my procedure has "Has provided entity in inventory" because I couldn't find the "Event/target entity"
I don't know if that's the problem

Last seen on 18:09, 11. Mar 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Still doesn't work with…
Mon, 11/23/2020 - 23:02

Still doesn't work with event trigger "On player tick update" and with being in item's "When item in inventory tick".
I hope there is some way to specify only one item event trigger and not all.