Make mobs that can only be hurt by certain weapons?

Started by Finmide on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make mobs that can only be hurt by certain weapons?

I wanted to make mobs that are only hurt by tools of a specific type (In this case Silver tools). How would I go about doing this?

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
1,make a mob that only hurt…
Thu, 03/24/2022 - 09:16

1,make a mob that only hurt by effect like(silver bane)

2,making sword or specific type deal a effect(silver bane) in entity and your done

 

 

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
  now you done  
Thu, 03/24/2022 - 09:30

12 34

now you done

 

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
much easier.....on entity…
Thu, 03/24/2022 - 10:36

much easier.....on entity trigger is hurt: if source entity not in main hand = your item then cancel trigger

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ah so like an enchant…
Sat, 03/26/2022 - 15:59

ah so like an enchant essentialy but silver swords automatically have that effect and dont need to be enchanted

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
or maybe I could also make…
Sat, 03/26/2022 - 16:18

or maybe I could also make it so it looks for items with specific tags