MFF

    Minecraft Forge France
    • Récent
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Groupes
    • Forge Events
      • Automatique
      • Foncé
      • Clair
    • S'inscrire
    • Se connecter
    1. Accueil
    2. Populaire
    Se connecter pour poster
    • Toujours
    • Jour
    • Semaine
    • Mois
    • Tous les sujets
    • Nouveau sujet
    • Sujets surveillés
    • Sujets sans réponses

    • Toutes les catégories
    • Y

      Une aide pour des events.

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x 1.7.10
      46
      0 Votes
      46 Messages
      7k Vues
      RedRelayR
      @‘BrokenSwing’: Ou il y a encore chaineCaractere = "" + nombre; Ce qui après compilation revient a new StringBuilder(“”).append(Integer.toString(nombre)).toString(). Donc méthode de crado moins performante
    • EryahE

      Cable ( Redstone/TripWire ) explosif

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Résolu 1.8.x 1.8
      46
      0 Votes
      46 Messages
      8k Vues
      EryahE
      Officiel, ce topic est clos, j’abbandone le projet. Je le reprendrais une fois avec plus d’expérience Je garde les classes, je ne les enrengistres juste pas dans le jeu
    • kevin_68K

      FFMT library

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Mods complet 1.8
      45
      0 Votes
      45 Messages
      19k Vues
      Snowy_1803S
      Inutile, tu n’as qu’à, dans les fichiers de language, mettre un § avec le chiffre hexadécimal de couleur devant.
    • G

      Création d'un mod client-side qui notifie son utilisateur quand son inventaire est full

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Non résolu Sans suite 1.12.2
      45
      1
      0 Votes
      45 Messages
      2k Vues
      G
      package Gess.mod; import Gess.mod.proxy.iProxy; import net.minecraft.client.Minecraft; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.Container; import net.minecraft.inventory.ContainerPlayer; import net.minecraft.item.ItemStack; import net.minecraft.util.NonNullList; import net.minecraft.util.text.TextComponentString; import net.minecraftforge.common.config.Configuration; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventBusSubscriber; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.TickEvent; import util.Reference; @EventBusSubscriber @Mod(modid=Reference.MODID, name=Reference.MODNAME, version=Reference.VERSION) public class Main { public static Configuration config; //public static int time = 10; public static Main instance; //float lastMessageTime = 0; public boolean inventoryIsFull; public static final String CLIENT = "gess.mod.proxy.ClientProxy"; public static final String SERVER = "gess.mod.proxy.CommonProxy"; @SidedProxy(clientSide = Reference.CLIENT, serverSide = Reference.COMMON) public static iProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent e){ //File directory = event.getModConfigurationDirectory(); //config = new Configuration(new File(directory.getPath(), "FullInventoryChecker.cfg")); //Config.readConfig(); } @EventHandler public void init(FMLInitializationEvent e){} @EventHandler public void postInit(FMLPostInitializationEvent e){ // if (config.hasChanged()) // config.save(); //} } public void log() { System.out.println("Does PckUpItm actually output anything?"); } private EntityPlayer playerEntity; final EntityPlayer player = (EntityPlayer)Minecraft.getMinecraft().player; private boolean enabled = true; private NonNullList<ItemStack> previous; @SubscribeEvent public void PckUpItm(final TickEvent.ClientTickEvent event) { if(Minecraft.getMinecraft().player != null) { this.playerEntity = player; if (enabled == true) { NonNullList<ItemStack> previous = NonNullList.withSize(player.inventory.getSizeInventory(), ItemStack.EMPTY); enabled = false; } Main pui = new Main(); pui.log(); EntityPlayer player = Minecraft.getMinecraft().player; int g = 0; System.out.println("starting to count e"); for(int e=0; e < 36; e++) { System.out.println("checking slot " + e); ItemStack stack = player.inventory.getStackInSlot(e); if(ItemStack.areItemStacksEqual(previous.get(e), stack)) { previous.set(e,stack); if(!stack.isEmpty() && stack.getCount() == stack.getMaxStackSize()) { g++; System.out.println("g = " + g); System.out.println("Itemstack " + e + "copied"); if(g > 34) { Minecraft.getMinecraft().player.sendMessage(new TextComponentString("Your inventory is full")); return; } } } } } } @SubscribeEvent public static void chkInv(TickEvent.ClientTickEvent event) throws InterruptedException { if(Minecraft.getMinecraft().player != null) { int s = 0; for(int i=0; i < 37; i++) { if(!Minecraft.getMinecraft().player.inventory.getStackInSlot(i).isEmpty() && Minecraft.getMinecraft() .player.inventory.getStackInSlot(i).getCount() == Minecraft.getMinecraft().player.inventory.getStackInSlot(i).getMaxStackSize()) { s++; if(s > 35) { if(Minecraft.getMinecraft().world.getTotalWorldTime() % 200 == 3L && event.phase == TickEvent.Phase.END) { Minecraft.getMinecraft().player.sendMessage(new TextComponentString("Your inventory is full")); System.out.println("chkInv: Triggerred with s = " + s); return; } } } } return; } } } après éssaie, toujours le même problème de timeout: [21:01:37] [main/INFO] [GradleStart]: Extra: [] [21:01:37] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/[user]/.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] [21:01:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [21:01:38] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [21:01:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [21:01:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [21:01:38] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2768 for Minecraft 1.12.2 loading [21:01:38] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_212, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre1.8.0_212 [21:01:38] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory. [21:01:38] [main/ERROR] [FML]: Full: C:\Users\[user]\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar [21:01:38] [main/ERROR] [FML]: Trimmed: c:/users/[user]/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/ [21:01:38] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [21:01:38] [main/INFO] [FML]: Detected deobfuscated environment, loading log configs for colored console logs. 2019-10-20 21:01:40,811 main WARN Disabling terminal, you're running in an unsupported environment. [21:01:40] [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 [21:01:40] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin [21:01:41] [main/INFO] [FML]: Searching D:\Modding\Minecraft\FullinventorycheckerRenewal\run\.\mods for mods [21:01:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [21:01:41] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [21:01:41] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [21:01:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [21:01:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [21:01:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [21:01:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [21:01:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [21:01:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [21:01:44] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [21:01:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [21:01:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [21:01:45] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [21:01:45] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [21:01:45] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [21:01:45] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [21:01:47] [main/INFO] [minecraft/Minecraft]: Setting user: Player431 [21:01:56] [main/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer: [21:01:56] [main/INFO] [minecraft/Minecraft]: LWJGL Version: 2.9.4 [21:01:57] [main/INFO] [FML]: -- System Details -- Details: Minecraft Version: 1.12.2 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.8.0_212, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 852327856 bytes (812 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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 431.60' Renderer: 'GeForce GT 1030/PCIe/SSE2' [21:01:57] [main/INFO] [FML]: MinecraftForge v14.23.5.2768 Initialized [21:01:57] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients. [21:01:58] [main/INFO] [FML]: Replaced 1036 ore ingredients [21:01:59] [main/INFO] [FML]: Searching D:\Modding\Minecraft\FullinventorycheckerRenewal\run\.\mods for mods [21:02:03] [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load [21:02:04] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, fullinvchecker] at CLIENT [21:02:04] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, fullinvchecker] at SERVER [21:02:05] [Thread-3/INFO] [FML]: Using alternative sync timing : 200 frames of Display.update took 6157975628 nanos [21:02:05] [main/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Full Inventory Checker [21:02:06] [main/INFO] [FML]: Processing ObjectHolder annotations [21:02:06] [main/INFO] [FML]: Found 1168 ObjectHolder annotations [21:02:06] [main/INFO] [FML]: Identifying ItemStackHolder annotations [21:02:06] [main/INFO] [FML]: Found 0 ItemStackHolder annotations [21:02:06] [main/INFO] [FML]: Configured a dormant chunk cache size of 0 [21:02:06] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [21:02:06] [main/INFO] [FML]: Applying holder lookups [21:02:06] [main/INFO] [FML]: Holder lookups applied [21:02:06] [main/INFO] [FML]: Applying holder lookups [21:02:06] [main/INFO] [FML]: Holder lookups applied [21:02:06] [main/INFO] [FML]: Applying holder lookups [21:02:06] [main/INFO] [FML]: Holder lookups applied [21:02:06] [main/INFO] [FML]: Applying holder lookups [21:02:06] [main/INFO] [FML]: Holder lookups applied [21:02:06] [main/INFO] [FML]: Injecting itemstacks [21:02:06] [main/INFO] [FML]: Itemstack injection complete [21:02:07] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: UP_TO_DATE Target: null [21:02:14] [Sound Library Loader/INFO] [minecraft/SoundManager]: Starting up SoundSystem... [21:02:14] [Thread-5/INFO] [minecraft/SoundManager]: Initializing LWJGL OpenAL [21:02:14] [Thread-5/INFO] [minecraft/SoundManager]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [21:02:14] [Thread-5/INFO] [minecraft/SoundManager]: OpenAL initialized. [21:02:15] [Sound Library Loader/INFO] [minecraft/SoundManager]: Sound engine started [21:02:26] [main/INFO] [FML]: Max texture size: 16384 [21:02:27] [main/INFO] [minecraft/TextureMap]: Created: 512x512 textures-atlas [21:02:33] [main/INFO] [FML]: Applying holder lookups [21:02:33] [main/INFO] [FML]: Holder lookups applied [21:02:33] [main/INFO] [FML]: Injecting itemstacks [21:02:33] [main/INFO] [FML]: Itemstack injection complete [21:02:33] [main/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods [21:02:33] [main/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer: [21:02:33] [main/INFO] [mojang/NarratorWindows]: Narrator library for x64 successfully loaded [21:02:36] [Realms Notification Availability checker #1/INFO] [mojang/RealmsClient]: Could not authorize you against Realms server: Invalid session id [21:03:52] [main/INFO] [minecraft/GuiConnecting]: Connecting to localhost, 25565 [21:03:52] [Server Connector #1/ERROR] [minecraft/GuiConnecting]: Couldn't connect to server java.lang.NullPointerException: group at io.netty.bootstrap.AbstractBootstrap.group(AbstractBootstrap.java:84) ~[AbstractBootstrap.class:?] at net.minecraft.network.NetworkManager.createNetworkManagerAndConnect(NetworkManager.java:367) ~[NetworkManager.class:?] at net.minecraft.client.multiplayer.GuiConnecting$1.run(GuiConnecting.java:68) [GuiConnecting$1.class:?] [21:03:54] [main/INFO] [minecraft/GuiConnecting]: Connecting to localhost, 25565 [21:03:55] [Netty Client IO #1/INFO] [FML]: Aborting client handshake "VANILLA" [21:03:55] [Netty Client IO #1/INFO] [FML]: [Netty Client IO #1] Client side vanilla connection established [21:04:20] [Netty Client IO #1/ERROR] [FML]: NetworkDispatcher exception java.io.IOException: Une connexion existante a dû être fermée par l’hôte distant at sun.nio.ch.SocketDispatcher.read0(Native Method) ~[?:1.8.0_212] at sun.nio.ch.SocketDispatcher.read(Unknown Source) ~[?:1.8.0_212] at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source) ~[?:1.8.0_212] at sun.nio.ch.IOUtil.read(Unknown Source) ~[?:1.8.0_212] at sun.nio.ch.SocketChannelImpl.read(Unknown Source) ~[?:1.8.0_212] at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288) ~[PooledUnsafeDirectByteBuf.class:4.1.9.Final] at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1100) ~[AbstractByteBuf.class:4.1.9.Final] at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:372) ~[NioSocketChannel.class:4.1.9.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:123) [AbstractNioByteChannel$NioByteUnsafe.class:4.1.9.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:624) [NioEventLoop.class:4.1.9.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:559) [NioEventLoop.class:4.1.9.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:476) [NioEventLoop.class:4.1.9.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438) [NioEventLoop.class:4.1.9.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) [SingleThreadEventExecutor$5.class:4.1.9.Final] at java.lang.Thread.run(Unknown Source) [?:1.8.0_212] [21:04:21] [main/INFO] [FML]: Applying holder lookups [21:04:21] [main/INFO] [FML]: Holder lookups applied [21:04:32] [main/INFO] [minecraft/GuiConnecting]: Connecting to localhost, 25565 [21:04:32] [Netty Client IO #2/INFO] [FML]: Aborting client handshake "VANILLA" [21:04:32] [Netty Client IO #2/INFO] [FML]: [Netty Client IO #2] Client side vanilla connection established [21:04:45] [main/INFO] [minecraft/Minecraft]: Stopping! [21:04:52] [main/INFO] [minecraft/SoundManager]: SoundSystem shutting down... [21:04:52] [main/WARN] [minecraft/SoundManager]: Author: Paul Lamb, www.paulscode.com Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
    • S

      Erreur bloc type four

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Sans suite 1.7.10
      45
      0 Votes
      45 Messages
      8k Vues
      BrokenSwingB
      Il faut adapter le système : Ne pas mettre le combustible dans le recettes Récupérer un recette seulement avec les slots des ingrédients Check à chaque fois si il reste du carburant, si il n’en reste pas il faut essayer de refuel, si on peut pas alors on arrête la recette Je vais éditer mon message avec un lien 2 sec A adapter pour la 1.7 : https://www.minecraftforgefrance.fr/showthread.php?tid=2716
    • kevin_68K

      Avis sur le forum

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Le salon libre
      45
      0 Votes
      45 Messages
      2k Vues
      robin4002R
      Bug de myBB, il faut attendre le correctif, en attendant on peut toujours utiliser le +
    • RamechR

      [Open-Source][GitHub Dispo] Projet - Pokémon Mixte avec logiciel d'édition de map !

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Vos autres créations
      45
      0 Votes
      45 Messages
      17k Vues
      RamechR
      Héhé ! Ajout d’un générateur de map (logiciel appart utilisé pour les mods) !
    • GabsG

      Afficher une image lors de la connexion.

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Résolu 1.8.x 1.8
      45
      0 Votes
      45 Messages
      8k Vues
      GabsG
      Merci
    • MrCupCakeMonsterM

      Un item mangeable

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Les items 1.6.x
      45
      0 Votes
      45 Messages
      23k Vues
      robin4002R
      La question a déjà été posé sur la page 2. Il y a aussi la réponse ^^
    • baztoul76B

      lancer le 1.12.2.jar sans passer par le launcher officiel

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Sans suite 1.12.2 launcher
      45
      0 Votes
      45 Messages
      3k Vues
      baztoul76B
      je ne pensais pas à ça (regarde l’édit) j’ai dit que c’était sûrement possible de lancer un script bash depuis un programme java (j’ai déjà vu ça), et ça donnerait par exemple List<String> command; command.add("set MC_DIR=%AppData%\.minecraft"); // le reste des variables command.add("java"); command.add("%JVM_ARGS%"); // etc... command.add("-cp"); command.add("%MC_DIR%/librairies/...1.12.2.jar"); command.add("--username"); command.add(username); //etc... command.add("--accesToken"); command.add((int) authenticate(username, password)); //etc... String newCommand = new String[command.size()]; for (int i = 0;i < command.size(); i++) { newCommand[i] = command.index(i); } Process p = runtime.getRuntime().exec(newCommand); p.waitFor(); je pense que ça marche
    • DeletedD

      [1.7.2, MOD, MCPC+] Des Cinématiques dans Minecraft

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x 1.7.10
      45
      0 Votes
      45 Messages
      15k Vues
      DeletedD
      File moi ton discord par MP, on pourra toujours essayer
    • sosohS

      Extended Entity Props. qui ne se savent pas

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x 1.7.10
      45
      0 Votes
      45 Messages
      9k Vues
      sosohS
      En fait ca ne marchait pas car c’est pas ​NBTTagList list = compound.getTagList("Spells", Constants.NBT.TAG_STRING); mais: ​NBTTagList list = properties.getTagList("Spells", Constants.NBT.TAG_STRING);
    • SpyManS

      Texture Four en fonction du son status

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x 1.7.10
      45
      0 Votes
      45 Messages
      6k Vues
      SpyManS
      Merci !
    • AlbanninouA

      Scanner les blocks allentour

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x 1.7.10
      44
      0 Votes
      44 Messages
      9k Vues
      robin4002R
      Regardes dans la classe TileEntity, tu as directement les variables contenant les coordonnées (x/y/zCoord il me semble)
    • O

      Forge et mcp probleme

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Résolu Autres
      44
      0 Votes
      44 Messages
      8k Vues
      robin4002R
      Si tu veux setup fml oui il faut utiliser setupFML et non setupForge.
    • GabsG

      Problème onUpdate avec mon arc.

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x 1.7.10
      44
      0 Votes
      44 Messages
      7k Vues
      GabsG
      Nickel merci les gars!
    • ?

      Aide pour ma config

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Le salon informatique
      44
      0 Votes
      44 Messages
      931 Vues
      robin4002R
      Un fx en 2016 x) Sérieusement ce genre de processeur sont à la ramasse, il y a deux ans ou l’année dernière ça avait encore du sens, mais maintenant …. Surtout que minecraft est très gourmand en cpu. Et une GTX750ti alors que les RX 460 sont disponible … c’est aussi un peu n’importe quoi.
    • robin4002R

      Direction de bloc

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Les blocs 1.6.x
      44
      0 Votes
      44 Messages
      16k Vues
      isadorI
      cela ne fait strictement rien… mon rendu: package Portal; import net.minecraft.block.Block; import net.minecraft.client.renderer.RenderBlocks; import net.minecraft.client.renderer.Tessellator; import net.minecraft.entity.EntityLivingBase; import net.minecraft.item.ItemStack; import net.minecraft.util.MathHelper; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import org.lwjgl.opengl.GL11; import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler; public class RenderTable implements ISimpleBlockRenderingHandler { @Override public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) { Tessellator tessellator = Tessellator.instance; renderer.setRenderBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F); // cree un "etage" pour le rendu de l'inventaire this.renderInInventory(tessellator, renderer, block, metadata); // sauvegarde "l'etage" pour le rendu de l'inventaire //etc etc } private void renderInInventory(Tessellator tessellator, RenderBlocks renderer, Block block, int metadata) { tessellator.startDrawingQuads(); tessellator.setNormal(1.0F, 1F, 1.0F); renderer.renderFaceYNeg(block, 1.0D, 1.0D, 1.0D, block.getIcon(0, metadata)); tessellator.draw(); tessellator.startDrawingQuads(); tessellator.setNormal(1.0F, 1.0F, 1.0F); renderer.renderFaceYPos(block, 1.0D, 1.0D, 1.0D, block.getIcon(1, metadata)); tessellator.draw(); tessellator.startDrawingQuads(); tessellator.setNormal(1.0F, 1.0F, 1F); renderer.renderFaceZNeg(block, 1.0D, 1.0D, 1.0D, block.getIcon(2, metadata)); tessellator.draw(); tessellator.startDrawingQuads(); tessellator.setNormal(1.0F, 1.0F, 1.0F); renderer.renderFaceZPos(block, 1.0D, 1.0D, 1.0D, block.getIcon(3, metadata)); tessellator.draw(); tessellator.startDrawingQuads(); tessellator.setNormal(1F, 1.0F, 1.0F); renderer.renderFaceXNeg(block, 1.0D, 1.0D, 1.0D, block.getIcon(4, metadata)); tessellator.draw(); tessellator.startDrawingQuads(); tessellator.setNormal(1.0F, 1.0F, 1.0F); renderer.renderFaceXPos(block, 1.0D, 1.0D, 1.0D, block.getIcon(5, metadata)); tessellator.draw(); GL11.glTranslatef(1F, 1F, 1F); } public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase living, ItemStack stack) { int direction = MathHelper.floor_double((double)(living.rotationYaw * 4.0F / 360.0F) + 2.5D) & 3; world.setBlockMetadataWithNotify(x, y, z, direction, 2); } @Override public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) { GL11.glPushMatrix(); GL11.glRotatef(90 * world.getBlockMetadata(x, y, z), 0.0F, 1.0F, 0.0F); GL11.glPopMatrix(); renderer.setRenderBounds( 0.0F, 0.0F, 0.0F, 3.0F, 3.0F, 1.0F); // cree un "etage" pour le rendu en jeu //renderer.setRenderBounds(minX, minY, minZ, maxX, maxY, maxZ); renderer.renderStandardBlock(block, x, y, z); //sauvegarde "l'etage" pour le rendu en jeu //etc etc return true; } @Override public boolean shouldRender3DInInventory() { return true; } @Override public int getRenderId() { // TODO Auto-generated method stub return ClientProxy.renderTableId; } } mon bloc: package Portal.Blocks; import java.util.Iterator; import java.util.List; import java.util.Random; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; import net.minecraft.util.AxisAlignedBB; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import Portal.ClientProxy; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class portalwowe extends Block { public portalwowe(int id) { super(id, Material.portal); this.setCreativeTab(CreativeTabs.tabBlock); } /** * Is this block (a) opaque and (b) a full 1m cube? This determines whether or not to render the shared face of two * adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block. */ public boolean isOpaqueCube() { return false; } /** * If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc) */ public boolean renderAsNormalBlock() { return false; } public int isProvidingWeakPower(IBlockAccess par1IBlockAccess, int x, int y, int z, int par5) { return this.getPowerSupply(par1IBlockAccess.getBlockMetadata(x, y, z)); } public void breakBlock(World world, int x, int y, int z, int par5, int par6) { if(this.getPowerSupply(par6) > 0) { this.notifyChange(world, x, y, z); } super.breakBlock(world, x, y, z, par5, par6); } protected void notifyChange(World world, int x, int y, int z) { world.notifyBlocksOfNeighborChange(x, y, z, this.blockID); world.notifyBlocksOfNeighborChange(x, y - 1, z, this.blockID); } public void onEntityCollidedWithBlock(World world, int x, int y, int z, Entity entity) { if(!world.isRemote) { int l = this.getPowerSupply(world.getBlockMetadata(x, y, z)); if(l == 0) { this.setStateIfMobInteractsWithPlate(world, x, y, z, l); } } } protected void setStateIfMobInteractsWithPlate(World world, int x, int y, int z, int par5) { int i1 = this.getPlateState(world, x, y, z); boolean flag = par5 > 0; boolean flag1 = i1 > 0; if(par5 != i1) { world.setBlockMetadataWithNotify(x, y, z, this.getMetaFromWeight(i1), 2); this.notifyChange(world, x, y, z); world.markBlockRangeForRenderUpdate(x, y, z, x, y, z); } if(!flag1 && flag) { world.playSoundEffect((double)x + 0.5D, (double)y + 0.1D, (double)z + 0.5D, "random.click", 0.3F, 0.5F); } else if(flag1 && !flag) { world.playSoundEffect((double)x + 0.5D, (double)y + 0.1D, (double)z + 0.5D, "random.click", 0.3F, 0.6F); } if(flag1) { world.scheduleBlockUpdate(x, y, z, this.blockID, this.tickRate(world)); } } public void updateTick(World world, int x, int y, int z, Random rand) { if(!world.isRemote) { int l = this.getPowerSupply(world.getBlockMetadata(x, y, z)); if(l > 0) { this.setStateIfMobInteractsWithPlate(world, x, y, z, l); } } } public int tickRate(World world) { return 20; } public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int x, int y, int z) { return null; } protected int getPowerSupply(int metadata) { return metadata == 1 ? 15 : 0; } protected int getMetaFromWeight(int metadata) { return metadata > 0 ? 1 : 0; } protected int getPlateState(World world, int x, int y, int z) { List list = world.getEntitiesWithinAABBExcludingEntity((Entity)null, this.getSensitiveAABB(x, y, z)); //List list = world.getEntitiesWithinAABB(EntityLivingBase.class, this.getSensitiveAABB(x, y, z)); //List list = world.getEntitiesWithinAABB(EntityPlayer.class, this.getSensitiveAABB(x, y, z)); if(list != null && !list.isEmpty()) { Iterator iterator = list.iterator(); while(iterator.hasNext()) { Entity entity = (Entity)iterator.next(); if(!entity.doesEntityNotTriggerPressurePlate()) { return 15; } } } return 0; } protected AxisAlignedBB getSensitiveAABB(int x, int y, int z) { float f = 0.125F; return AxisAlignedBB.getAABBPool().getAABB((double)((float)x + f), (double)y, (double)((float)z + f), (double)((float)(x + 1) - f), (double)y + 0.25D, (double)((float)(z + 1) - f)); } public int isProvidingStrongPower(IBlockAccess blockAccess, int x, int y, int z, int side) { return side == 1 ? this.getPowerSupply(blockAccess.getBlockMetadata(x, y, z)) : 0; } @SideOnly(Side.CLIENT) public int getRenderType() { return ClientProxy.renderTableId; } @SideOnly(Side.CLIENT) public boolean shouldSideBeRendered(IBlockAccess blockAccess, int x, int y, int z, int side) { return true; } }
    • PlasManiaP

      Jouer un son en multijoueur

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x 1.7.10
      44
      0 Votes
      44 Messages
      7k Vues
      robin4002R
      En fait le problème d’origine est déjà réglé un moment : http://minecraftforgefrance.fr/showthread.php?tid=2341&pid=27094#pid27094
    • Phenix246P

      Créer un bloc avec des metadatas

      Suivi Ignoré Planifier Épinglé Verrouillé Déplacé Les blocs 1.7.x
      44
      0 Votes
      44 Messages
      24k Vues
      bin4r1sB
      Pour une raison inconnue, du jour au lendemain, ça a marché (robin4002 avait peut-être raison au final parce que entre temps, j’ai remplacé “Copper Crusher” par “Crusher” mais je n’avais pas testé…)
    • 1
    • 2
    • 6
    • 7
    • 8
    • 9
    • 10
    • 9 / 10
    Design by Woryk
    ContactMentions Légales

    MINECRAFT FORGE FRANCE © 2024

    Powered by NodeBB