Skip to content

Instantly share code, notes, and snippets.

View Leclowndu93150's full-sized avatar
πŸ‘½
Working from home

Leclowndu93150

πŸ‘½
Working from home
View GitHub Profile
@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) &&
---- 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}