Sword right click hits me & not the monsters

Started by Raito099 on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Oct 2023
Points:
90

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
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

Active 4 months ago
Joined Oct 2023
Points:
99

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 25
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.

Active 1 year ago
Joined Oct 2023
Points:
90

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
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

Active 1 year ago
Joined Oct 2023
Points:
90

User statistics:

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

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

Active 2 months ago
Joined Jun 2023
Points:
145

User statistics:

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

how does this activate?

 

Active 1 year ago
Joined Oct 2023
Points:
90

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
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

Active 10 months ago
Joined Oct 2023
Points:
92

User statistics:

  • Modifications: 1
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
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

 

Active 1 year ago
Joined Oct 2023
Points:
90

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
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 ?

Active 1 year ago
Joined Oct 2023
Points:
90

User statistics:

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

.....Help D:

Active 1 week ago
Joined Apr 2023
Points:
206

User statistics:

  • Modifications: 0
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 18
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)