(Tutorial) How to change a Entity speed shooting (Rapid-Fire)

Started by RealVendomil on Sat, 04/10/2021 - 21:22

Topic category: User side tutorials

Last seen on 17:11, 9. May 2021
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
(Tutorial) How to change a Entity speed shooting (Rapid-Fire)
Sat, 04/10/2021 - 21:24 (edited)

Step 1. Make a Entity with ranged item.

Step 2. Go to "Code Editor"

Step 3. Find or on right side find "registerGoals"

---

this.goalSelector.addGoal(1, new RangedAttackGoal(this, 1.25, 5, 5) {

The first number 5 (20 Default) is tick for a shooting. 5 tick is rapid fire. And if is more than 20 ticks, it will be slower.

20 Ticks is 1 Second

Edited by RealVendomil on Sat, 04/10/2021 - 21:24