Skip to content

Releases: Cobbleworks/Piston-Crusher-Plugin

Piston Crusher v1.0.1

Choose a tag to compare

@BerndHagen BerndHagen released this 26 Apr 16:42

Piston Crusher 1.0.1 delivers a significant rework of the core crushing logic and resolves two important correctness issues found after the initial release. The crush mechanic was redesigned so that the block directly in front of the piston is now mined rather than the previous behavior, crusher block eligibility is strictly enforced to only accept piston-moveable materials, and all configuration is now permanently persisted to disk so settings survive server restarts.

Core Logic Overhaul

  • Crusher block validation enforced: Only physically piston-moveable blocks can now be set as the crusher block - materials that cannot be moved by pistons (such as obsidian, bedrock, and end portal frames) are explicitly rejected with a clear in-game error message
  • Redesigned crushing behavior: The core crush mechanic was completely rewritten - the block directly in front of the extending piston is now mined and destroyed on contact with the crusher block, replacing the previous logic which was inconsistent under certain block and piston orientations
  • Persistent configuration: All settings - including the whitelist contents, output multiplier value, and crusher block type - are now permanently saved to disk and automatically restored on server restart, replacing the previous in-memory-only storage that lost all configuration on shutdown

Note: If you encounter any bugs or issues, please don't hesitate to open an issue. For any questions or to start a discussion, feel free to initiate a discussion on the GitHub repository.

Piston Crusher v1.0.0

Choose a tag to compare

@BerndHagen BerndHagen released this 26 Apr 16:44

Piston Crusher 1.0.0 introduces an automation plugin that turns pistons into configurable block-crushing machines. When a piston extends and pushes a whitelisted block into a designated crusher block, the pushed block is destroyed and drops a configurable number of items directly into the world. All settings - the material whitelist, output multiplier, and crusher block type - are managed via commands with full tab completion and take effect immediately without a server restart. Only physically piston-moveable blocks qualify as crusher blocks, preventing exploitation with immovable materials such as obsidian or bedrock.

Crushing Mechanics

  • Block Whitelist System: Only blocks explicitly added to the whitelist are destroyed when pushed into the crusher block - all other materials pass through the piston normally without triggering any crushing behavior
  • Configurable Output Multiplier: Controls exactly how many items drop per crushed block - fractional values are supported for weighted drop counts (e.g., a multiplier of 2.5 yields either 2 or 3 items with appropriately weighted probability)
  • Crusher Block Selection: Any piston-moveable block can be designated as the crusher target - immoveable blocks such as obsidian and bedrock are explicitly validated and rejected to prevent abuse

Configuration and Commands

  • Live Configuration: All whitelist changes, multiplier adjustments, and crusher block selections take effect immediately without any server restart
  • Full Tab Completion: All material names in whitelist and crusher block commands are fully tab-completed using Bukkit material names for accurate and fast in-game configuration
  • /pistoncrusher whitelist add/remove <Material>: Add or remove material types from the whitelist at runtime
  • /pistoncrusher multiplier <Value>: Set the item drop multiplier - must be 1.0 or greater
  • /pistoncrusher crusherblock <Material>: Set or display the designated crusher block type

Note: If you encounter any bugs or issues, please don't hesitate to open an issue. For any questions or to start a discussion, feel free to initiate a discussion on the GitHub repository.