yu kyle

make a mod that lowers fire and makes the fire on arrows smaller

Kodari AI
KodariNov 7 at 8:32 am 2
FireControlMod
A Minecraft Fabric mod for version 1.21.1 that reduces fire damage and makes arrow-ignited fires smaller. The mod modifies fire behavior by lowering the fire damage dealt to entities and shrinking the fire blocks created when flaming arrows hit surfaces. It provides configurable settings for fire damage reduction percentage and fire size multiplier, allowing players to customize the intensity of both fire effects. The mod integrates seamlessly with the Fabric mod loader and requires no additional dependencies beyond Fabric API.
  • Lower the first-person fire overlay without changing gameplay.

  • Shrink flames on arrows while keeping the arrow itself unchanged.

Created the client-side mod: fire appears lower on screen, and flames on arrows are half-sized. Fire damage and gameplay are unchanged.

yu kyle

i mean the fire thats on blocks

Kodari AI
KodariNov 7 at 8:37 am 3
  • Shorten normal and soul fire on blocks, while keeping the smaller arrow flames.

  • Restore the normal first-person fire overlay.

Changed normal and soul fire on blocks to appear shorter. Arrow flames remain smaller, and the first-person fire overlay is back to normal.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
9 170
src/client/java/com/kodari/lowerfire/mixin/FireCommandRendererMixin.java
package com.kodari.lowerfire.mixin;

import net.minecraft.client.render.VertexConsumerProvider;
import net.minecraft.client.render.command.FireCommandRenderer;
import net.minecraft.client.render.entity.state.ArrowEntityRenderState;
import net.minecraft.client.render.entity.state.EntityRenderState;
import net.minecraft.client.texture.AtlasManager;
import net.minecraft.client.util.math.MatrixStack;
import org.joml.Quaternionf;
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;

@Mixin(FireCommandRenderer.class)
public abstract class FireCommandRendererMixin {
    @Inject(method = "render(Lnet/minecraft/client/util/math/MatrixStack$Entry;Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/client/render/entity/state/EntityRenderState;Lorg/joml/Quaternionf;Lnet/minecraft/client/texture/AtlasManager;)V", at = @At("HEAD"))
    private void lowerfire$shrinkArrowFire(MatrixStack.Entry matricesEntry, VertexConsumerProvider vertexConsumers, EntityRenderState renderState, Quaternionf rotation, AtlasManager atlasManager, CallbackInfo ci) {
        if (renderState instanceof ArrowEntityRenderState) {
            matricesEntry.scale(0.5f, 0.5f, 0.5f);
        }
    }
}