jhuckaby / magic-sorting-system

A data pack for Minecraft 1.13, 1.14 and 1.15 (Java) for automatically sorting every item in the game.
39 stars 14 forks source link

doesnt work with mcmmo #25

Open dev-Blaze opened 4 years ago

dev-Blaze commented 4 years ago

in mcmmo the gold block is used as a salvage anvil, i think it messes with this datapack, is there anyway for this to work with a separate block instead?

isaaclepes commented 3 years ago

As far as I can tell, this datapack does not really do anything that should conflict with the gold block. It has a check in it that just looks at the 2 blocks below the item entity, but it makes no changes to Gold Block behavior it looks like this:

execute as @e[type=item] at @s if block ~ ~-1 ~ minecraft:lapis_block if block ~ ~-2 ~ minecraft:gold_block run function mss:sort

Execute if block below entity is lapis but only if block 2 spaces below is gold.

Usually conflicts happen when datapacks: Edit the same thing as another datapack Use the same namespace / tags / functions / scoreboards

Everything that is changed/added by this pack has "mss" in it's name, except the tick function. It uses scoreboard values which were borrowed from Xisumavoid. If these scoreboard names are verbatim and the other datapack uses the same, it could mess with timing for both datapacks.

For the most part, this data pack is just a collection of execute commands, the only part that isn't would be within main:init and main:tick

To work with a separate block, just edit the second.mcfunction file and change gold_block for whatever you desire.