Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/05/20 in all areas

  1. Assign their values when they are being registered. For example public static Item TEST_ITEM = null; @SubscribeEvent public static void registerItems(RegistryEvent.Register<Item> event) { event.getRegistry().registerAll( TEST_ITEM = new Item(); ); }
    1 point
  2. I found what i was looking for. It was very simple. This is the code if anyone else ever needs it. mc.playerController.processRightClick(mc.player, mc.world, EnumHand.MAIN_HAND);
    1 point
  3. You need to change the render type to either cutout/cutout mipped(if there's no transparency) or transparent(if there is) via RenderTypeLookup::setRenderLayer. If you're model also isn't a full cube, you should adjust the VoxelShape (via Block::getShape) as well so it encapsulates only the space your model takes up.
    1 point
  4. 1 point
  5. Set the render type of the block in your client setup using RenderTypeLookup.setRenderLayer(block, rendertype);
    1 point
  6. We will not provide support for custom clients, especially not cheats or "hacks".
    0 points
  7. In your registries 😞 like this event.getRegistry().register(new TableBRUUUHBlock(Block.Properties.create(Material.IRON).sound(SoundType.STONE)).setRegistryName("furnmod", "table"));
    0 points
  8. Make a separate class for your table block (or a class which only extends to Block class and calls this method so if you would add more blocks like this you can extend those to that class so they would automatically get rendered in the correct way but i would make separate classes) or a much better solution rather than just using the render type method make voxel shapes matching your block's model it would also make your blocks looking a lot better (in my opinion)
    0 points
  9. Simply delete the Example mod package in your src/main/java/com it should fix it i mean the Example mod folder isn't even used for anything it's only there as an example (of course XD) so just delete it and it should be fine you wouldn't use the Example mod folder anyway.
    0 points
  10. Try to build the mod and use it in a normal client with forge. You can find build result in build\libs
    0 points
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.