Forge

[Dev] Ajouter une commande

Ajouter une commande. Ouvrir : /Minecraft/src/main/java/ckathode/weaponmod/BalkonsWeaponMod.java Chercher : public void initMod(FMLInitializationEvent event) Ajouter après : /* * Add command */ @EventHandler public void serverLoad(FMLServerStartingEvent event) { event.registerServerCommand(new SampleCommand()); } Ouvrir : /Minecraft/src/main/java/ckathode/weaponmod/SampleCommand.java Ajouter : package ckathode.weaponmod; import java.util.ArrayList; import java.util.List; import net.minecraft.command.ICommand; import net.minecraft.command.ICommandSender; import net.minecraft.util.ChatComponentText; /* * Add sample command */ public class SampleCommand […]

[Mod][BalkonsWeapon] Ajout de recette.

[Mod][BalkonsWeapon] Ajout de recette. Ouvrir : /Minecraft/src/main/java/ckathode/weaponmod/BalkonsWeaponMod.java Chercher : private void addModItems() Ajouter : // Recipes // uses 1 item cookie and 7 block sponge in the pattern to make 1 diamond. GameRegistry.addRecipe(new ItemStack(Items.diamond), « y y », « yxy », « yyy », ‘y’, Blocks.sponge, ‘x’, Items.cookie ); //uses 4 iron in a the pattern to make 2 gold.(The same […]

[Forge][Flans Mod] Compilation de Flan’s Mod

Compilation de Flan’s Mod. I) Version de Java : [~] ➔ java -version java version « 1.7.0_76 » Java(TM) SE Runtime Environment (build 1.7.0_76-b13) Java HotSpot(TM) Server VM (build 24.76-b04, mixed mode) II) Répertoire de travail : [~] ➔ mkdir -p MINECRAFT/DEV/ [~] ➔ cd MINECRAFT/DEV/ III) Installation de Eclipse : [~/MINECRAFT/DEV] ➔ mkdir ECLIPSE [~/MINECRAFT/DEV] ➔ […]