Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

DERPZ774

Members
  • Posts

    7
  • Joined

  • Last visited

DERPZ774's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Doing this fixed the server issue, however now the client wont load https://hastebin.com/yunamudeqi.properties Code : @Mod.EventBusSubscriber(modid = FalloutMod.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT) public class ModEventClientBusEvents { @SubscribeEvent public static void clientSetup(final FMLClientSetupEvent event) { ItemBlockRenderTypes.setRenderLayer(ModBlocks.LAMP.get(), RenderType.cutout()); ModItemProperties.addCustomItemProperties(); MenuScreens.register(ModMenuTypes.NUKA_COLA_OPENER_MENU.get(), NukaColaOpenerScreen::new); EntityRenderers.register(ModEntityTypes.TEST.get(), TestRenderer::new); } @SubscribeEvent public static void renderPlayerPre(RenderPlayerEvent.Pre event) { if (event.getPlayer().getInventory().getArmor(2).is(ModItems.VAULT_SUIT.get())) { event.getRenderer().getModel().leftSleeve.visible = false; event.getRenderer().getModel().rightSleeve.visible = false; //event.getRenderer().getModel().hat.visible = false; event.getRenderer().getModel().jacket.visible = false; event.getRenderer().getModel().leftPants.visible = false; event.getRenderer().getModel().rightPants.visible = false; event.getRenderer().getModel().head.visible = false; } /// TODO: 8/19/2022 edit statements here for all armor /// TODO: 8/20/2022 Fix server crashing } @SubscribeEvent public static void registerArmorRenderer(final EntityRenderersEvent.AddLayers event) { GeoArmorRenderer.registerArmorRenderer(UnderArmorItem.class, new UnderArmorRenderer()); /// TODO: 8/19/2022 Armor renders here } }
  2. I ran into an issue while running it on a server. https://hastebin.com/qajuvasifo.properties @SubscribeEvent public static void renderPlayerPre(RenderPlayerEvent.Pre event) { if (event.getPlayer().getInventory().getArmor(2).is(ModItems.VAULT_SUIT.get())) { event.getRenderer().getModel().leftSleeve.visible = false; event.getRenderer().getModel().rightSleeve.visible = false; //event.getRenderer().getModel().hat.visible = false; event.getRenderer().getModel().jacket.visible = false; event.getRenderer().getModel().leftPants.visible = false; event.getRenderer().getModel().rightPants.visible = false; event.getRenderer().getModel().head.visible = false; } /// TODO: 8/19/2022 edit statements here for all armor /// TODO: 8/20/2022 Fix server crashing } this is the code
  3. So I'm trying to make it so the overlay of the player skin "turns off" essentially after they equip certain armor, how would I go about doing that?
  4. Trying to make an item in the inventory render differently than what it renders in the hand like how the spyglass and trident items do it. How would I go about doing this?
×
×
  • Create New...

Important Information

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