Started by
matgaw123
on
Topic category: Help with Minecraft modding (Java Edition)
i want to change window title
and this is what is find https://forums.minecraftforge.net/topic/31932-change-window-title/
this under is someone code who have this
Display.setTitle("Hello World!");https://stackoverflow.com/questions/62711969/why-does-my-code-not-regis…
and this is my code
i m new with coding
can someone help
sorry for my english
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD) public class Namechange { public Namechange() { } @SubscribeEvent public static void init(FMLCommonSetupEvent event) { new Namechange(); } @Mod.EventBusSubscriber private static class ForgeBusEvents { // Example Forge bus event registration @SubscribeEvent public static void addFeatureToBiomes(BiomeLoadingEvent event) { } @SubscribeEvent public static void serverLoad(ServerStartingEvent event) { } @OnlyIn(Dist.CLIENT) @SubscribeEvent public static void clientLoad(FMLClientSetupEvent event) { } } }i upload wrong code this is it
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD) public class Test { public Test() { } @SubscribeEvent public static void init(FMLCommonSetupEvent event) { Display.setTitle("mod pack by matgaw123"); } @Mod.EventBusSubscriber private static class ForgeBusEvents { // Example Forge bus event registration @SubscribeEvent public static void addFeatureToBiomes(BiomeLoadingEvent event) { } @SubscribeEvent public static void serverLoad(ServerStartingEvent event) { } @OnlyIn(Dist.CLIENT) @SubscribeEvent public static void clientLoad(FMLClientSetupEvent event) { } } }why this don t work