karasis

сделай мод типо весь мир это вечная зима в которой нужно выживать добавь кучу крафтов, структур типо пост апокалипсис в вечной мерзлоте и тебе нужно греться чтобы не замерзнуть и крафтить одежду и еще добавь монстров леденых,выживших и огнестрел

Kodari AI
KodariNov 13 at 11:26 pm 4
FrostfallSurvival
FrostfallSurvival transforms Minecraft into a brutal eternal winter survival experience. The entire world is covered in perpetual frost, requiring constant warmth management to avoid freezing to death. Players must craft layered clothing, build heat sources, and gather resources to survive the deadly cold. The mod adds dozens of new crafting recipes for winter gear, weapons, and tools. Explore post-apocalyptic structures scattered across the frozen wasteland, including abandoned bunkers, frozen settlements, and research facilities. Battle new hostile mobs including Frost Walkers, Ice Revenants, and hostile Survivors who guard valuable loot. Firearms and ammunition add modern combat options, while thermal mechanics create a constant survival pressure. Advanced temperature system tracks body heat, clothing insulation, and environmental factors.
  • Создам основу вечной зимы: снег, постоянную непогоду и замерзание.

  • Добавлю защиту кожаной одеждой и возможность согреться у костра.

Создана основа вечной зимы: снегопады и замерзание в обычном мире. Чтобы согреться, разведите костёр или скрафтите полный комплект кожаной брони.

Это пока не весь задуманный мод: новые крафты, постапокалиптические структуры, ледяные монстры, выжившие и огнестрел ещё не добавлены.

karasis

это на какую версию?

Kodari AI
KodariNov 13 at 11:27 pm 1

Это мод для Fabric на Minecraft 1.21.11.

karasis

как мне согреться и какой крафт теплых вещей

Kodari AI
KodariNov 13 at 11:34 pm 1

Сейчас согреться можно двумя способами:

  • Встать рядом с зажжённым костром — обычным или костром душ. Он греет в радиусе до 4 блоков по горизонтали и 2 по вертикали.

  • Надеть полный комплект кожаной брони: шлем, куртку, штаны и ботинки. Неполный комплект лишь уменьшает урон от холода.

Для полного комплекта понадобится 24 кожи. Броня крафтится на верстаке по обычным рецептам Minecraft: шлем — 5 кожи, куртка — 8, штаны — 7, ботинки — 4.

Отдельных новых рецептов тёплой одежды в моде пока нет.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
7 173
src/main/java/dev/kodari/winter/EternalWinter.java
package dev.kodari.winter;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.block.CampfireBlock;
import net.minecraft.entity.EquipmentSlot;
import net.minecraft.item.Items;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.util.math.BlockPos;

public class EternalWinter implements ModInitializer {
    @Override
    public void onInitialize() {
        ServerTickEvents.END_SERVER_TICK.register(server -> {
            ServerWorld world = server.getOverworld();
            int ticks = server.getTicks();
            if (ticks % 1200 == 0 || !world.isRaining()) {
                world.setWeather(0, 1800, true, false);
            }
            if (ticks % 100 != 0) {
                return;
            }
            for (ServerPlayerEntity player : world.getPlayers()) {
                if (!player.isAlive() || player.isCreative() || player.isSpectator()) {
                    continue;
                }
                if (nearFire(world, player.getBlockPos())) {
                    player.setFrozenTicks(0);
                    continue;
                }
                int protection = 0;
                if (player.getEquippedStack(EquipmentSlot.HEAD).isOf(Items.LEATHER_HELMET)) protection++;
                if (player.getEquippedStack(EquipmentSlot.CHEST).isOf(Items.LEATHER_CHESTPLATE)) protection++;
                if (player.getEquippedStack(EquipmentSlot.LEGS).isOf(Items.LEATHER_LEGGINGS)) protection++;
                if (player.getEquippedStack(EquipmentSlot.FEET).isOf(Items.LEATHER_BOOTS)) protection++;
                if (protection < 4) {
                    player.setFrozenTicks(player.getMinFreezeDamageTicks());
                    player.damage(world, player.getDamageSources().freeze(), (4 - protection) * 0.5f);
                } else {
                    player.setFrozenTicks(0);
                }
            }
        });
    }

    private static boolean nearFire(ServerWorld world, BlockPos center) {
        for (BlockPos pos : BlockPos.iterateOutwards(center, 4, 2, 4)) {
            BlockState state = world.getBlockState(pos);
            if ((state.isOf(Blocks.CAMPFIRE) || state.isOf(Blocks.SOUL_CAMPFIRE)) && state.get(CampfireBlock.LIT)) {
                return true;
            }
        }
        return false;
    }
}