Alpha-s-Stuff / TinkersConstruct

Tinker a little, build a little, tinker a little more...
MIT License
84 stars 29 forks source link

[Spectrum conflict] Slush unable to be tilled by scythe (and presumably, other tilling tools) #129

Open Mieridduryn opened 3 months ago

Mieridduryn commented 3 months ago

Minecraft Version

1.20.1

Fabric Version

0.15.10

Fabric API Version

0.92.1+1.20.1

Hephaestus Version

1.20.1-3.6.4.271

Describe your issue

Slush is a tillable block from Spectrum. Tools that should be able to till it, such as scythes, work on normal dirt, but not on Slush.

Crash Report

No response

Other mods

All of Fabric 7 2.1.2 - specifically, Spectrum

Tried reproducing with just Tinkers?

No

Performance Enchancers

Sodium, Other (specify under other mods)

Searched for known issues?

Checked pinned issues, Searched open issues, Searched closed issues, Checked the FAQ

KonSola5 commented 3 months ago

Spectrum makes their blocks tillable with yet another method:

package de.dafuqs.spectrum.registries;

import net.fabricmc.fabric.api.registry.*;
import net.minecraft.item.*;

public class SpectrumTillableBlocks {

    public static void register() {
        TillableBlockRegistry.register(SpectrumBlocks.SLUSH, HoeItem::canTillFarmland, SpectrumBlocks.TILLED_SLUSH.getDefaultState());
        TillableBlockRegistry.register(SpectrumBlocks.SHALE_CLAY, HoeItem::canTillFarmland, SpectrumBlocks.TILLED_SHALE_CLAY.getDefaultState());
    }

}

Luckily that's not an instanceof HoeItem like in the case of Farmer's Delight Rich Soil, but still isn't fired in this case.