Posted July 3, 20196 yr Hi, where is the code that sets/updates the color for redstone wire? I'm trying to create my own redstone but the color isn't changed just by using the default redstone wire class. Thanks
July 6, 20196 yr There is an event bus subscriber that allows you to change the colour of blocks. Add this to a class (mine is called ModColourHandler): @Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD,value = Dist.CLIENT) then you need to subscribe to the event as such: @SubscribeEvent public static void registerBlockColors(ColorHandlerEvent.Block event) { that should be enough to get you going.
July 6, 20196 yr You should not need events in order to do things to your own blocks. IBlockColor should be able to do this Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
July 6, 20196 yr 4 hours ago, diesieben07 said: Yes, ColorHandlerEvent.Block is where you register your IBlockColor. My mistake. I misunderstood what that event was for. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.