Good and Evil

Started by SoKoi- on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Aug 2020
Points:
634

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
Good and Evil

Is there a way to make it so when a player clicks a button in a gui, it makes the player only able to kill and tame certain mobs. Like if the player chose between good and evil, and chose good. Is there a way to make it where they can only kill aggressive mobs and not passive ones?

Active 4 years ago
Joined Dec 2019
Points:
968

User statistics:

  • Modifications: 1
  • Forum topics: 36
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 263
Hmmmmm what you could do is…
Wed, 11/18/2020 - 21:29

Hmmmmm what you could do is set up an advancement and when you get the advancement you can do damage to certain mobs but I’m not sure how to do mobs part just the advancement 

Active 4 years ago
Joined Aug 2020
Points:
634

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
Awesome! That's half of the…
Wed, 11/18/2020 - 22:51

Awesome! That's half of the mechanic and another mechanic done. Now to figure out the mob part...

Active 4 years ago
Joined Aug 2020
Points:
634

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
Wait I think I got it. I'll…
Thu, 11/19/2020 - 21:47

Wait I think I got it. I'll just make it where they can be killed they just cant be tamed or captured, since I have an item that can capture the mob specifically.

 

Active 3 years ago
Joined Nov 2018
Points:
980

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 571
Cancel the death event if…
Sun, 11/22/2020 - 18:55

Cancel the death event if source entity has NBT tag.