This mod allows pistons to compress certain blocks into other blocks or items.
You need Minecraft Forge installed first. Once that's done, just drop pistoncompression-version.jar in your Minecraft instance's mods/ directory. Optionally, you can configure it to taste (see below).
You need seven of the block you want to compress and six pistons. You also need a means of powering the pistons, as well as blocks to stop pistons from being able to move each other.
- Place a block to be compressed, and place six more of it on its six faces.
- Place pistons on each outer block that point inward to the center block.
- Ensure that none of the pistons can accidentally move each other.
- Activate all of the pistons.
- Once the pistons extend, deactivate them and remove the compressed block.
You can choose exactly what compressions are possible. The first two columns of each entry are the old block's name and a state predicate, the same as /testforblock uses. The third column is the new block's or item's name, and the fourth column is the data value or block state. If the fifth column is present, the compression result is forced to drop as an item even if it has a block form, and the column's value specifies the quantity. All columns after the third are optional. Examples:
- minecraft:ice * minecraft:packed_ice
- minecraft:coal_block * minecraft:diamond
The first entry will allow ice blocks to be compressed into a packed ice block. The second entry will allow coal blocks to be compressed into a diamond.
You need a JDK installed first. Start a command prompt or terminal in the
directory you downloaded the source to. If you're on Windows, type
gradlew.bat build
. Otherwise, type ./gradlew build
. Once it's done, the mod
will be saved to build/libs/pistoncompression-version.jar.
Send pull requests. Note that by doing so, you agree to release your contributions under this mod's license.
It's released under the GPL v2 or later.
Yes, even if you monetize it with adf.ly or something, and you don't need to ask me for my permission first.