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

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
Mythic Add-ons
Compatible Plugins
API Information
Config Files

Guides
  • Troubleshooting
  • FAQ / Common Issues
  • Examples
Packs

MythicScribe MythicScribe - VSCode Extension

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
    • Mechanics by Tag
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables

Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework

Drops & DropTables
  • Drops
  • DropTables
  • FancyDrops

Spawning
  • Spawners
  • Random Spawns

Stats
  • Custom Stat Options
  • Modifiers
  • Built in Stats

Other
  • Particles Types
  • Audience
  • Equipment Slots
  • Pins
Technical
  • Math
  • Item Matcher
  • Operations
    • Attribute Operations
    • Stats Modifiers
  • SkillTree
  • Advanced User Guides and Techniques