Whould you be able to show how to make a custom creative tab as well as a moddeled block from Techne (with a simple animation if possible) in Forge modding?
Hey SCMowns and fans. Can you please help me?
Whenever I try to run eclipse (after installing forge and making the path and things) eclipse says this when i try to open it:
Failed to load the JNI shared library "C:\Program
Files\Java|jdk1.7.0_02\bin\..\jre\bin\server\jvm.dll".
I love the videos, but i dont know how to fix this error. plz help!
Thank you SCMowns! Your forge ( and modloader ) has helped me learn how to mod! I have made a crafting recipe for the Block( solid ) befor you made the video ( for forge )! Your videos help a lot and I have tryed to find other videos but when I found yours is made modding so much better to mod!
for eps. 2, when i make the classes and set up all the names and stuff, in the mod_minecraft class, the setItemName has an error. I did it exactly like the video repeatedly, but I still get an error on setItemName
Hey I followed the steps and i got an error and it said that scalac could not be found in path. What is that file/code for? How important is it and how do i fix this Error? (this is for the tutorial video)
public class GemItems extends Item {
public GemItems(int par1) {
super(par1); /Returns super constructor: par1 is ID
setCreativeTab(CreativeTabs.tabMaterials); //Tells the game what creative mode tab it goes in
}
}
um SCmowns there needs to bee a double //
After making your Mod class, now paste the following code your class:
package SCMowns.Tutorial; //Package directory
/*
* Basic importing
*/
import net.minecraft.block.Block;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.EnumHelper;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
/*
* Basic needed forge stuff
*/
@Mod(modid="TutorialMod",name="Tutorial Mod",version="v1")
@NetworkMod(clientSideRequired=true,serverSideRequired=false)
public class TutorialMod {
/*
* ToolMaterial
*/
//Telling forge that we are creating these
public static Item topaz;
//Declaring Init
@Init
public void load(FMLInitializationEvent event){
// define items/blocks
topaz = new GemItems(2013).setUnlocalizedName("topaz");
//adding names
LanguageRegistry.addName(topaz, "Topaz Gem");
//crafting
}
}
Watch the video tutorial for information about what some lines mean.
Time to make a class for the GemItems. Here's what you add in that class:
package SCMowns.Tutorial;
import net.minecraft.item.Item;
import cpw.mods.fml.relauncher.*;
import net.minecraft.creativetab.CreativeTabs;
public class GemItems extends Item {
public GemItems(int par1) {
super(par1); /Returns super constructor: par1 is ID
setCreativeTab(CreativeTabs.tabMaterials); //Tells the game what creative mode tab it goes in
}
}
alright, after importing everything we need, now lets make the block,
in your public class brackets, make a new public static block.
public static Block BlockName;
now we need to declare what BlockName is,
in your public void load brackets, put there lines of code inside:
BlockName= new NewBlockClass(3608, "BlockName_Whatever").setUnlocalizedName("Texture_For_Block").setHardness(2.0F).setStepSound(Block.soundMetalFootstep).setResistance(10.0F);
GameRegistry.registerBlock(BlockName, "BlockName");
LanguageRegistry.addName(BlockName, "Blood Name");
setHardness = how hard your block will be, to see the list of vanilla blocks, you can check out the Block.java file
setResistance is how much resistence would the block have against impacts.
You can follow the video tutorial for the little things.
Now we need to define our new NewBlockClass.java.
Make a new class, for example: NewBlockClass
Now paste these lines of code inside:
package Your.Package;
import java.util.Random;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
public class NewBlockClass extends Block {
public BlockName(int par1, String texture) {
super(par1, Material.rock);
setCreativeTab(CreativeTabs.tabBlock); //place in creative tabs
}
//drops when broken with pickaxe
public int idDropped(int par1, Random par2Random, int par3)
{
return MainClass.ITEM.itemID;
}
public int quantityDropped(Random random)
{
return 3;
}
//texure the block (Not sure if it's required)
public String getTextureFile(){
return "/textures/blocks/TEXTURE_NAME.png";
}
}
Src: Basic Crafting:
In your main class, paste the code in your public void load():
GameRegistry.addRecipe(new ItemStack(topazblock,1), new Object[]{
"TTT","TTT","TTT",'T',topaz,
});
To read this code, we are making a topaz block with 9 topaz. T = 1 topaz, (topazblock,1) = we are crafting a topaz block and only getting one of them.
Here is an example using numbers in the crafting grid. Do you see the "TTT","TTT","TTT"
Not think of this code:
"TTT","TTT","TTT"
as:
"123","456","789"
That is how you can tell the crafting grid in java. (Watch my video for a better explanation.)
Sharpless Crafting:
sharpless crafting is making anything freely in the crafting table, without having any specific order.
(watch the video for a better explanation)
GameRegistry.addShapelessRecipe(new ItemStack(TrioItem,1), new Object[]{
RubyItem, SapphireItem, Item.emerald });
The coding is a lot similar to the Basic Crafting, but worded differently.
To make a Trio Gem, You need a Rubie, Sapphire, and an Emerald. These gems can be placed in the crafting table without any order to make a Trio Gem. ( This mod is Copyrighted. TrioGems Mod.)
I looked on the help forums but could not find an answer. as seen at in , My Eclipse failed to open and a message appeared on my screen:
Failed to load the JNI shared library "C;\Program Files
(x86)\Java\jdk1.7.0_21\bin\...Â\jre\bin\client\jvm.dll".
can u please help me with the crafting thingy????? just explain the "TTT","TTT","TTT","T" thingy thing :3 srry
for derping ^^ but can i please get a response??? :-( ): :-( ): :-( ):
he's making a video on that. he posts the coding first and then the video to help explain it
---- Minecraft Crash Report ----
// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]
Time: 5/25/13 9:56 PM
Description: Failed to start game
java.lang.ArrayIndexOutOfBoundsException: 60299
at net.minecraft.item.Item.<init>(Item.java:257)
at Beagle.BeagleMech.NaturalItem.<init>(NaturalItem.java:10)
at Beagle.BeagleMech.viridite.load(viridite.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:447)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:732)
at java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.5.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_21, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 881844888 bytes (840 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.51 FML v5.2.2.684 Minecraft Forge 7.8.0.684 4 mods loaded, 4 mods active
mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML{5.2.2.684} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge{7.8.0.684} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
BeagleMech{v1} [Beagle Mech] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: Intel(R) HD Graphics Family GL version 3.0.0 - Build 8.15.10.2353, Intel
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
This helped me so much, but I thought of a list you should think of doing tutorials on.
-Shaped blocks (anvil)
-Editing already existing blocks
-Giving blocks light properties
-Infectious or destructive blocks (TNT, or something like the Bacteria mod)
If you did tutorials on these, I would be so happy!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
and make them has special ability like a bull that charge to people make them fly
WEEEEEEEEEEEEEEEEEEEEEEEEEEE
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumWhenever I try to run eclipse (after installing forge and making the path and things) eclipse says this when i try to open it:
Failed to load the JNI shared library "C:\Program
Files\Java|jdk1.7.0_02\bin\..\jre\bin\server\jvm.dll".
I love the videos, but i dont know how to fix this error. plz help!
--------------------------
BlueBoyTech
Want a intro? Go to my fourm post.
-Branthor
import net.minecraft.item.Item;
import cpw.mods.fml.relauncher.*;
import net.minecraft.creativetab.CreativeTabs;
public class GemItems extends Item {
public GemItems(int par1) {
super(par1); /Returns super constructor: par1 is ID
setCreativeTab(CreativeTabs.tabMaterials); //Tells the game what creative mode tab it goes in
}
}
um SCmowns there needs to bee a double //
When are you going to have the next video up?
Failed to load the JNI shared library "C;\Program Files
(x86)\Java\jdk1.7.0_21\bin\...Â\jre\bin\client\jvm.dll".
does anyone know how to fix this?
please help me.
get an animated Pokemon at http://www.pkparaiso.com/xy/sprites_pokemon.php?cid=2#chunk2
---- Minecraft Crash Report ----
// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]
Time: 5/25/13 9:56 PM
Description: Failed to start game
java.lang.ArrayIndexOutOfBoundsException: 60299
at net.minecraft.item.Item.<init>(Item.java:257)
at Beagle.BeagleMech.NaturalItem.<init>(NaturalItem.java:10)
at Beagle.BeagleMech.viridite.load(viridite.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:447)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:732)
at java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.5.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_21, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 881844888 bytes (840 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.51 FML v5.2.2.684 Minecraft Forge 7.8.0.684 4 mods loaded, 4 mods active
mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML{5.2.2.684} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge{7.8.0.684} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
BeagleMech{v1} [Beagle Mech] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: Intel(R) HD Graphics Family GL version 3.0.0 - Build 8.15.10.2353, Intel
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
-Shaped blocks (anvil)
-Editing already existing blocks
-Giving blocks light properties
-Infectious or destructive blocks (TNT, or something like the Bacteria mod)
If you did tutorials on these, I would be so happy!