Sword right click hits me & not the monsters

Started by Raito099 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sword right click hits me & not the monsters

I tried making my sword have a special ability on right click, it works but it hits me and never the monster. here is where i am (sorry it's pretty basic i suck at this i am new i'm trying my best sorry sorry)

(I'm also trying with the damage source plugin but i don't think I understand it)
(If you have a fix please show image it would help a ton <3 <3)

https://ibb.co/3cnw8fM

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do you have it used in Right…
Sat, 10/28/2023 - 08:31

Do you have it used in Right click in Air or right click on mob? If you set it to right click overall, the Target/Event Entity will be you.

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do yo uset it to attack…
Sat, 10/28/2023 - 19:08

How do yo uset it to attack air ? Can you give me a quick rundown on that ? :o

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can see what i've done…
Sat, 10/28/2023 - 19:08

You can see what i've done on the image linked !

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how does this activate?  
Mon, 10/30/2023 - 08:39

how does this activate?

 

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
when i right click with my…
Mon, 10/30/2023 - 14:14

when i right click with my sword, it activates. but the damage are spawning right on me and not on any monster when they are targeted

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You Need To Make A Procedure…
Mon, 10/30/2023 - 18:08

You Need To Make A Procedure To Item Named Right Click On Entity Not Just Right Click Or Right Click On Block

 

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i do that ? i can…
Tue, 10/31/2023 - 10:22

How do i do that ? i can only add trigger on right click (entity pos) or right clicked on block ?

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
.....Help D:
Wed, 11/01/2023 - 13:33

.....Help D:

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need to create a new…
Mon, 03/18/2024 - 06:54

You need to create a new procedure with the trigger "When player right clicks on an entity". 

Then do the following:

If the item in the source entity's main hand = Sword (your item), then deal damage to the event/target entity (or any other ability)