|
Mechanic: End Projectile
|
|
## Description
|
|
--------------------------
|
|
|
|
Terminates the projectile this mechanic has been called from, activating its onEnd skill in the process.
|
|
Terminates the projectile this mechanic has been called from, activating its onEnd skill in the process.
|
|
|
|
|
|
**Attributes**
|
|
|
|
|
|
|
|
| Attribute | Alias | Description |
|
|
## Attributes
|
|
| --------- | ----- | ----------- |
|
|
| Attribute | Aliases | Description | Default |
|
|
| none | none | none |
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|
|
| conditions| condition, cond, con | The conditions to check before terminating the projectile | |
|
|
|
|
|
|
Examples
|
|
##Examples
|
|
--------
|
|
|
|
|
|
|
|
**Mob file**
|
|
**Mob file**
|
|
```
|
|
```yaml
|
|
Mob:
|
|
Mob:
|
|
Type: HUSK
|
|
Type: HUSK
|
|
Skills:
|
|
Skills:
|
... | @@ -21,7 +19,7 @@ Mob: |
... | @@ -21,7 +19,7 @@ Mob: |
|
```
|
|
```
|
|
|
|
|
|
**Skill file**
|
|
**Skill file**
|
|
```
|
|
```yaml
|
|
ExplodingProjectile:
|
|
ExplodingProjectile:
|
|
Skills:
|
|
Skills:
|
|
- projectile{onTick=ExplodingProjectile_Tick;onEnd=ExplodingProjectile_End;v=4;i=1;hp=false;sb=false;se=false;d=200}
|
|
- projectile{onTick=ExplodingProjectile_Tick;onEnd=ExplodingProjectile_End;v=4;i=1;hp=false;sb=false;se=false;d=200}
|
... | @@ -37,3 +35,11 @@ ExplodingProjectile_End: |
... | @@ -37,3 +35,11 @@ ExplodingProjectile_End: |
|
- throw{fromorigin=true} @EntitiesNearOrigin{r=5}
|
|
- throw{fromorigin=true} @EntitiesNearOrigin{r=5}
|
|
- effect:explosion @origin
|
|
- effect:explosion @origin
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Aliases
|
|
|
|
- [x] terminateProjectile
|
|
|
|
- [x] terminateproj
|
|
|
|
- [x] endproj
|
|
|
|
- [x] stopprojectile
|
|
|
|
- [x] stopproj |
|
|
|
\ No newline at end of file |