Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Texture Paths

C:\Users\User\Desktop\MC MODDING EQUIPMENT\Mods\Forge 1.6.4\Odeyessues's oddity mod 1.6.4\mcp\src\minecraft\assets\OOmod\textures\items

 

 

 

Main Class

package b.OOMOD;

import b.OOMOD.Weapons.weaponCBdagger;
import b.OOMOD.Weapons.weaponCBhammer;
import b.OOMOD.Weapons.weaponCBsword;
import b.OOMOD.Weapons.weaponIGknife;
import b.OOMOD.Weapons.weaponIGknife;
import b.OOMOD.Weapons.weaponIGsword;
import b.OOMOD.Weapons.weaponSIaxe;
import b.OOMOD.Weapons.weaponSIdagger;
import b.OOMOD.Weapons.weaponSIsword;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.EnumHelper;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;


//mod info
@Mod(modid = "OOMOD", name = "Odysessues' Oddity", version = "1.0.0")
//client server 
@NetworkMod(clientSideRequired = true, serverSideRequired = false)

public class OOmain{
//tool defining
public static Item CBsword;
public static Item CBdagger;
public static Item CBhammer;
public static Item SIsword;
public static Item SIdagger;
public static Item SIaxe;
public static Item IGsword;
public static Item IGknife;

//define material
public static EnumToolMaterial CB = EnumHelper.addToolMaterial("CB", 0, 2134, 8.0F, 10.0F, 10);
public static EnumToolMaterial SI = EnumHelper.addToolMaterial("SI", 0, 2134, 8.0F, 10.0F, 10);
public static EnumToolMaterial IG = EnumHelper.addToolMaterial("IG", 0, 2134, 8.0F, 10.0F, 10);

//event handler
@EventHandler
public void Load(FMLPreInitializationEvent Event){

	//Weapon Settings
	CBsword = new weaponCBsword(5000, CB).setUnlocalizedName("OOmod:CBsword ");
	CBdagger = new weaponCBdagger(5001, CB).setUnlocalizedName("OOmod:CBdagger ");
	CBhammer = new weaponCBhammer(5002, CB).setUnlocalizedName("OOmod:CBhammer ");
	SIsword = new weaponSIsword(5003, CB).setUnlocalizedName("OOmod:SIsword ");
	SIdagger = new weaponSIdagger(5004, CB).setUnlocalizedName("OOmod:SIdagger ");
	SIaxe = new weaponSIaxe(5005, CB).setUnlocalizedName("OOmod:SIaxe ");
	IGsword = new weaponIGsword(5006, CB).setUnlocalizedName("OOmod:IGsword ");
	IGknife = new weaponIGknife(5007, CB).setUnlocalizedName("OOmod:IGdagger ");

	//Tool Game Register
	GameRegistry.registerItem(CBsword, "CBsword");
	GameRegistry.registerItem(CBdagger, "CBdagger");
	GameRegistry.registerItem(CBhammer, "CBhammer");
	GameRegistry.registerItem(SIsword, "SIsword");
	GameRegistry.registerItem(SIdagger, "SIdagger");
	GameRegistry.registerItem(SIaxe, "SIaxe");
	GameRegistry.registerItem(IGsword, "IGsword");
	GameRegistry.registerItem(IGknife, "IGknife");

	//Tool Language Register
	LanguageRegistry.addName(CBsword, "Celestial Bronze Sword");
	LanguageRegistry.addName(CBdagger, "Celestial Bronze Dagger");
	LanguageRegistry.addName(CBhammer, "Celestial Bronze Hammer");
	LanguageRegistry.addName(SIsword, "Stygian Iron Sword");
	LanguageRegistry.addName(SIdagger, "Stygian Iron Dagger");
	LanguageRegistry.addName(SIaxe, "Stygian Iron Axe");
	LanguageRegistry.addName(IGsword, "Imperial Gold Sword");
	LanguageRegistry.addName(IGknife, "Imperial Gold Dagger");

	//weapon recipes
	GameRegistry.addRecipe(new ItemStack(CBsword), new Object[] {" C "," C "," S ", 'C', Item.appleRed, 'S', Item.stick});
	GameRegistry.addRecipe(new ItemStack(CBdagger), new Object[] {"   "," C "," S ", 'C', Item.appleRed, 'S', Item.stick});
	GameRegistry.addRecipe(new ItemStack(CBhammer), new Object[] {"CCC"," S "," S ", 'C', Item.appleRed, 'S', Item.stick});
	GameRegistry.addRecipe(new ItemStack(SIsword), new Object[] {" I "," I "," S ", 'I', Item.coal, 'S', Item.stick});
	GameRegistry.addRecipe(new ItemStack(SIdagger), new Object[] {"   "," I "," S ", 'I', Item.coal, 'S', Item.stick});
	GameRegistry.addRecipe(new ItemStack(SIaxe), new Object[] {"III"," S "," S ", 'I', Item.coal, 'S', Item.stick});
	GameRegistry.addRecipe(new ItemStack(IGsword), new Object[] {" G "," G "," S ", 'G', Item.wheat, 'S', Item.stick});
	GameRegistry.addRecipe(new ItemStack(IGknife), new Object[] {"   "," G "," S ", 'G', Item.wheat, 'S', Item.stick});

}}


 

CBdagger Class

package b.OOMOD.Weapons;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.ItemSword;


public class weaponCBdagger extends ItemSword {

public weaponCBdagger(int par1, EnumToolMaterial par2EnumToolMaterial) {
	super(par1, par2EnumToolMaterial);	
}
@SideOnly(Side.CLIENT)
public void registerICons(IconRegister register) {
	this.itemIcon = register.registerIcon("oomod:CBdagger");
}

}

 

Also i have a package in eclipse "assets.oomod.textures.items" and within in that is "CBdagger.png"

 

OOmod != oomod

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.