how do I make an entity with two ranged attacks?

Started by Averagemcreato… on Sat, 07/16/2022 - 14:05

Topic category: Help with modding (Java Edition)

Last seen on 10:21, 1. Oct 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
how do I make an entity with two ranged attacks?
Sat, 07/16/2022 - 14:05

I am making a boss for a mod that has two attacks, and both are ranged attacks, one of them is a regular ranged attack, and the other is a slower attack that only fires every ten seconds. how do I make that without adding another entity?

 

Last seen on 16:12, 3. Oct 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
use tick updates. and…
Sat, 07/16/2022 - 14:25

use tick updates. and instead of waiting ticks just make it tick once in 200 game ticks..

Last seen on 10:21, 1. Oct 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
ok, but how do I make the…
Sat, 07/16/2022 - 14:51

ok, but how do I make the entity target and aim at the player before making it fire?

Last seen on 10:21, 1. Oct 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
also it needs to use the…
Sat, 07/16/2022 - 14:51

also it needs to use the secondary attack only when there's a player who can be targeted