ki cool

AI controls villagers, pillagers, piglins, wither skeletons, and the AI also controls the 3 bosses.

package com.example.spacemod;

import net.fabricmc.api.ModInitializer;

public class SpaceTravelMod implements ModInitializer {

    public static final String MOD_ID = "spacemod";

    @Override
    public void onInitialize() {
        System.out.println("Space Travel Mod loaded!");
    }

    // =====================================================
    // PLANETEN
    // =====================================================

    public enum Planet {
        MOON,
        MARS,
        VENUS,
        MERCURY
    }

    // =====================================================
    // RAUMANZUG
    // =====================================================

    public static class SpaceSuit {

        public boolean helmet;
        public boolean chestplate;
        public boolean leggings;
        public boolean boots;

        public SpaceSuit() {
            helmet = false;
            chestplate = false;
            leggings = false;
            boots = false;
        }

        public boolean isComplete() {
            return helmet
                    && chestplate
                    && leggings
                    && boots;
        }
    }

    // =====================================================
    // RAKETE
    // =====================================================

    public static class Rocket {

        private boolean launched;
        private int height;
        private Planet destination;

        public Rocket() {
            launched = false;
            height = 0;
            destination = null;
        }

        public void launch(Planet planet) {

            if (launched || planet == null) {
                return;
            }

            destination = planet;
            launched = true;
            height = 0;
        }

        public void tick() {

            if (!launched) {
                return;
            }

            height += 10;

            if (height >= 1000) {
                arrive();
            }
        }

        private void arrive() {

            if (destination == null) {
                return;
            }

            // Hier wird die echte Minecraft-Dimension
            // des jeweiligen Planeten angesprochen.
            launched = false;
        }

        public int getHeight() {
            return height;
        }

        public Planet getDestination() {
            return destination;
        }

        public boolean isLaunched() {
            return launched;
        }
    }

    // =====================================================
    // PLANETEN-SCHUTZ
    // =====================================================

    public static class PlanetEnvironment {

        public static boolean requiresSpaceSuit(Planet planet) {

            return planet == Planet.MOON
                    || planet == Planet.MARS
                    || planet == Planet.VENUS
                    || planet == Planet.MERCURY;
        }

        public static boolean playerCanSurvive(
                Planet planet,
                SpaceSuit suit) {

            if (!requiresSpaceSuit(planet)) {
                return true;
            }

            return suit != null && suit.isComplete();
        }
    }

    // =====================================================
    // MARS
    // =====================================================

    public static class MarsSystem {

        public static final double SAND_TO_IRON_CHANCE = 0.01;

        public static boolean canConvertSand(
                boolean isMars,
                boolean isSand) {

            return isMars && isSand;
        }
    }

    // =====================================================
    // SPACE SUIT REZEPT
    // =====================================================

    public static class SpaceSuitRecipe {

        public static boolean valid(
                boolean ironArmor,
                boolean copperBlock) {

            return ironArmor && copperBlock;
        }
    }
}

ki cool Team

profile avatar
  • 6
    Projects
  • 391
    Downloads

More from user_0g71zdih7nd0otuqView all

  • the ki project image

    the ki

    An autonomous Minecraft AI mod where an intelligent brain reacts to health, hunger, danger, time and resources, chooses actions independently, and can access approved Minecraft information online now.

    • 6
    • November 4, 2026
  • uniwersum project image

    uniwersum

    Explore galaxies, planets, rockets, spacesuits, spacecraft, Dyson spheres, mining robots, and AI civilizations. Gather resources, build structures, develop technology, and discover space in this simulation.

    • 2
    • October 14, 2026
  • ai king project image

    ai king

    Rivers, Skeletons, Pickles, Pillagers & Villagers evolve constantly, gaining immense power. Adapt to changing laws, face tactical raids, and survive an escalating war in this dynamic, unforgiving world.

    • 5
    • October 8, 2026
  • welltraum project image

    welltraum

    du kannst in den weldraum

    • 15
    • October 1, 2026
  • the ki project image

    the ki

    An autonomous Minecraft AI mod where an intelligent brain reacts to health, hunger, danger, time and resources, chooses actions independently, and can access approved Minecraft information online now.

    • 6
    • November 4, 2026
  • uniwersum project image

    uniwersum

    Explore galaxies, planets, rockets, spacesuits, spacecraft, Dyson spheres, mining robots, and AI civilizations. Gather resources, build structures, develop technology, and discover space in this simulation.

    • 2
    • October 14, 2026
  • ai king project image

    ai king

    Rivers, Skeletons, Pickles, Pillagers & Villagers evolve constantly, gaining immense power. Adapt to changing laws, face tactical raids, and survive an escalating war in this dynamic, unforgiving world.

    • 5
    • October 8, 2026
  • welltraum project image

    welltraum

    du kannst in den weldraum

    • 15
    • October 1, 2026