This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public InteractionResult useOn(UseOnContext context) { | |
Player player = context.getPlayer(); | |
ItemStack stack = context.getItemInHand(); | |
if(stack.get(CBDataComponents.ACTIVE)){ | |
return InteractionResult.FAIL; | |
} | |
if(player.isShiftKeyDown() && player.getMainHandItem() == stack){ | |
if(context.getLevel().getBlockState(context.getClickedPos()).is(Blocks.ENCHANTING_TABLE)){ | |
if(context.getLevel().getBlockState(context.getClickedPos().north()).is(Blocks.REDSTONE_WIRE) && |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---- Minecraft Crash Report ---- | |
// This doesn't make any sense! | |
Time: 2024-07-28 20:08:24 | |
Description: Mod loading error has occurred | |
java.lang.Exception: Mod Loading has failed | |
at net.minecraftforge.logging.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:60) ~[forge-1.20.1-47.1.3_mapped_official_1.20.1.jar:?] {re:classloading} | |
at net.minecraftforge.client.loading.ClientModLoader.completeModLoading(ClientModLoader.java:146) ~[forge-1.20.1-47.1.3_mapped_official_1.20.1.jar:?] {re:classloading,pl:runtimedistcleaner:A} | |
at net.minecraft.client.Minecraft.lambda$new$4(Minecraft.java:571) ~[forge-1.20.1-47.1.3_mapped_official_1.20.1.jar:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:configuration.mixins.json:MinecraftMixin,pl:mixin:A,pl:runtimedistcleaner:A} |