if right clicked on a specific entity with item remove the item and give a other item

Started by AntekGames2013 on

Topic category: Help with modding (Java Edition)

Last seen on 12:17, 23. May 2024
Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if right clicked on a specific entity with item remove the item and give a other item

i though il just do

 

if | is event target entity of sub type

do | remove 1 item from target inventory

      | add 1 item to target inventory

 

but it didnt work, i put the procedure in the items procedures.

can anyone help?