Started by
RealVendomil
on
Topic category: User side tutorials
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
Very Helpful
Thanks, is there any way in the code to change the accuracy? Made a turret and it just shoots all over the place.