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 137
    • Issues 137
    • 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

Last edited by Lxlp Mar 03, 2025
Page history
This is an old version of this page. You can view the most recent version or browse the history.

PushBlock

==============

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
  - pushblock{dir=UP} @SelfLocation{y=-0.1}

Targeters

You can also use a targeter in as the attribute value's, like the following

  - pushblock{dir=@Forward{f=1}} @SelfLocation{y=-0.1}

Examples:

  Skills:
  - pushblock{dir=@Forward{f=1}} @ForwardWall{f=5;y=1;h=2;w=2}
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
FAQ / Common Issues
Mythic Add-ons
Compatible Plugins
API Information
Packs
Mobs
  • Mob Options
    • Display 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
Stats
  • Custom Stat Options
  • Modifiers
  • Built in Stats
Examples
Useful Tips