• check_circle Advancements
  • check_circle Functions
  • 3,733 views, 3 today
  • 252 downloads, 0 today
  • 7
  • 9
  • 2
BVengo avatar BVengo
Level 29 : Expert Engineer
6
Ore Compressor

This datapack will automatically compress ores and precious metals into their most condensed forms.

To enable compression, you must have a piece of paper in your inventory labelled compress. This requirement has been included in an attempt to guarantee that items will only be condensed when you need them to be, and to minimise unnecessary function calls. Additionally, there must be an incomplete stack of the compressed item *or* an empty slot in your inventory to guarantee space for the items.

Please note that it will only compress the metals that have a reversible recipe. This means that nether quartz and amethyst shards won't be compressed.


For a list of all the items that can be compressed, check out my GitHub repository.



Installation / Removal
To install the datapack, simply drag the downloaded zip file into the datapack folder of your world.

To uninstall, type /function ore_compressor:uninstall. This will remove all scoreboard values related to the datapack. Then remove the zip file from the datapacks folder and reload the world.
CompatibilityMinecraft 1.18
toMinecraft 1.19
Tags

2 Update Logs

1.19 v1.0 : by BVengo 06/06/2022 9:04:15 pmJun 6th

Updated to 1.19!
LOAD MORE LOGS

Create an account or sign in to comment.

1
07/29/2022 5:20 pm
Level 1 : New Miner
Ti0n42
Ti0n42 avatar
Is it possible to modify the data, so that it starts to compress at 10 items so 1 is left over?
1
07/30/2022 4:05 am
Level 29 : Expert Engineer
BVengo
BVengo avatar
It's certainly possible! I don't want to change the base version that I'm distributing, so I'll just let you know how to do it yourself.

Inside the datapack, go to the folder data/ore_compressor/functions/try_compress. There is a file for every item that can be compressed. For each of those files, change the following line:

execute if entity @s[scores={oc_item_count_1=9..}] run function ore_compressor:check_space

to

execute if entity @s[scores={oc_item_count_1=10..}] run function ore_compressor:check_space

Basically, change 9 to 10 :)
Planet Minecraft

Website

© 2010 - 2022
www.planetminecraft.com

Welcome