Help with damaging mob

Started by CocoJ95 on

Topic category: Help with MCreator software

Last seen on 20:43, 7. Jul 2023
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with damaging mob

I am attempting to make a dagger item that you can duel wield and deal damage with in your offhand. With my current code it damages me (the player) instead. Image attached below. Can someone help me make it so it damages mobs and enemy players?

 

https://drive.google.com/file/d/1FJ7XWuMolpah6jfnDjSck6Anvi7bTJk9/view?usp=sharing 

Last seen on 20:36, 19. Jun 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
On the deal damage block,…
Tue, 07/04/2023 - 19:40

On the deal damage block, put source entity instead of event/target entity then it should work

Last seen on 20:43, 7. Jul 2023
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it shows an error of the…
Wed, 07/05/2023 - 19:29

it shows an error of the item the procedure is linked to. It says "Missing Dependencies" how do i fix this?

Last seen on 20:36, 19. Jun 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is your item a tool or item?
Wed, 07/05/2023 - 22:31

is your item a tool or item?

Last seen on 20:43, 7. Jul 2023
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
A tool
Wed, 07/05/2023 - 23:13

A tool

Last seen on 20:36, 19. Jun 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on the return "true" block,…
Thu, 07/06/2023 - 17:27

on the return "true" block, change it to false and put another one inside the "if" block and put it true

 

Last seen on 20:36, 19. Jun 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes  
Sun, 07/09/2023 - 16:30

yes