Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 160
    • Issues 160
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Wiki
    • Skills
    • Mechanics
  • PushBlock

PushBlock · Changes

Page history
Create skills/mechanics/PushBlock authored Jul 31, 2023 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 39 additions and 0 deletions
+39 -0
  • skills/mechanics/PushBlock.md skills/mechanics/PushBlock.md +39 -0
  • No files found.
skills/mechanics/PushBlock.md 0 → 100644
View page @ 694a14b7
## Description
Pushes the block at the target location in the given direction using piston logic.
Direction can be either cardinal direction or a location targeter. If given a targeter, the block will be pushed once towards that location.
Mechanic follows piston rules and will push other connected slime blocks as well, but only if they're adjacent or in front of the block - it cannot push connected blocks behind the pushed block.
## Attributes
| Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| direction | dir, d | The direction of the movement. Can also be a Targeter | NORTH |
| onPush | then | The metaskill to execute once the block has been successfully pushed | |
| onFail | | The metaskill to execute if the block failed to be pushed | |
### Direction Attribute
The direction attribute can either be a `named direction` or a `targeter`
##### Named Direction
The possible named directions are
- `NORTH`
- `SOUTH`
- `EAST`
- `WEST`
- `UP`
- `DOWN`
and you can use them like the following
```yaml
- pushblock{dir=UP} @SelfLocation{y=-0.1}
```
##### Targeters
You can also use a targeter in as the attribute value's, like the following
```yaml
- pushblock{dir=@Forward{f=1}} @SelfLocation{y=-0.1}
```
## Examples
```yaml
Skills:
- pushblock{dir=@Forward{f=1}} @ForwardWall{f=5;y=1;h=2;w=2}
```
\ No newline at end of file
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
FAQ / Common Issues
Mythic Add-ons
Compatible Plugins
API Information
Packs
Mobs
  • Mob Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Templates
  • Vanilla Overrides
  • Extra: Disguises
  • Extra: ModelEngine
Skills
  • Mechanics
  • Effects
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables
  • Math
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drop Types
Spawning
  • Spawners
  • Random Spawns
Examples
Useful Tips