MFF

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

    Créer un Block similaire au Block Barrier

    Planifier Épinglé Verrouillé Déplacé Résolu 1.9.x et 1.10.x
    1.10.x
    43 Messages 7 Publieurs 7.4k 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.
    • jules552J Hors-ligne
      jules552
      dernière édition par

      @‘BrokenSwing’:

      Je crois que c’est ModelLoader.setCustomStateMapper(Block, IStateMapper)

      Du coup je fais comme vous pouvez m’expliquer ? par ce que le blockstate je vois pas comment faire du coup ?

      parce que pour le visible=false ça marche comment ?

      {
            “variants”: {
                   “visible=true”: {
                          “model”: “adamantium:BlockLumineux”
                   },
                   “visible=false”: {
                          “model”: “???”
                   }
             }
      }

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

        Tu met un bloc avec une texture transparente

        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

          Normalement la fonction getRenderType permet déjà de ne plus rien rendre si le return est EnumBlockRenderType.INVISIBLE.

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

            @‘BrokenSwing’:

            Tu met un bloc avec une texture transparente

            ça ne marche toujours pas même si je remplace par un block qui est invisible, ça reste la même chose

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

              @‘BrokenSwing’:

              Tu met un bloc avec une texture transparente

              Bon la texture visible apparait mais la invisible ne fonctionne pas donc le block reste toujours visible

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

                Il y a bien un changement de state lorsque tu prend le bloc dans tes mains et que tu l’enlève ? Pour tester mais des messages de debug. As-tu des messages d’erreur dans tes logs ?

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

                  @‘BrokenSwing’:

                  Il y a bien un changement de state lorsque tu prend le bloc dans tes mains et que tu l’enlève ? Pour tester mais des messages de debug. As-tu des messages d’erreur dans tes logs ?

                  Non je ne vois pas de changement de state , et toujours des messages de ce genre dans la logs :

                  [17:15:34] [Client thread/ERROR] [FML]: Exception loading model for variant adamantium:Texture#normal for blockstate “adamantium:Texture”
                  net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model adamantium:Texture#normal with loader VariantLoader.INSTANCE, skipping
                  at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]
                  at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:241) ~[ModelLoader.class:?]
                  at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:145) ~[ModelBakery.class:?]
                  at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:229) ~[ModelLoader.class:?]
                  at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:146) ~[ModelLoader.class:?]
                  at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?]
                  at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:132) [SimpleReloadableResourceManager.class:?]
                  at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:113) [SimpleReloadableResourceManager.class:?]
                  at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:799) [Minecraft.class:?]
                  at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:338) [FMLClientHandler.class:?]
                  at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) [Minecraft.class:?]
                  at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?]
                  at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                  at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]
                  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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                  at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]
                  at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
                  at GradleStart.main(GradleStart.java:26) [start/:?]
                  Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException
                  at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:78) ~[ModelBlockDefinition.class:?]
                  at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1183) ~[ModelLoader$VariantLoader.class:?]
                  at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
                  … 24 more

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

                    Tu as un bloc qui s’appelle Texture ?

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

                      @‘BrokenSwing’:

                      Tu as un bloc qui s’appelle Texture ?

                      Euh oui j’ai un Block qui s’appelle Texture c’est pour un test

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

                        Fait un debug de la fonction getActualState avec des print de partout puis dit-nous ce qui ne va pas

                        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

                          Mets ton curseur sur le bloc, appuies sur F3, l’état de bloc visible vaut quelle valeur ?

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

                            @‘robin4002’:

                            Mets ton curseur sur le bloc, appuies sur F3, l’état de bloc visible vaut quelle valeur ?

                            visible : false

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

                              @‘BrokenSwing’:

                              Fait un debug de la fonction getActualState avec des print de partout puis dit-nous ce qui ne va pas

                              Tu veux que je les mettent ou excuse moi je suis assez novice donc me faut un peu d’aide 🙂

                              tient voilà la class

                              package Blocks;
                              
                              import javax.annotation.Nullable;
                              
                              import fr.jules552.mod.init.BlocksMod;
                              import net.minecraft.block.Block;
                              import net.minecraft.block.material.Material;
                              import net.minecraft.block.properties.IProperty;
                              import net.minecraft.block.properties.PropertyBool;
                              import net.minecraft.block.state.BlockStateContainer;
                              import net.minecraft.block.state.IBlockState;
                              import net.minecraft.client.Minecraft;
                              import net.minecraft.init.Blocks;
                              import net.minecraft.item.Item;
                              import net.minecraft.item.ItemStack;
                              import net.minecraft.util.BlockRenderLayer;
                              import net.minecraft.util.EnumBlockRenderType;
                              import net.minecraft.util.math.AxisAlignedBB;
                              import net.minecraft.util.math.BlockPos;
                              import net.minecraft.world.IBlockAccess;
                              import net.minecraft.world.World;
                              import net.minecraftforge.fml.common.FMLCommonHandler;
                              import net.minecraftforge.fml.relauncher.Side;
                              import net.minecraftforge.fml.relauncher.SideOnly;
                              
                              public class LumineuxBlock extends Block {
                              
                              public static final PropertyBool VISIBLE = PropertyBool.create("visible");
                              
                              public LumineuxBlock(Material materialIn) {
                              super(materialIn);
                              this.setBlockUnbreakable();
                              this.setLightOpacity(0);
                              this.setResistance(6000001.0F);
                              this.translucent = false;
                              
                              }
                              
                              @Nullable
                              public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, World worldIn, BlockPos pos) {
                              return NULL_AABB;
                              }
                              
                              @SideOnly(Side.CLIENT)
                              public float getAmbientOcclusionLightValue(IBlockState state) {
                              return 1.0F;
                              }
                              
                              public IBlockState getActualState(IBlockState state, IBlockAccess worldIn, BlockPos pos) {
                              if (FMLCommonHandler.instance().getSide().isClient()) {
                              return getClientState(state);
                              }
                              return state.withProperty(VISIBLE, Boolean.valueOf(false));
                              }
                              
                              @SideOnly(Side.CLIENT)
                              private IBlockState getClientState(IBlockState state) {
                              ItemStack stack1 = Minecraft.getMinecraft().thePlayer.getHeldItemMainhand();
                              ItemStack stack2 = Minecraft.getMinecraft().thePlayer.getHeldItemOffhand();
                              if ((stack1 != null && stack1.getItem() == Item.getItemFromBlock(this)) || (stack2 != null && stack2.getItem() == Item.getItemFromBlock(this))) {
                              state.withProperty(VISIBLE, Boolean.valueOf(true)); // visible
                              }
                              return state.withProperty(VISIBLE, Boolean.valueOf(false));
                              }
                              
                              public EnumBlockRenderType getRenderType(IBlockState state) {
                              if (state.getValue(VISIBLE)) {
                              return EnumBlockRenderType.MODEL;
                              }
                              return EnumBlockRenderType.INVISIBLE;
                              }
                              
                              public boolean isFullCube(IBlockState state) {
                              return false;
                              }
                              
                              public boolean isOpaqueCube(IBlockState state) {
                              return false;
                              }
                              
                              public int getMetaFromState(IBlockState state) {
                              return 0;
                              }
                              
                              protected BlockStateContainer createBlockState() {
                              return new BlockStateContainer(this, new IProperty[] { VISIBLE });
                              }
                              
                              }
                              
                              

                              Si tu pouvais me la compléter avec tes messages de debug car je vois pas vraiment ou les placer, Merci d’avance 🙂

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

                                Manque un return :

                                
                                @SideOnly(Side.CLIENT)
                                private IBlockState getClientState(IBlockState state) {
                                ItemStack stack1 = Minecraft.getMinecraft().thePlayer.getHeldItemMainhand();
                                ItemStack stack2 = Minecraft.getMinecraft().thePlayer.getHeldItemOffhand();
                                if ((stack1 != null && stack1.getItem() == Item.getItemFromBlock(this)) || (stack2 != null && stack2.getItem() == Item.getItemFromBlock(this))) {
                                return state.withProperty(VISIBLE, Boolean.valueOf(true)); // visible
                                }
                                return state.withProperty(VISIBLE, Boolean.valueOf(false));
                                }
                                
                                
                                1 réponse Dernière réponse Répondre Citer 0
                                • jules552J Hors-ligne
                                  jules552
                                  dernière édition par

                                  @‘BrokenSwing’:

                                  Manque un return :

                                  
                                  @SideOnly(Side.CLIENT)
                                  private IBlockState getClientState(IBlockState state) {
                                  ItemStack stack1 = Minecraft.getMinecraft().thePlayer.getHeldItemMainhand();
                                  ItemStack stack2 = Minecraft.getMinecraft().thePlayer.getHeldItemOffhand();
                                  if ((stack1 != null && stack1.getItem() == Item.getItemFromBlock(this)) || (stack2 != null && stack2.getItem() == Item.getItemFromBlock(this))) {
                                  return state.withProperty(VISIBLE, Boolean.valueOf(true)); // visible
                                  }
                                  return state.withProperty(VISIBLE, Boolean.valueOf(false));
                                  }
                                  
                                  

                                  Merci bon maintenant ça change bien de state ça passe de visible: true quand j’ai le block en main et visible: false quand je l’ai plus mais la texture ne change par contre pas, je veux dire elle le bloque garde la même texture et ne devient pas invisible comme il le devrait.  😢

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

                                    Fait voir tout tes logs

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

                                      @‘BrokenSwing’:

                                      Fait voir tout tes logs

                                      Voilà mes logs de lancement du jeu :

                                      2016-07-25 18:10:18,236 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
                                      2016-07-25 18:10:18,237 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
                                      [18:10:18] [main/INFO] [GradleStart]: Extra: []
                                      [18:10:18] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/xxjul/.gradle/caches/minecraft/assets, --assetIndex, 1.10, --accessToken{REDACTED}, --version, 1.10.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
                                      [18:10:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
                                      [18:10:18] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
                                      [18:10:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
                                      [18:10:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
                                      [18:10:18] [main/INFO] [FML]: Forge Mod Loader version 12.18.1.2018 for Minecraft 1.10.2 loading
                                      [18:10:18] [main/INFO] [FML]: Java is Java HotSpot™ 64-Bit Server VM, version 1.8.0_101, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_101
                                      [18:10:18] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                                      [18:10:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
                                      [18:10:18] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
                                      [18:10:18] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
                                      [18:10:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
                                      [18:10:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
                                      [18:10:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                                      [18:10:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
                                      [18:10:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
                                      [18:10:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
                                      [18:10:18] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
                                      [18:10:20] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
                                      [18:10:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
                                      [18:10:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
                                      [18:10:21] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                                      [18:10:21] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
                                      [18:10:21] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
                                      [18:10:21] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
                                      2016-07-25 18:10:22,340 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
                                      2016-07-25 18:10:22,385 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
                                      2016-07-25 18:10:22,389 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
                                      [18:10:22] [Client thread/INFO]: Setting user: Player921
                                      [18:10:29] [Client thread/WARN]: Skipping bad option: lastServer:
                                      [18:10:29] [Client thread/INFO]: LWJGL Version: 2.9.4
                                      [18:10:30] [Client thread/INFO] [STDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:221]: –-- Minecraft Crash Report ----
                                      // I bet Cylons wouldn’t have this problem.

                                      Time: 25/07/16 18:10
                                      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.10.2
                                      Operating System: Windows 10 (amd64) version 10.0
                                      Java Version: 1.8.0_101, Oracle Corporation
                                      Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
                                      Memory: 656456072 bytes (626 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
                                      JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
                                      IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
                                      FML: 
                                      Loaded coremods (and transformers): 
                                      GL info: ’ Vendor: ‘Intel’ Version: ‘4.3.0 - Build 20.19.15.4331’ Renderer: ‘Intel® HD Graphics 4600’
                                      [18:10:30] [Client thread/INFO] [FML]: MinecraftForge v12.18.1.2018 Initialized
                                      [18:10:30] [Client thread/INFO] [FML]: Replaced 233 ore recipes
                                      [18:10:31] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
                                      [18:10:31] [Client thread/INFO] [FML]: Searching C:\Users\xxjul\Desktop\Forge\run\mods for mods
                                      [18:10:33] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
                                      [18:10:33] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, adamantium] at CLIENT
                                      [18:10:33] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, adamantium] at SERVER
                                      [18:10:34] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Adamantium
                                      [18:10:34] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
                                      [18:10:34] [Client thread/INFO] [FML]: Found 423 ObjectHolder annotations
                                      [18:10:34] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
                                      [18:10:34] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
                                      [18:10:35] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
                                      [18:10:35] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
                                      [18:10:35] [Client thread/INFO] [FML]: Applying holder lookups
                                      [18:10:35] [Client thread/INFO] [FML]: Holder lookups applied
                                      [18:10:35] [Client thread/INFO] [FML]: Injecting itemstacks
                                      [18:10:35] [Client thread/INFO] [FML]: Itemstack injection complete
                                      [18:10:35] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: OUTDATED Target: 12.18.1.2026
                                      [18:10:39] [Sound Library Loader/INFO]: Starting up SoundSystem…
                                      [18:10:40] [Thread-8/INFO]: Initializing LWJGL OpenAL
                                      [18:10:40] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                                      [18:10:40] [Thread-8/INFO]: OpenAL initialized.
                                      [18:10:40] [Sound Library Loader/INFO]: Sound engine started
                                      [18:10:48] [Client thread/INFO] [FML]: Max texture size: 16384
                                      [18:10:48] [Client thread/INFO]: Created: 16x16 textures-atlas
                                      [18:10:49] [Client thread/ERROR] [FML]: Exception loading model for variant adamantium:Texture#normal for blockstate “adamantium:Texture”
                                      net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model adamantium:Texture#normal with loader VariantLoader.INSTANCE, skipping
                                      at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]
                                      at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:241) ~[ModelLoader.class:?]
                                      at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:145) ~[ModelBakery.class:?]
                                      at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:229) ~[ModelLoader.class:?]
                                      at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:146) ~[ModelLoader.class:?]
                                      at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?]
                                      at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:122) [SimpleReloadableResourceManager.class:?]
                                      at net.minecraft.client.Minecraft.startGame(Minecraft.java:540) [Minecraft.class:?]
                                      at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?]
                                      at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
                                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
                                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]
                                      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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
                                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
                                      at GradleStart.main(GradleStart.java:26) [start/:?]
                                      Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException
                                      at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:78) ~[ModelBlockDefinition.class:?]
                                      at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1183) ~[ModelLoader$VariantLoader.class:?]
                                      at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
                                      … 21 more
                                      [18:10:49] [Client thread/ERROR] [FML]: Exception loading blockstate for the variant adamantium:Texture#normal: 
                                      java.lang.Exception: Could not load model definition for variant adamantium:Texture
                                      at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:274) ~[ModelLoader.class:?]
                                      at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:121) ~[ModelBakery.class:?]
                                      at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:229) ~[ModelLoader.class:?]
                                      at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:146) ~[ModelLoader.class:?]
                                      at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?]
                                      at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:122) [SimpleReloadableResourceManager.class:?]
                                      at net.minecraft.client.Minecraft.startGame(Minecraft.java:540) [Minecraft.class:?]
                                      at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?]
                                      at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
                                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
                                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]
                                      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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
                                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
                                      at GradleStart.main(GradleStart.java:26) [start/:?]
                                      Caused by: java.lang.RuntimeException: Encountered an exception when loading model definition of model adamantium:blockstates/Texture.json
                                      at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:205) ~[ModelBakery.class:?]
                                      at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:185) ~[ModelBakery.class:?]
                                      at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:270) ~[ModelLoader.class:?]
                                      … 20 more
                                      Caused by: java.io.FileNotFoundException: adamantium:blockstates/Texture.json
                                      at net.minecraft.client.resources.FallbackResourceManager.getAllResources(FallbackResourceManager.java:103) ~[FallbackResourceManager.class:?]
                                      at net.minecraft.client.resources.SimpleReloadableResourceManager.getAllResources(SimpleReloadableResourceManager.java:79) ~[SimpleReloadableResourceManager.class:?]
                                      at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:198) ~[ModelBakery.class:?]
                                      at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:185) ~[ModelBakery.class:?]
                                      at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:270) ~[ModelLoader.class:?]
                                      … 20 more
                                      [18:10:51] [Client thread/INFO] [FML]: Injecting itemstacks
                                      [18:10:51] [Client thread/INFO] [FML]: Itemstack injection complete
                                      [18:10:51] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
                                      [18:10:51] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Adamantium
                                      [18:10:58] [Client thread/INFO]: SoundSystem shutting down…
                                      [18:10:58] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
                                      [18:10:58] [Sound Library Loader/INFO]: Starting up SoundSystem…
                                      [18:10:58] [Thread-10/INFO]: Initializing LWJGL OpenAL
                                      [18:10:58] [Thread-10/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                                      [18:10:58] [Thread-10/INFO]: OpenAL initialized.
                                      [18:10:58] [Sound Library Loader/INFO]: Sound engine started
                                      [18:11:07] [Client thread/INFO] [FML]: Max texture size: 16384
                                      [18:11:07] [Client thread/INFO]: Created: 1024x1024 textures-atlas
                                      [18:11:11] [Client thread/ERROR] [FML]: Exception loading model for variant adamantium:Texture#normal for blockstate “adamantium:Texture”
                                      net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model adamantium:Texture#normal with loader VariantLoader.INSTANCE, skipping
                                      at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]
                                      at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:241) ~[ModelLoader.class:?]
                                      at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:145) ~[ModelBakery.class:?]
                                      at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:229) ~[ModelLoader.class:?]
                                      at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:146) ~[ModelLoader.class:?]
                                      at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?]
                                      at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:132) [SimpleReloadableResourceManager.class:?]
                                      at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:113) [SimpleReloadableResourceManager.class:?]
                                      at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:799) [Minecraft.class:?]
                                      at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:338) [FMLClientHandler.class:?]
                                      at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) [Minecraft.class:?]
                                      at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?]
                                      at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
                                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
                                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]
                                      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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
                                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
                                      at GradleStart.main(GradleStart.java:26) [start/:?]
                                      Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException
                                      at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:78) ~[ModelBlockDefinition.class:?]
                                      at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1183) ~[ModelLoader$VariantLoader.class:?]
                                      at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
                                      … 24 more
                                      [18:11:11] [Client thread/ERROR] [FML]: Exception loading blockstate for the variant adamantium:Texture#normal: 
                                      java.lang.Exception: Could not load model definition for variant adamantium:Texture
                                      at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:274) ~[ModelLoader.class:?]
                                      at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:121) ~[ModelBakery.class:?]
                                      at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:229) ~[ModelLoader.class:?]
                                      at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:146) ~[ModelLoader.class:?]
                                      at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?]
                                      at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:132) [SimpleReloadableResourceManager.class:?]
                                      at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:113) [SimpleReloadableResourceManager.class:?]
                                      at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:799) [Minecraft.class:?]
                                      at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:338) [FMLClientHandler.class:?]
                                      at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) [Minecraft.class:?]
                                      at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?]
                                      at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
                                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
                                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]
                                      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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
                                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]
                                      at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
                                      at GradleStart.main(GradleStart.java:26) [start/:?]
                                      Caused by: java.lang.RuntimeException: Encountered an exception when loading model definition of model adamantium:blockstates/Texture.json
                                      at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:205) ~[ModelBakery.class:?]
                                      at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:185) ~[ModelBakery.class:?]
                                      at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:270) ~[ModelLoader.class:?]
                                      … 23 more
                                      Caused by: java.io.FileNotFoundException: adamantium:blockstates/Texture.json
                                      at net.minecraft.client.resources.FallbackResourceManager.getAllResources(FallbackResourceManager.java:103) ~[FallbackResourceManager.class:?]
                                      at net.minecraft.client.resources.SimpleReloadableResourceManager.getAllResources(SimpleReloadableResourceManager.java:79) ~[SimpleReloadableResourceManager.class:?]
                                      at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:198) ~[ModelBakery.class:?]
                                      at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:185) ~[ModelBakery.class:?]
                                      at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:270) ~[ModelLoader.class:?]
                                      … 23 more
                                      [18:11:11] [Client thread/WARN]: Skipping bad option: lastServer:
                                      [18:11:14] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id

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

                                        Donc tes textures sont bien chargée, quelle est la différence entre le moment où tu as le bloc dans la main et quand tu ne l’as pas ? As-tu une texture noir/violette ?

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

                                          @‘BrokenSwing’:

                                          Donc tes textures sont bien chargée, quelle est la différence entre le moment où tu as le bloc dans la main et quand tu ne l’as pas ? As-tu une texture noir/violette ?

                                          Aucune différence, juste le visible: false/true qui change, la texture reste la même sinon

                                          et tient un truc que j’ai remarqué, quand je recharge la map la texture du block disparait et devient invisbile

                                          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

                                            Hum surement car la fonction getRenderType n’est pas appelé à chaque tick.
                                            Il faudrait forcer la mise à jour des blocs.

                                            Je comprends maintenant pourquoi Mojang passe par une particule.

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

                                            MINECRAFT FORGE FRANCE © 2024

                                            Powered by NodeBB