Help with damaging mob

Started by CocoJ95 on

Topic category: Help with MCreator software

Active 2 years ago
Joined Jul 2023
Points:
207

User statistics:

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

Active 1 year ago
Joined Mar 2020
Points:
763

User statistics:

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

Active 2 years ago
Joined Jul 2023
Points:
207

User statistics:

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

Active 1 year ago
Joined Mar 2020
Points:
763

User statistics:

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

is your item a tool or item?

Active 2 years ago
Joined Jul 2023
Points:
207

User statistics:

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

A tool

Active 1 year ago
Joined Mar 2020
Points:
763

User statistics:

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

 

Active 1 year ago
Joined Mar 2020
Points:
763

User statistics:

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

yes