Skip to content
Open
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ Available in flavors [**Cleanroom**](https://www.curseforge.com/minecraft/modpac
* **Explosion Block Drop Chance:** Determines the numerator of the block drop formula on explosions
* **Falling Block Lifespan:** Determines how long falling blocks remain in ticks until they are dropped under normal circumstances
* **Fast Dye Blending:** Replaces color lookup for sheep to check a predefined table rather than querying the recipe registry
* **Fast Fly Block Breaking:** Allows breaking blocks with normal speed while flying
* **Fast Leaf Decay:** Makes leaves decay faster when trees are chopped
* **Fast Prefix Checking:** Optimizes Forge's ID prefix checking and removes prefix warnings impacting load time
* **Fast World Loading:** Skips garbage collection to speed up world loading
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ public static class BlocksCategory
@Config.Comment("Sets the delay in ticks between breaking blocks")
public int utBlockHitDelay = 5;

@Config.RequiresMcRestart
@Config.Name("Fast Fly Block Breaking")
@Config.Comment("Allows breaking blocks with normal speed while flying")
public boolean utFastFlyBlockBreakingToggle = false;

@Config.RequiresMcRestart
@Config.Name("Cactus Size")
@Config.Comment("Determines how tall cacti can grow")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public class UTLoadingPlugin implements IFMLLoadingPlugin, IEarlyMixinLoader
put("mixins/tweaks/mixins.blocks.endportal.json", c -> UTConfigTweaks.BLOCKS.utRenderEndPortalBottom);
put("mixins/tweaks/mixins.blocks.explosion.json", c -> UTConfigTweaks.BLOCKS.utExplosionDropChance != 1.0D);
put("mixins/tweaks/mixins.blocks.falling.json", c -> UTConfigTweaks.BLOCKS.utFallingBlockLifespan != 600);
put("mixins/tweaks/mixins.blocks.fastflyblockbreaking.json", c -> UTConfigTweaks.BLOCKS.utFastFlyBlockBreakingToggle);
put("mixins/tweaks/mixins.blocks.fencegateplacing.json", c -> UTConfigTweaks.BLOCKS.utUnsupportedFenceGatePlacing);
put("mixins/tweaks/mixins.blocks.golemstructure.json", c -> UTConfigTweaks.ENTITIES.utGolemPlacement);
put("mixins/tweaks/mixins.blocks.growthsize.json", c -> UTConfigTweaks.BLOCKS.utCactusSize != 3 && UTConfigTweaks.BLOCKS.utSugarCaneSize != 3 && UTConfigTweaks.BLOCKS.utVineSize != 0);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package mod.acgaming.universaltweaks.tweaks.blocks.fastflyblockbreaking.mixin;

import net.minecraft.entity.player.EntityPlayer;

import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
import org.objectweb.asm.Opcodes;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;

@Mixin(EntityPlayer.class)
public class UTDigSpeedEntityPlayerMixin
{
@ModifyExpressionValue(method = "getDigSpeed(Lnet/minecraft/block/state/IBlockState;Lnet/minecraft/util/math/BlockPos;)F", at = @At(value = "FIELD", target = "Lnet/minecraft/entity/player/EntityPlayer;onGround:Z", opcode = Opcodes.GETFIELD, ordinal = 0))
private boolean utCancelFlyPenalty(boolean original)
{
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ public class UTObsoleteModsHandler
put("unridekeybind", () -> UTConfigTweaks.MISC.utUseSeparateDismountKey);
put("voidfog", () -> UTConfigTweaks.WORLD.VOID_FOG.utVoidFogToggle);
put("watercontrolextreme", () -> UTConfigTweaks.BLOCKS.FINITE_WATER.utFiniteWaterToggle);
put("fastflyblockbreaking", () -> UTConfigTweaks.BLOCKS.utFastFlyBlockBreakingToggle);
}

put("bedpatch", () -> true); // Fix integrated in Forge 14.23.2.2643 (#4784)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"package": "mod.acgaming.universaltweaks.tweaks.blocks.fastflyblockbreaking.mixin",
"refmap": "universaltweaks.refmap.json",
"minVersion": "0.8",
"compatibilityLevel": "JAVA_8",
"mixins": ["UTDigSpeedEntityPlayerMixin"]
}
Loading