[En Cours] Pas de blockstates et de nom

Besoin d'aide ? c'est par ici ;)
Règles du forum
[En Attente] - Qui est défini par défaut à l'ouverture de la demande d'aide
[En Cours] - Qui est à mettre lorsque vous venez d'avoir une réponse à votre demande d'aide
[Résolu] - Qui est à mettre lorsque votre problème est résolu
Merci de respecter ce modèle pour toutes demandes d'assistances !
Merci de mettre votre code dans les balises code prévus à cet effet, icon </>
Version de Minecraft:
Version de Forge: (Il s'agit du numéro de version indiqué sur le nom de votre dossier forge téléchargé)

Description du problème:
(Un maximum d'informations sera utile, quel code fait crash ?, quand cela ce produit ?, ne pas hésiter à mettre des captures d'écran et fichiers de log en pièces jointes)
Répondre
LaPropre
Messages : 7
Inscription : 04 juil. 2020 19:58
Localisation : Toulon
Contact :

Pas de blockstates et de nom

Message par LaPropre »

Bonjour, j'en suis actuellement à la partie 4 du tuto pour le Modding Forge 1.12

Voilà mon problème:
Je vois bien la texture du block quand je l'ai en main mais je ne vois pas le nom
Et également lorsque je pose le bloc, aucune texture ne s'affiche

Screen du problème:
Image
Image

\src\main\java\fr\lapropre\forestryrp\init\BlocksMod.java

Code : Tout sélectionner

package fr.lapropre.forestryrp.init;

import fr.lapropre.forestryrp.References;
import fr.lapropre.forestryrp.blocks.BlockMod;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraftforge.client.event.ModelRegistryEvent;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

@Mod.EventBusSubscriber(modid = References.MODID)
public class BlocksMod 
{
	public static Block block_test;
	
	public static void init()
	{
		block_test = new BlockMod("block_test", Material.ROCK);
	}
	
	@EventHandler
	public static void registerBlocks(RegistryEvent.Register<Block> event)
	{
		event.getRegistry().registerAll(block_test);
	}
	
	@SubscribeEvent
	public static void registerItemBlocks(RegistryEvent.Register<Item> event)
	{
		event.getRegistry().registerAll(
			new ItemBlock(block_test).setRegistryName(block_test.getRegistryName()));
	}
	
	@SubscribeEvent
	public static void registerRenders(ModelRegistryEvent event)
	{
		registerRender(Item.getItemFromBlock(block_test));
	}
	
	private static void registerRender(Item item)
	{
		ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory"));
	}
}


\src\main\resources\assets\forestrymods\blockstates\block_test.json

Code : Tout sélectionner

{
    "variants": {
        "normal": { "model": "forestrymods:block_test" }
    }
}

\src\main\resources\assets\forestrymods\models\block\block_test.json

Code : Tout sélectionner

{
    "parent": "block/cube_all",
    "textures": {
        "all": "forestrymods:blocks/block_test"
    }
}


\src\main\resources\assets\forestrymods\models\item\block_test.json

Code : Tout sélectionner

{
    "parent": "forestrymods:block/block_test"
}


\src\main\resources\assets\forestrymods\lang\fr_FR.lang

Code : Tout sélectionner

tile.block_test.name=Bloc Test
PS: Je tient a préciser que j'ai bien vérifier et j'ai bien mis mon jeu en Français
Dernière modification par LaPropre le 09 juil. 2020 14:15, modifié 1 fois.
Avatar de l’utilisateur
Checconio
Site Admin
Messages : 660
Inscription : 20 juil. 2019 18:53
Localisation : Istres
Contact :

Re: Pas de blockstates et de nom

Message par Checconio »

Pour le fichier lang le nom doit être en minuscule et pour ta texture quel erreur as tu dans la console ? il y en forcément une

Tu peux passer ton sujet en [En Cours]
Tu veux des réductions et du cashback ? passe par iGraal ;)
3€ Offert en passant par mon lien :)

https://fr.igraal.com/?parrain=AG_577542b686c1d
Image
LaPropre
Messages : 7
Inscription : 04 juil. 2020 19:58
Localisation : Toulon
Contact :

Re: Pas de blockstates et de nom

Message par LaPropre »

Merci j'ai bien écris en minuscule et ça à marché.
En revanche pour la texture je vois 3 erreurs mais je ne sais pas si ça à vraiment un rapport.

Console

Code : Tout sélectionner

[14:15:20] [main/INFO] [GradleStart]: Extra: []
[14:15:20] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Chris/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[14:15:20] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[14:15:20] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[14:15:20] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[14:15:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[14:15:20] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2847 for Minecraft 1.12.2 loading
[14:15:20] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_221, running on Windows 10:amd64:10.0, installed at D:\Logiciel\Java\jre1.8.0_221
[14:15:20] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory.
[14:15:20] [main/ERROR] [FML]: Full: C:\Users\Chris\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar
[14:15:20] [main/ERROR] [FML]: Trimmed: c:/users/chris/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/
[14:15:20] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[14:15:20] [main/INFO] [FML]: Detected deobfuscated environment, loading log configs for colored console logs.
2020-07-09 14:15:21,813 main WARN Disabling terminal, you're running in an unsupported environment.
[14:15:21] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
[14:15:21] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
[14:15:21] [main/INFO] [FML]: Searching D:\ForestryMods\.\mods for mods
[14:15:21] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[14:15:21] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[14:15:21] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[14:15:21] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[14:15:21] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[14:15:21] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[14:15:21] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[14:15:21] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[14:15:21] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[14:15:25] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[14:15:25] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[14:15:25] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[14:15:25] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[14:15:25] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[14:15:25] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[14:15:25] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[14:15:26] [Client thread/INFO] [minecraft/Minecraft]: Setting user: Player862
[14:15:28] [Client thread/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer:
[14:15:28] [Client thread/INFO] [minecraft/Minecraft]: LWJGL Version: 2.9.4
[14:15:29] [Client thread/INFO] [FML]: -- System Details --
Details:
	Minecraft Version: 1.12.2
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 1.8.0_221, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 870247152 bytes (829 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: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 451.48' Renderer: 'GeForce GTX 1060 6GB/PCIe/SSE2'
[14:15:29] [Client thread/INFO] [FML]: MinecraftForge v14.23.5.2847 Initialized
[14:15:29] [Client thread/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
[14:15:29] [Client thread/INFO] [FML]: Invalid recipe found with multiple oredict ingredients in the same ingredient...
[14:15:30] [Client thread/INFO] [FML]: Replaced 1227 ore ingredients
[14:15:30] [Client thread/INFO] [FML]: Searching D:\ForestryMods\.\mods for mods
[14:15:31] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[14:15:31] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, forestrymods] at CLIENT
[14:15:31] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, forestrymods] at SERVER
[14:15:31] [Client thread/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Forestry Mods
[14:15:31] [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 107614889 nanos
[14:15:32] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[14:15:32] [Client thread/INFO] [FML]: Found 1168 ObjectHolder annotations
[14:15:32] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[14:15:32] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[14:15:32] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[14:15:32] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[14:15:32] [Client thread/INFO] [FML]: Applying holder lookups
[14:15:32] [Client thread/INFO] [FML]: Holder lookups applied
[14:15:32] [Client thread/INFO] [FML]: Applying holder lookups
[14:15:32] [Client thread/INFO] [FML]: Holder lookups applied
[14:15:32] [Client thread/INFO] [FML]: Applying holder lookups
[14:15:32] [Client thread/INFO] [FML]: Holder lookups applied
[14:15:32] [Client thread/INFO] [FML]: Applying holder lookups
[14:15:32] [Client thread/INFO] [FML]: Holder lookups applied
[14:15:32] [Client thread/INFO] [FML]: Injecting itemstacks
[14:15:32] [Client thread/INFO] [FML]: Itemstack injection complete
[14:15:32] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: OUTDATED Target: 14.23.5.2854
[14:15:36] [Sound Library Loader/INFO] [minecraft/SoundManager]: Starting up SoundSystem...
[14:15:37] [Thread-5/INFO] [minecraft/SoundManager]: Initializing LWJGL OpenAL
[14:15:37] [Thread-5/INFO] [minecraft/SoundManager]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[14:15:37] [Thread-5/INFO] [minecraft/SoundManager]: OpenAL initialized.
[14:15:37] [Sound Library Loader/INFO] [minecraft/SoundManager]: Sound engine started
[14:15:42] [Client thread/INFO] [FML]: Max texture size: 16384
[14:15:42] [Client thread/INFO] [minecraft/TextureMap]: Created: 512x512 textures-atlas
[14:15:44] [Client thread/INFO] [FML]: Applying holder lookups
[14:15:44] [Client thread/INFO] [FML]: Holder lookups applied
[14:15:44] [Client thread/INFO] [FML]: Injecting itemstacks
[14:15:44] [Client thread/INFO] [FML]: Itemstack injection complete
[14:15:44] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
[14:15:44] [Client thread/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer:
[14:15:44] [Client thread/INFO] [mojang/NarratorWindows]: Narrator library for x64 successfully loaded
[14:15:45] [Realms Notification Availability checker #1/INFO] [mojang/RealmsClient]: Could not authorize you against Realms server: Invalid session id
[14:15:49] [Server thread/INFO] [minecraft/IntegratedServer]: Starting integrated minecraft server version 1.12.2
[14:15:49] [Server thread/INFO] [minecraft/IntegratedServer]: Generating keypair
[14:15:49] [Server thread/INFO] [FML]: Injecting existing registry data into this server instance
[14:15:49] [Server thread/INFO] [FML]: Applying holder lookups
[14:15:49] [Server thread/INFO] [FML]: Holder lookups applied
[14:15:49] [Server thread/INFO] [FML]: Loading dimension 0 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@23f46e73)
[14:15:49] [Server thread/INFO] [minecraft/AdvancementList]: Loaded 488 advancements
[14:15:50] [Server thread/INFO] [FML]: Loading dimension -1 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@23f46e73)
[14:15:50] [Server thread/INFO] [FML]: Loading dimension 1 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@23f46e73)
[14:15:50] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing start region for level 0
[14:15:50] [Server thread/INFO] [FML]: Unloading dimension -1
[14:15:50] [Server thread/INFO] [FML]: Unloading dimension 1
[14:15:50] [Server thread/INFO] [minecraft/IntegratedServer]: Changing view distance to 12, from 10
[14:15:52] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
[14:15:52] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
[14:15:52] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : minecraft@1.12.2,forestrymods@2.0,FML@8.0.99.99,forge@14.23.5.2847,mcp@9.42
[14:15:52] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[14:15:52] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
[14:15:52] [Server thread/INFO] [minecraft/PlayerList]: Player862[local:E:360d5a1b] logged in with entity id 0 at (1024.3662473042145, 4.0, 453.6447247519726)
[14:15:52] [Server thread/INFO] [minecraft/MinecraftServer]: Player862 a rejoint la partie
[14:15:52] [Server thread/INFO] [minecraft/IntegratedServer]: Saving and pausing game...
[14:15:52] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'Nouveau monde'/overworld
ou en Hastebin:
https://hastebin.com/xuyasefaxa.sql
LaPropre
Messages : 7
Inscription : 04 juil. 2020 19:58
Localisation : Toulon
Contact :

Re: Pas de blockstates et de nom

Message par LaPropre »

Les erreurs sont celles-ci

[14:15:20] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory.
[14:15:20] [main/ERROR] [FML]: Full: C:\Users\Chris\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar
[14:15:20] [main/ERROR] [FML]: Trimmed: c:/users/chris/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/
[14:15:25] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
Avatar de l’utilisateur
Checconio
Site Admin
Messages : 660
Inscription : 20 juil. 2019 18:53
Localisation : Istres
Contact :

Re: Pas de blockstates et de nom

Message par Checconio »

non pas de correspondance avec les erreur, est-ce que tu taxture est bien carré ? même nombre de pixel en longeur et largeur quand tu regarde les propriété de ton image ?
Tu veux des réductions et du cashback ? passe par iGraal ;)
3€ Offert en passant par mon lien :)

https://fr.igraal.com/?parrain=AG_577542b686c1d
Image
LaPropre
Messages : 7
Inscription : 04 juil. 2020 19:58
Localisation : Toulon
Contact :

Re: Pas de blockstates et de nom

Message par LaPropre »

Checconio a écrit : 09 juil. 2020 15:34 non pas de correspondance avec les erreur, est-ce que tu taxture est bien carré ? même nombre de pixel en longeur et largeur quand tu regarde les propriété de ton image ?
Oui je suis en 16x16.
Le problème viendrait donc du code ?
Avatar de l’utilisateur
Checconio
Site Admin
Messages : 660
Inscription : 20 juil. 2019 18:53
Localisation : Istres
Contact :

Re: Pas de blockstates et de nom

Message par Checconio »

Envoi ton fichier pack.mcdata qui est dans les resources
Tu veux des réductions et du cashback ? passe par iGraal ;)
3€ Offert en passant par mon lien :)

https://fr.igraal.com/?parrain=AG_577542b686c1d
Image
LaPropre
Messages : 7
Inscription : 04 juil. 2020 19:58
Localisation : Toulon
Contact :

Re: Pas de blockstates et de nom

Message par LaPropre »

Checconio a écrit : 13 juil. 2020 20:56 Envoi ton fichier pack.mcdata qui est dans les resources
Je ne trouve pas de pack.mcdata mais voila le .mcmeta

Code : Tout sélectionner

{
    "pack": {
        "description": "Ressource du Forestry Mods",
        "pack_format": 3,
        "_comment": "A pack_format of 3 should be used starting with Minecraft 1.11. All resources, including language files, should be lowercase (eg: en_us.lang). A pack_format of 2 will load your mod resources with LegacyV2Adapter, which requires language files to have uppercase letters (eg: en_US.lang)."
    }
}
LaPropre
Messages : 7
Inscription : 04 juil. 2020 19:58
Localisation : Toulon
Contact :

Re: Pas de blockstates et de nom

Message par LaPropre »

Up?
Avatar de l’utilisateur
Checconio
Site Admin
Messages : 660
Inscription : 20 juil. 2019 18:53
Localisation : Istres
Contact :

Re: Pas de blockstates et de nom

Message par Checconio »

Le fichier est censé s'appeler pack.mcdata c'est pour ça que aucune de t'es ressources n'est chargé
Tu veux des réductions et du cashback ? passe par iGraal ;)
3€ Offert en passant par mon lien :)

https://fr.igraal.com/?parrain=AG_577542b686c1d
Image
Répondre