Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ loader_version = 0.19.3
# Mod Properties
mod_id = fuzz
mod_name = Fuzz
mod_version = 1.6.12
mod_version = 1.6.13
maven_group = top.1024byteeeee
archives_base_name = Fuzz

Expand Down
15 changes: 9 additions & 6 deletions run/options.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version:4788
version:4903
ao:true
biomeBlendRadius:2
chunkSectionFadeInTime:0.75
Expand All @@ -13,6 +13,7 @@ fovEffectScale:1.0
darknessEffectScale:1.0
glintSpeed:0.5
glintStrength:0.75
preferredGraphicsBackend:"default"
graphicsPreset:"custom"
prioritizeChunkUpdates:0
fullscreen:false
Expand All @@ -30,7 +31,7 @@ particles:0
reducedDebugInfo:false
renderClouds:"false"
cloudRange:128
renderDistance:32
renderDistance:2
simulationDistance:5
screenEffectScale:1.0
soundDevice:""
Expand All @@ -49,7 +50,6 @@ invertYMouse:false
realmsNotifications:true
showSubtitles:false
directionalAudio:false
touchscreen:false
bobView:true
toggleCrouch:false
toggleSprint:false
Expand All @@ -59,12 +59,12 @@ sprintWindow:7
darkMojangStudiosBackground:false
hideLightningFlashes:false
hideSplashTexts:false
mouseSensitivity:0.5
mouseSensitivity:0.3287943808685447
damageTiltStrength:1.0
highContrast:false
highContrastBlockOutline:false
narratorHotkey:true
resourcePacks:["vanilla"]
resourcePacks:["vanilla","fuzz_mod:chest_optimization"]
incompatibleResourcePacks:[]
lastServer:
lang:zh_cn
Expand Down Expand Up @@ -98,6 +98,8 @@ joinedFirstServer:false
syncChunkWrites:true
showAutosaveIndicator:true
allowServerListing:true
inGameNotification:false
sharePresence:"all"
onlyShowSecureChat:false
saveChatDrafts:false
panoramaScrollSpeed:1.0
Expand All @@ -122,6 +124,7 @@ key_key.chat:key.keyboard.t
key_key.playerlist:key.keyboard.tab
key_key.pickItem:key.mouse.middle
key_key.command:key.keyboard.slash
key_key.friends:key.keyboard.o
key_key.socialInteractions:key.keyboard.p
key_key.toggleGui:key.keyboard.f1
key_key.toggleSpectatorShaderEffects:key.keyboard.f4
Expand Down Expand Up @@ -170,7 +173,7 @@ key_key.debug.lightmapTexture:key.keyboard.4
key_快捷踢出假人:key.keyboard.unknown
key_快捷扔出假人背包:key.keyboard.unknown
key_清除坐标罗盘:key.keyboard.unknown
soundCategory_master:0.24668874
soundCategory_master:1.0
soundCategory_music:0.0
soundCategory_record:1.0
soundCategory_weather:1.0
Expand Down
53 changes: 53 additions & 0 deletions src/main/java/top/byteeeee/fuzz/mixin/hooks/LocalPlayerMixin.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* This file is part of the Fuzz project, licensed under the
* GNU Lesser General Public License v3.0
*
* Copyright (C) 2026 1024_byteeeee and contributors
*
* Fuzz is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Fuzz is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fuzz. If not, see <https://www.gnu.org/licenses/>.
*/

package top.byteeeee.fuzz.mixin.hooks;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;

import net.minecraft.client.player.LocalPlayer;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

import top.byteeeee.fuzz.utils.ClientUtil;

@Environment(EnvType.CLIENT)
@Mixin(LocalPlayer.class)
public abstract class LocalPlayerMixin {
@Inject(method = "tick", at = @At("HEAD"))
private void onTickStart(CallbackInfo ci) {
LocalPlayer player = (LocalPlayer) (Object) this;
if (ClientUtil.isLocalPlayerSelf(player)) {
ClientUtil.setLocalPlayerTicking(true);
}
}

@Inject(method = "tick", at = @At("RETURN"))
private void onTickEnd(CallbackInfo ci) {
LocalPlayer player = (LocalPlayer) (Object) this;
if (ClientUtil.isLocalPlayerSelf(player)) {
ClientUtil.removeLocalPlayerTicking();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
public abstract class BubbleColumnBlockMixin {
@WrapMethod(method = "entityInside")
private void onEntityCollision(BlockState state, Level world, BlockPos pos, Entity entity, InsideBlockEffectApplier handler, boolean bl, Operation<Void> original) {
if (FuzzSettings.bubbleColumnInteractDisabled && entity.equals(ClientUtil.getCurrentPlayer())) {
if (FuzzSettings.bubbleColumnInteractDisabled && ClientUtil.isLocalPlayerSelf(entity)) {
Noop.noop();
} else {
original.call(state, world, pos, entity,handler,bl);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public abstract class WebBlockMixin {
)
)
private void slowDownDisabled(Entity entity, BlockState blockState, Vec3 speedMultiplier, Operation<Void> original) {
if (FuzzSettings.cobwebSlowDownDisabled && entity.equals(ClientUtil.getCurrentPlayer())) {
if (FuzzSettings.cobwebSlowDownDisabled && ClientUtil.isLocalPlayerSelf(entity)) {
Noop.noop();
} else {
original.call(entity, blockState, speedMultiplier);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ public abstract class PlayerMixin {
@ModifyReturnValue(method = "isPushedByFluid", at = @At("RETURN"))
public boolean isPushedByFluids(boolean original) {
Player player = (Player) (Object) this;
return FuzzSettings.fluidPushDisabled && player.equals(ClientUtil.getCurrentPlayer()) ? false : original;
return FuzzSettings.fluidPushDisabled && ClientUtil.isLocalPlayerSelf(player) ? false : original;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
/*
* This file is part of the Fuzz project, licensed under the
* GNU Lesser General Public License v3.0
*
* Copyright (C) 2026 1024_byteeeee and contributors
*
* Fuzz is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Fuzz is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fuzz. If not, see <https://www.gnu.org/licenses/>.
*/

package top.byteeeee.fuzz.mixin.rule.honeyBlockSlowDownDisabled;

import com.llamalad7.mixinextras.injector.ModifyReturnValue;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;

import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.HoneyBlock;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;

import top.byteeeee.fuzz.FuzzSettings;
import top.byteeeee.fuzz.utils.ClientUtil;

@Environment(EnvType.CLIENT)
@Mixin(Block.class)
public abstract class BlockMixin {
@ModifyReturnValue(method = "getFriction", at = @At("RETURN"))
private float modifyFriction(float original){
if (!ClientUtil.isLocalPlayerTicking()) {
return original;
}

Block block = (Block) (Object) this;
if (FuzzSettings.honeyBlockSlowDownDisabled && block instanceof HoneyBlock) {
return Blocks.TNT.getFriction();
} else {
return original;
}
}

@ModifyReturnValue(method = "getSpeedFactor", at = @At("RETURN"))
private float modifySpeedFactor(float original) {
if (!ClientUtil.isLocalPlayerTicking()) {
return original;
}

Block block = (Block) (Object) this;
if (FuzzSettings.honeyBlockSlowDownDisabled && block instanceof HoneyBlock) {
return Blocks.TNT.getSpeedFactor();
} else {
return original;
}
}

@ModifyReturnValue(method = "getJumpFactor", at = @At("RETURN"))
private float modifyJumpFactor(float original) {
if (!ClientUtil.isLocalPlayerTicking()) {
return original;
}

Block block = (Block) (Object) this;
if (FuzzSettings.honeyBlockSlowDownDisabled && block instanceof HoneyBlock) {
return Blocks.TNT.getJumpFactor();
} else {
return original;
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public abstract class LivingEntityMixin {
)
private float iceSlipperinessDisabled(Block block, Operation<Float> original) {
LivingEntity entity = (LivingEntity) (Object) this;
if (FuzzSettings.iceSlipperinessDisabled && entity.equals(ClientUtil.getCurrentPlayer()) && IceFamily.isIce(block)) {
if (FuzzSettings.iceSlipperinessDisabled && ClientUtil.isLocalPlayerSelf(entity) && IceFamily.isIce(block)) {
return Blocks.TNT.getFriction();
} else {
return original.call(block);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public abstract class LivingEntityMixin {
private void removeJumpDelay1(CallbackInfo ci) {
if (FuzzSettings.jumpDelayDisabled) {
LivingEntity entity = (LivingEntity) (Object) this;
if (entity.equals(ClientUtil.getCurrentPlayer())) {
if (ClientUtil.isLocalPlayerSelf(entity)) {
this.noJumpDelay = 0;
}
}
Expand All @@ -55,7 +55,7 @@ private void removeJumpDelay1(CallbackInfo ci) {
private void removeJumpDelay2(CallbackInfo ci) {
if (FuzzSettings.jumpDelayDisabled) {
LivingEntity entity = (LivingEntity) (Object) this;
if (entity.equals(ClientUtil.getCurrentPlayer())) {
if (ClientUtil.isLocalPlayerSelf(entity)) {
this.noJumpDelay = 0;
}
}
Expand All @@ -65,7 +65,7 @@ private void removeJumpDelay2(CallbackInfo ci) {
private void removeJumpDelay3(CallbackInfo ci) {
if (FuzzSettings.jumpDelayDisabled) {
LivingEntity entity = (LivingEntity) (Object) this;
if (entity.equals(ClientUtil.getCurrentPlayer())) {
if (ClientUtil.isLocalPlayerSelf(entity)) {
this.noJumpDelay = 0;
}
}
Expand All @@ -75,7 +75,7 @@ private void removeJumpDelay3(CallbackInfo ci) {
private void removeJumpDelay4(CallbackInfo ci) {
if (FuzzSettings.jumpDelayDisabled) {
LivingEntity entity = (LivingEntity) (Object) this;
if (entity.equals(ClientUtil.getCurrentPlayer())) {
if (ClientUtil.isLocalPlayerSelf(entity)) {
this.noJumpDelay = 0;
}
}
Expand Down
Loading
Loading