How to have multiple attacks that an entity can do?

Started by noeties on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to have multiple attacks that an entity can do?

Similar to the evoker

Please also explain the code/procedure

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
use a numeric NBT  which…
Wed, 11/24/2021 - 07:06

use a numeric NBT 

which constantly goes upwards

when it reaches certain value

use procedures to make the attack

what evoker does. is similar to this but more improved

it summons several entities. towards his target. these entites have this same value

when it reaches certain value. and an entity is colliding with it. deals damage to that entity

and sometimes summons that annoying winged things

 

be creative with this

is used on almost Every game with a - path attack like -

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what procedure would you use…
Sat, 11/27/2021 - 23:49

what procedure would you use to make it go up

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could use on loaded…
Sun, 12/19/2021 - 06:08

You could use

on loaded entity tick procedure

for the top block, and then

if [is [Event/target entity] (sub)type of (CUSTOM:(your entity here))
do Set [Event/target entity] data number NBT tag ["(your nbt here)"] to [Get [Event/target entity] data number NBT tag ["(same nbt here)"] + [1]]
Note this is in BLOCK procedures, not actual JavaScript

 

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is loaded entity tick the…
Mon, 12/20/2021 - 19:43

is loaded entity tick the same as update tick?

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nevermind
Mon, 12/20/2021 - 19:45

nevermind

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yea kinda
Wed, 12/22/2021 - 21:21

yea kinda