Samuel Vaknin

Make a minecraft mod that adds a way to make a customizable bus you can automize to ride where you want it to to make bus lines, and so i can ride the bus as well

Kodari AI
KodariNov 1 at 8:33 am 11
AutomatedBusSystem
Adds a fully customizable, automated bus system to Minecraft. Players can construct buses from blocks, define routes with waypoints, and program them to travel autonomously along bus lines. Buses follow designated paths, stop at stations, and allow players to ride as passengers. Features include route creation tools, speed control, schedule management, and visual path markers for easy line setup.
  1. Add a rideable bus entity that follows custom rail layouts and powered-rail routes.

  2. Add a craftable bus item and a bus-body display block, with client rendering and assets.

  3. Add the NeoForge entry point, registration, item models, recipe, and survival/creative names.

Added a rideable Railbus with a custom bus body and item. Build a rail line to define its route, use powered rails to automate travel, and control junctions with redstone. Players can ride it like a minecart.

Survival: Craft a Railbus with 6 iron ingots, 2 rails, and 1 yellow dye. Use it on a rail to place the bus. It’s also in the Tools & Utilities creative tab.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
20 297
src/main/java/com/kodari/railbus/Railbus.java
package com.kodari.railbus;

import net.minecraft.world.item.CreativeModeTabs;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.common.Mod;
import net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent;

@Mod(Railbus.MOD_ID)
public final class Railbus {
    public static final String MOD_ID = "railbus";

    public Railbus(IEventBus modEventBus) {
        ModBlocks.BLOCKS.register(modEventBus);
        ModEntities.ENTITY_TYPES.register(modEventBus);
        ModItems.ITEMS.register(modEventBus);
        modEventBus.addListener(this::addCreative);
    }

    private void addCreative(BuildCreativeModeTabContentsEvent event) {
        if (event.getTabKey() == CreativeModeTabs.TOOLS_AND_UTILITIES) {
            event.accept(ModItems.BUS.get());
        }
    }
}