Posted May 27, 20205 yr I've seen many mods and even minecraft servers that are able to outline blocks in white. I've also seen it in vanilla minecraft. How do you do this in java? (what is the method) Thank you!
May 27, 20205 yr I do not know how to do it myself, I haven't had the need to yet, but: 16 minutes ago, sun-toast said: I've also seen it in vanilla minecraft. Look through the vanilla sources in the places where you've seen it happen (for a block or item or whatever it was that you saw), and see if you can do it in the same way. The vanilla source shows how to do all kinds of things
May 27, 20205 yr Author Now that I think about it I only saw mobs have a white outline, never blocks. I couldn't find anything in the source code for creating a white outline on blocks.
May 27, 20205 yr Hi Perhaps have a look at this code for inspiration https://github.com/TheGreyGhost/MinecraftByExample/blob/master/src/main/java/minecraftbyexample/usefultools/debugging/DebugBlockVoxelShapeHighlighter.java you will also need MinecraftForge.EVENT_BUS.register(DebugBlockVoxelShapeHighlighter.class); -TGG
May 28, 20205 yr Author 59 minutes ago, TheGreyGhost said: Hi Perhaps have a look at this code for inspiration https://github.com/TheGreyGhost/MinecraftByExample/blob/master/src/main/java/minecraftbyexample/usefultools/debugging/DebugBlockVoxelShapeHighlighter.java you will also need MinecraftForge.EVENT_BUS.register(DebugBlockVoxelShapeHighlighter.class); -TGG Thank you so much I've been using your minecraftbyexample tutorial for half a year and it's been the most useful tutorial i've seen so far. I never saw the VoxelShapeHighlighter though. Anyways thank you for doing what you do and helping everyone learn minecraft modding.
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.