Jump to content

Alesimula

Members
  • Posts

    117
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Location
    Italy
  • Personal Text
    I am a green apple!

Alesimula's Achievements

Creeper Killer

Creeper Killer (4/8)

3

Reputation

  1. YAY! But if block rendering method changes to a model, how are custom blocks renderers and textures gonna be handled? I mean, ISimpleBlockRenderingHandler won't exist anymore, what will replace it (Sorry, i'm a bit curious and maybe didn't express well (also for my bad english (Since ur probably never gonna read this far(Ur avatar looks like bewbs (Please don't ban me )))))
  2. It's actually BiomeManager.addSpawnBiome(CodeBiome)
  3. public static BiomeGenBase CodeBiome = new CodeBiomeGenBase(50); so what? you just did that ^ it's like saying: "public int randomInt = 1; why grass block hasn't that id?"
  4. ((AbstractClientPlayer) thePlayer).getLocationSkin(((AbstractClientPlayer) thePlayer).getCommandSenderName()) this should get the skin player is using (Standartd steve's one or custom one) and infact it did in 1.7.2, now it doesn't work anymore the location where minecraft looks for the skin is skins\username
  5. I know i'm just asking for modding help and even if it isn't REALLY complicated it is a bit. in my mod i use a code in the event RenderPlayerEvent.Pre wich changes player texture: mainTexture.set((EntityPlayer)thePlayer, new ResourceLocation("textures/entity/player/Glacia/snowman.png")); where mainTexture is locationSkin of AbstractClientPlayer wich i change using reflection. The problem is when setting it back to normal: in 1.7.2 i used this code mainTexture.set(thePlayer, ((AbstractClientPlayer) thePlayer).getLocationSkin(((AbstractClientPlayer) thePlayer).getCommandSenderName())); wich in 1.7.10 no longer works and sets a missing texture (purple and black) with the error "skins\whatever.png" cannot be found if i set it to null it will set steve skin and not the custom skin the player has (while the code i used did in 1.7.2) Is there a way to do that now? PS:sorry for the little bad english
  6. @SubscribeEvent public void onPlayerLogin(PlayerEvent.PlayerLoggedInEvent event) { PotionGeneric = new ItemGlacialPotion(0, false, 16777215); } well... this worked instead
  7. @SubscribeEvent public void onPlayerLogout(PlayerEvent.PlayerLoggedOutEvent event) { PotionGeneric = new ItemGlacialPotion(0, false, 16777215).setPotionName(""); } somehow it doesn't work anyway
  8. I don't want to chack when it closes the client, but when i exit a world, is there a way to check that?
  9. Thank you that worked perfectly, now i can use reflection and test my mod in both decompiled and client
  10. i recently found the code FMLForgePlugin.RUNTIME_DEOBF does it checks wether minecraft is in original client (when true) and in decompiled gradle code (when false)? it seems to be for my tests, but i want to be sure.
  11. Okay so here's the problem: I changed the player's model with a cutom model and texture with the method in the bottom of the post, but the problem is pumpkin helmet, infact pumpkin helmet is not in player's model but in renderPlayer; Is there a way in GL11 to complitely scale the player (with pumpkin) so that i can then re-scale it just for the model? public static class PlayerRendererEvent { public Field mainRenderer; public Field mainTexture; public Field globalMc; public PlayerRendererEvent() { try { mainRenderer = RendererLivingEntity.class.getDeclaredField("mainModel"); mainRenderer.setAccessible(true); mainTexture = AbstractClientPlayer.class.getDeclaredField("locationSkin"); mainTexture.setAccessible(true); globalMc = RenderGlobal.class.getDeclaredField("mc"); globalMc.setAccessible(true); } catch (NoSuchFieldException e) { e.printStackTrace(); } } @SubscribeEvent public void onPlayerRenderThirdPerson(RenderPlayerEvent.Pre event) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { mainRenderer.set(event.renderer, new ModelPlayerSnowMan(0)); event.renderer.modelBipedMain = (ModelBiped)mainRenderer.get(event.renderer); mainTexture.set((EntityPlayerSP)event.entityPlayer, new ResourceLocation("textures/entity/player/Glacia/snowman.png")); event.renderer.modelArmor = new ModelPlayerSnowMan(1); event.renderer.modelArmorChestplate = new ModelPlayerSnowMan(2); } @SubscribeEvent public void onPlayerRenderFirstPerson(RenderHandEvent event) throws IllegalArgumentException, IllegalAccessException { Minecraft mc = (Minecraft) globalMc.get(event.context); RenderPlayer renderplayer = (RenderPlayer) RenderManager.instance.getEntityRenderObject(mc.thePlayer); mainRenderer.set(renderplayer, new ModelPlayerSnowMan(0)); renderplayer.modelBipedMain = (ModelBiped)mainRenderer.get(renderplayer); mainTexture.set(mc.thePlayer, new ResourceLocation("textures/entity/player/Glacia/snowman.png")); } }
  12. I don't really understand why it says access denied (as it is an user folder) but i would suggest disabling UAC (user account control) also have you tried putting gradle forge in a folder inside desktop?
  13. MY MOD (like other mods with the same error) USED TO WORK WITH PRECEDENT 1.7.2 FORGE VERSIONS, BUT WITH BOTH LATEST AND RECOMMANDED IS NOW CRASHING WITH THE FOLLOWING ERROR: Description: Initializing game java.lang.NullPointerException: Initializing game at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.addObjectRaw(FMLControlledNamespacedRegistry.java:372) at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.set(FMLControlledNamespacedRegistry.java:55) at cpw.mods.fml.common.registry.GameData.set(GameData.java:698) at cpw.mods.fml.common.registry.GameData.<init>(GameData.java:692) at cpw.mods.fml.common.registry.GameData.freezeData(GameData.java:645) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:683) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:268) at net.minecraft.client.Minecraft.startGame(Minecraft.java:525) at net.minecraft.client.Minecraft.run(Minecraft.java:813) at net.minecraft.client.main.Main.main(SourceFile:103) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.addObjectRaw(FMLControlledNamespacedRegistry.java:372) at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.set(FMLControlledNamespacedRegistry.java:55) at cpw.mods.fml.common.registry.GameData.set(GameData.java:698) at cpw.mods.fml.common.registry.GameData.<init>(GameData.java:692) at cpw.mods.fml.common.registry.GameData.freezeData(GameData.java:645) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:683) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:268) at net.minecraft.client.Minecraft.startGame(Minecraft.java:525) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:813) at net.minecraft.client.main.Main.main(SourceFile:103) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
×
×
  • Create New...

Important Information

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