MFF

    Minecraft Forge France
    • Récent
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Groupes
    • Forge Events
      • Automatique
      • Foncé
      • Clair
    • S'inscrire
    • Se connecter

    Création de dynamite

    Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x
    1.7.10
    31 Messages 8 Publieurs 6.5k Vues 1 Watching
    Charger plus de messages
    • Du plus ancien au plus récent
    • Du plus récent au plus ancien
    • Les plus votés
    Répondre
    • Répondre à l'aide d'un nouveau sujet
    Se connecter pour répondre
    Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
    • YeyvoY Hors-ligne
      Yeyvo
      dernière édition par

      **les erreur **

      inGround1 = 0 ;     =======>    Type mismach cannot convert type from int to bolean   
      ticksInGround = 0; =======>    The field EntityArrow.ticksInGround is not visible
      inGround1++;        =======>    Type mismach cannot convert type from bolean to  int
      inGround1 >= t      =======>    The operator >= is undefined for the Type(s) bolean, int
      inGround1 = 0;      =======>     Type mismach cannot convert type from int to bolean

      je sait mais pour l’instant le arrow me convient

      1 réponse Dernière réponse Répondre Citer 0
      • DeletedD Hors-ligne
        Deleted
        dernière édition par

        Bases en Java
        Comme d’hab, j’ai envie de dire 😮

        Tes variables ne sont sûrement pas déclarés avec le bon type. Des boolean à la place de int et des conditions mal faites …

        1 réponse Dernière réponse Répondre Citer 0
        • AymericRedA Hors-ligne
          AymericRed
          dernière édition par

          Comme l’a dit Plaigon, essaye de revoir tes bases, et pour faire ton entité, sois tu prend le code de la flèche, sans modifier les variables comme tu as fait et sans l’extends, soit tu mets l’extends et tu ne met rien dans ta classe à part le constructeur et la méthode où tu vas gérer ton explosion.

          Si je vous ai aidé, n'oubliez pas d’être heureux, j'aiderai encore +

          AymericRed, moddeur expérimenté qui aide sur ce forum et qui peut accepter de faire un mod Forge rémunéré de temps en temps.

          Mes tutos : Table de craft, plugin NEI, plugin JEI, modifier l'overlay
          Je suis un membre apprécié et joueur, j'ai déjà obtenu 6 points de réputation.

          1 réponse Dernière réponse Répondre Citer 0
          • YeyvoY Hors-ligne
            Yeyvo
            dernière édition par

            dans ma classe Advence Explosion j’ai l’erreur Label0 is missing 
            la ligne ou il y a l’erreur"continue label0;"

            au faite pour le problemme d’assigniation de type au variable toujour pas resolus car quand je change en boolean j’ai encore plus d’erreur qui me disent de changer le type en int

            1 réponse Dernière réponse Répondre Citer 0
            • robin4002R Hors-ligne
              robin4002 Moddeurs confirmés Rédacteurs Administrateurs
              dernière édition par

              Si ça fait des erreurs ailleurs c’est alors qu’il faut changer les opérations et non le type de variable.

              Pour le label manquant c’est un petit truc devant les boucles :

              label0 : for(int i = 0; ….

              1 réponse Dernière réponse Répondre Citer 0
              • YeyvoY Hors-ligne
                Yeyvo
                dernière édition par

                je sais qu’il faut changer les operation mais quand je cherch sur internet il y a le meme code avec les meme erreur ❗

                1 réponse Dernière réponse Répondre Citer 0
                • robin4002R Hors-ligne
                  robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                  dernière édition par

                  Essaies déjà de comprendre le code que tu copies/colles, ça devrait t’aider à résoudre le problème.

                  1 réponse Dernière réponse Répondre Citer 0
                  • YeyvoY Hors-ligne
                    Yeyvo
                    dernière édition par

                    enfaite j’avais confondue le nom de deux variable donc logique que ca me fasse une erreur___la dynamite n’as pas de texture (entity) de plus qu’elle ne fais rien sauf le song et des déga au mobe au contacte pas a cause de l’explosion

                    
                    [13:52:40] [main/INFO] [GradleStart]: username: Yeyvo
                    [13:52:40] [main/INFO] [GradleStart]: Extra: []
                    [13:52:40] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/SUNABELKEK/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --username, Yeyvo, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
                    [13:52:40] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                    [13:52:40] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                    [13:52:40] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
                    [13:52:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
                    [13:52:40] [main/INFO] [FML]: Forge Mod Loader version 7.99.36.1558 for Minecraft 1.7.10 loading
                    [13:52:40] [main/INFO] [FML]: Java is Java HotSpot(TM) Client VM, version 1.8.0_91, running on Windows 7:x86:6.1, installed at C:\Program Files\Java\jre1.8.0_91
                    [13:52:40] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                    [13:52:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
                    [13:52:41] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
                    [13:52:41] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
                    [13:52:41] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                    [13:52:41] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
                    [13:52:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                    [13:52:41] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                    [13:52:41] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                    [13:52:41] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                    [13:52:42] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
                    [13:52:44] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
                    [13:52:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                    [13:52:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
                    [13:52:45] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                    [13:52:45] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
                    [13:52:45] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
                    [13:52:45] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
                    [13:52:48] [main/INFO]: Setting user: Yeyvo
                    [13:52:51] [Client thread/INFO]: LWJGL Version: 2.9.1
                    [13:52:56] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: –-- Minecraft Crash Report ----
                    // There are four lights!
                    
                    Time: 06/05/16 13:52
                    Description: Loading screen debug info
                    
                    This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
                    
                    A detailed walkthrough of the error, its code path and all known details is as follows:
                    ---------------------------------------------------------------------------------------
                    
                    -- System Details --
                    Details:
                    Minecraft Version: 1.7.10
                    Operating System: Windows 7 (x86) version 6.1
                    Java Version: 1.8.0_91, Oracle Corporation
                    Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
                    Memory: 967396552 bytes (922 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB)
                    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
                    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
                    FML: 
                    GL info: ' Vendor: 'Intel' Version: '3.1.0 - Build 9.17.10.3347' Renderer: 'Intel(R) HD Graphics 3000'
                    [13:52:56] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
                    [13:52:56] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1558 Initialized
                    [13:52:57] [Client thread/INFO] [FML]: Replaced 183 ore recipies
                    [13:52:58] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
                    [13:52:58] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
                    [13:52:58] [Client thread/INFO] [FML]: Searching C:\Users\SUNABELKEK\Desktop\forge\eclipse\mods for mods
                    [13:53:20] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
                    [13:53:21] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, paladium] at CLIENT
                    [13:53:21] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, paladium] at SERVER
                    [13:53:22] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Paladium
                    [13:53:22] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
                    [13:53:22] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
                    [13:53:22] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
                    [13:53:22] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
                    [13:53:22] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
                    [13:53:23] [Client thread/INFO] [FML]: Applying holder lookups
                    [13:53:23] [Client thread/INFO] [FML]: Holder lookups applied
                    [13:53:23] [Client thread/INFO] [FML]: Injecting itemstacks
                    [13:53:23] [Client thread/INFO] [FML]: Itemstack injection complete
                    [13:53:24] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                    [13:53:24] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
                    [13:53:24] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
                    [13:53:24] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                    [13:53:32] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
                    [13:53:32] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                    [13:53:32] [Sound Library Loader/INFO]: Sound engine started
                    [13:53:42] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas
                    [13:53:42] [Client thread/INFO]: Created: 16x16 textures/items-atlas
                    [13:53:42] [Client thread/INFO] [FML]: Injecting itemstacks
                    [13:53:42] [Client thread/INFO] [FML]: Itemstack injection complete
                    [13:53:42] [Client thread/INFO] [FML]:   Unknown recipe class! ma.Yeyvo.Paladium.common.recipe.recipemachine Modder please refer to net.minecraftforge.oredict.RecipeSorter
                    [13:53:42] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
                    [13:53:42] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Paladium
                    [13:53:44] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
                    [13:53:45] [Client thread/INFO]: Created: 512x256 textures/items-atlas
                    [13:53:45] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                    [13:53:45] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
                    [13:53:45] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
                    [13:53:45] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                    [13:53:45] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                    [13:53:45] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
                    [13:53:45] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
                    [13:53:45] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                    [13:53:45] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
                    [13:53:45] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                    [13:53:45] [Sound Library Loader/INFO]: Sound engine started
                    [13:54:12] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
                    [13:54:12] [Server thread/INFO]: Generating keypair
                    [13:54:13] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
                    [13:54:13] [Server thread/INFO] [FML]: Applying holder lookups
                    [13:54:13] [Server thread/INFO] [FML]: Holder lookups applied
                    [13:54:13] [Server thread/INFO] [FML]: Loading dimension 0 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@292d94)
                    [13:54:14] [Server thread/INFO] [FML]: Loading dimension 1 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@292d94)
                    [13:54:14] [Server thread/INFO] [FML]: Loading dimension -1 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@292d94)
                    [13:54:14] [Server thread/INFO]: Preparing start region for level 0
                    [13:54:15] [Server thread/INFO]: Preparing spawn area: 16%
                    [13:54:16] [Server thread/INFO]: Changing view distance to 2, from 10
                    [13:54:18] [Netty Client IO #0/INFO] [FML]: Server protocol version 2
                    [13:54:18] [Netty IO #1/INFO] [FML]: Client protocol version 2
                    [13:54:18] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : paladium@1.0.0,FML@7.10.99.99,Forge@10.13.4.1558,mcp@9.05
                    [13:54:18] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
                    [13:54:18] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
                    [13:54:18] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
                    [13:54:18] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
                    [13:54:18] [Server thread/INFO]: Yeyvo[local:E:3fc5e328] logged in with entity id 229 at (221.77814834129305, 5.6232412136219585, 645.2166616744742)
                    [13:54:19] [Server thread/INFO]: Yeyvo a rejoint la partie
                    [13:54:20] [Server thread/INFO]: Saving and pausing game…
                    [13:54:21] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Overworld
                    [13:54:21] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Nether
                    [13:54:21] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/The End
                    [13:54:23] [Client thread/WARN]: Failed to load texture: minecraft:textures/entity/dynamite.png
                    java.io.FileNotFoundException: minecraft:textures/entity/dynamite.png
                    at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
                    at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
                    at net.minecraft.client.renderer.texture.SimpleTexture.loadTexture(SimpleTexture.java:35) ~[SimpleTexture.class:?]
                    at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
                    at net.minecraft.client.renderer.texture.TextureManager.bindTexture(TextureManager.java:45) [TextureManager.class:?]
                    at net.minecraft.client.renderer.entity.Render.bindTexture(Render.java:60) [Render.class:?]
                    at net.minecraft.client.renderer.entity.Render.bindEntityTexture(Render.java:55) [Render.class:?]
                    at ma.Yeyvo.Paladium.common.Dyna.RenderDynamite.renderDynamite(RenderDynamite.java:24) [RenderDynamite.class:?]
                    at ma.Yeyvo.Paladium.common.Dyna.RenderDynamite.doRender(RenderDynamite.java:82) [RenderDynamite.class:?]
                    at net.minecraft.client.renderer.entity.RenderManager.func_147939_a(RenderManager.java:300) [RenderManager.class:?]
                    at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:278) [RenderManager.class:?]
                    at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:251) [RenderManager.class:?]
                    at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:527) [RenderGlobal.class:?]
                    at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1300) [EntityRenderer.class:?]
                    at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1087) [EntityRenderer.class:?]
                    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067) [Minecraft.class:?]
                    at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?]
                    at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
                    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
                    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
                    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
                    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
                    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
                    at GradleStart.main(Unknown Source) [start/:?]
                    [13:55:29] [Server thread/INFO]: Saving and pausing game…
                    [13:55:29] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Overworld
                    [13:55:29] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Nether
                    [13:55:29] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/The End
                    [13:55:29] [Server thread/INFO]: Stopping server
                    [13:55:29] [Server thread/INFO]: Saving players
                    [13:55:29] [Server thread/INFO]: Saving worlds
                    [13:55:29] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Overworld
                    [13:55:29] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Nether
                    [13:55:29] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/The End
                    [13:55:30] [Server thread/INFO] [FML]: Unloading dimension 0
                    [13:55:30] [Server thread/INFO] [FML]: Unloading dimension -1
                    [13:55:30] [Server thread/INFO] [FML]: Unloading dimension 1
                    [13:55:30] [Server thread/INFO] [FML]: Applying holder lookups
                    [13:55:30] [Server thread/INFO] [FML]: Holder lookups applied
                    [13:55:31] [Client thread/INFO]: Stopping!
                    [13:55:31] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                    [13:55:31] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
                    [13:55:31] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
                    [13:55:31] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                    Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
                    
                    

                    1 réponse Dernière réponse Répondre Citer 0
                    • DeletedD Hors-ligne
                      Deleted
                      dernière édition par

                      Classe du render et du client proxy stp

                      1 réponse Dernière réponse Répondre Citer 0
                      • YeyvoY Hors-ligne
                        Yeyvo
                        dernière édition par

                        RendererDynamite

                        import org.lwjgl.opengl.GL11;
                        
                        import net.minecraft.client.renderer.Tessellator;
                        import net.minecraft.client.renderer.entity.Render;
                        import net.minecraft.entity.Entity;
                        import net.minecraft.util.MathHelper;
                        import net.minecraft.util.ResourceLocation;
                        
                        public class RenderDynamite extends Render
                        {
                        public RenderDynamite()
                        {
                            pitch = 40F;
                        }
                        
                        public void renderDynamite(DynamiteEntity entityarrow, double d, double d1, double d2, 
                                float f, float f1)
                        {
                        bindEntityTexture(entityarrow);
                            GL11.glPushMatrix();
                            GL11.glTranslatef((float)d, (float)d1, (float)d2);
                            GL11.glRotatef(entityarrow.rotationYaw  + 90F, 0.0F, 1.0F, 0.0F);
                            GL11.glRotatef(entityarrow.prevRotationPitch  + (entityarrow.rotationPitch  - entityarrow.prevRotationPitch ) * f1, 0.0F, 0.0F, 1.0F);
                            Tessellator tessellator = Tessellator.instance;
                            int i = 0;
                            float f2 = 0.0F;
                            float f3 = 0.5F;
                            float f4 = (float)(0 + i * 10) / 32F;
                            float f5 = (float)(5 + i * 10) / 32F;
                            float f6 = 0.0F;
                            float f7 = 0.15625F;
                            float f8 = (float)(5 + i * 10) / 32F;
                            float f9 = (float)(10 + i * 10) / 32F;
                            float f10 = 0.05625F;
                            GL11.glEnable(32826);
                            float f11 = -f1;
                            if(f11 > 0.0F)
                            {
                                float f12 = -MathHelper.sin(f11 * 3F) * f11;
                                GL11.glRotatef(f12, 0.0F, 0.0F, 1.0F);
                            }
                            GL11.glRotatef(45F, 1.0F, 0.0F, 0.0F);
                            GL11.glScalef(f10, f10, f10);
                            GL11.glTranslatef(-4F, 0.0F, 0.0F);
                            GL11.glNormal3f(f10, 0.0F, 0.0F);
                            tessellator.startDrawingQuads();
                            tessellator.addVertexWithUV(-7D, -2D, -2D, f6, f8);
                            tessellator.addVertexWithUV(-7D, -2D, 2D, f7, f8);
                            tessellator.addVertexWithUV(-7D, 2D, 2D, f7, f9);
                            tessellator.addVertexWithUV(-7D, 2D, -2D, f6, f9);
                            tessellator.draw();
                            GL11.glNormal3f(-f10, 0.0F, 0.0F);
                            tessellator.startDrawingQuads();
                            tessellator.addVertexWithUV(-7D, 2D, -2D, f6, f8);
                            tessellator.addVertexWithUV(-7D, 2D, 2D, f7, f8);
                            tessellator.addVertexWithUV(-7D, -2D, 2D, f7, f9);
                            tessellator.addVertexWithUV(-7D, -2D, -2D, f6, f9);
                            tessellator.draw();
                            for(int j = 0; j < 4; j++)
                            {
                                GL11.glRotatef(90F, 1.0F, 0.0F, 0.0F);
                                GL11.glNormal3f(0.0F, 0.0F, f10);
                                tessellator.startDrawingQuads();
                                tessellator.addVertexWithUV(-8D, -2D, 0.0D, f2, f4);
                                tessellator.addVertexWithUV(8D, -2D, 0.0D, f3, f4);
                                tessellator.addVertexWithUV(8D, 2D, 0.0D, f3, f5);
                                tessellator.addVertexWithUV(-8D, 2D, 0.0D, f2, f5);
                                tessellator.draw();
                            }
                        
                            GL11.glDisable(32826);
                            GL11.glPopMatrix();
                        }
                        
                        public void doRender(Entity entity, double d, double d1, double d2, float f, float f1)
                        {
                            renderDynamite((DynamiteEntity)entity, d, d1, d2, f, f1);
                        }
                        
                        protected ResourceLocation getEntityTexture(Entity entity)
                        {
                            return WeaponModResources.Textures.dynamite;
                        }
                        
                        public float pitch;
                        }
                        
                        

                        ClientProxy

                        import cpw.mods.fml.client.registry.RenderingRegistry;
                        import ma.Yeyvo.Paladium.common.Dyna.DynamiteEntity;
                        import ma.Yeyvo.Paladium.common.Dyna.DynamiteEntity2;
                        import ma.Yeyvo.Paladium.common.Dyna.RenderDynamite;
                        
                        public class ClientProxy extends CommonProxy 
                        {
                        
                        @Override
                        
                            public void registerRender()
                            {
                                RenderingRegistry.registerEntityRenderingHandler(DynamiteEntity.class, new RenderDynamite());
                                RenderingRegistry.registerEntityRenderingHandler(DynamiteEntity2.class, new RenderDynamite());
                            }
                        }
                        
                        

                        1 réponse Dernière réponse Répondre Citer 0
                        • robin4002R Hors-ligne
                          robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                          dernière édition par

                          return WeaponModResources.Textures.dynamite;

                          Quelle est la valeur de cette variable ?

                          1 réponse Dernière réponse Répondre Citer 0
                          • YeyvoY Hors-ligne
                            Yeyvo
                            dernière édition par

                            @‘robin4002’:

                            return WeaponModResources.Textures.dynamite;

                            Quelle est la valeur de cette variable ?

                            import net.minecraft.util.ResourceLocation;

                            public abstract class WeaponModResources
                            {
                                public static abstract class Textures
                                {

                            public static final ResourceLocation dynamite = new ResourceLocation(“textures/entity/dynamite.png”);

                            public Textures()
                                    {
                                    }
                                }

                            public WeaponModResources()
                                {
                                }
                            }

                            1 réponse Dernière réponse Répondre Citer 0
                            • DeletedD Hors-ligne
                              Deleted
                              dernière édition par

                              new ResourceLocation(“textures/entity/dynamite.png”);
                              –->
                              new ResourceLocation(ClasseDeTonMod.modid, “textures/entity/dynamite.png”);

                              1 réponse Dernière réponse Répondre Citer 0
                              • robin4002R Hors-ligne
                                robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                                dernière édition par

                                Par contre pourquoi avoir déclaré la variable ResourceLocation dans cette classe et pas directement dans la fonction getEntityTexture ?

                                1 réponse Dernière réponse Répondre Citer 0
                                • Z Hors-ligne
                                  ZephyrinGames
                                  dernière édition par

                                  il faut pas un “:” avant le “texture/…”

                                  1 réponse Dernière réponse Répondre Citer 0
                                  • YeyvoY Hors-ligne
                                    Yeyvo
                                    dernière édition par

                                    @Plaignon
                                    sa a fix la texture mais il n’y a toujours pas ni de particule ni de dégât …

                                    @Robin
                                    car dans le futur j’aurai plusieurs type de dynamite et sa me permettra de mieux m’organiser

                                    EDIT= Ahh!! oui la dynamite la moin puissante se lance d’une façons chelou

                                    1 réponse Dernière réponse Répondre Citer 0
                                    • DeletedD Hors-ligne
                                      Deleted
                                      dernière édition par

                                      [font=Ubuntu, sans-serifse lance d’une façons chelou]

                                      C’est-à-dire ?

                                      Et pour les particules et les dégâts, refais clairement une classe Entity de 0, ça sera mieux, car là, à partir d’un extends EntityArrow, déjà POO parlant, ça fait pas pro, car y’a aucune caractéristiques communes entre EntityArrow et ton entity dymanite…Sa sert à rien de l’extends pour ensuite te retapper 50 fonctions à override, tu vois ? Et les particules et dégâts seront à gérer dans la méthode onLivingUpdate, si collision il y a 😃

                                      1 réponse Dernière réponse Répondre Citer 0
                                      • YeyvoY Hors-ligne
                                        Yeyvo
                                        dernière édition par

                                        youpi T.T
                                         je dois refaire mes 2 entity

                                        je mis mets maintenant mais la il me faudra de l’aide (beaucoup)

                                        je la lance elle se lance derrière ou …

                                        1 réponse Dernière réponse Répondre Citer 0
                                        • DeletedD Hors-ligne
                                          Deleted
                                          dernière édition par

                                          Bah sois + précis, sur quoi penses-tu galérer ?

                                          1 réponse Dernière réponse Répondre Citer 0
                                          • YeyvoY Hors-ligne
                                            Yeyvo
                                            dernière édition par

                                            Resolu merci a tout le monde

                                            1 réponse Dernière réponse Répondre Citer 0
                                            • 1
                                            • 2
                                            • 2 / 2
                                            • Premier message
                                              Dernier message
                                            Design by Woryk
                                            ContactMentions Légales

                                            MINECRAFT FORGE FRANCE © 2024

                                            Powered by NodeBB