Jump to content

Recommended Posts

Posted

So ive been playing with this for a while now trying to fix it. I am running 1.8 forge(version 11.14.0.1269) and my mod doesnt seem to work.

I am running it in eclipse, below is the code and screen shots that may assist. I am new to minecraft so i hope im doing this all correctly.

 

 

CODE: (the bold letters are what im trying to get to work)

 

package com.xenios.testmod;

 

import net.minecraft.enchantment.Enchantment;

import net.minecraft.init.Blocks;

import net.minecraft.init.Items;

import net.minecraft.item.ItemStack;

import net.minecraft.util.WeightedRandomChestContent;

import net.minecraftforge.common.ChestGenHooks;

import net.minecraftforge.common.DungeonHooks;

import net.minecraftforge.fml.common.Mod;

import net.minecraftforge.fml.common.Mod.EventHandler;

import net.minecraftforge.fml.common.event.FMLInitializationEvent;

import net.minecraftforge.fml.common.registry.GameRegistry;

 

 

@Mod(modid = TestMod.MODID, version = TestMod.VERSION)

public class TestMod {

public static final String MODID = "xenios_testmod";

public static final String VERSION = "1.0 Alpha";

 

@EventHandler

public void init(FMLInitializationEvent event) {

 

// recipes

GameRegistry.addRecipe(new ItemStack(Items.apple), "XXX", "XXX", "XXX",

'X', Blocks.leaves);

GameRegistry.addShapelessRecipe(new ItemStack(Items.dye, 2, 1),

Items.redstone, new ItemStack(Items.dye, 1, 1));

// TEST

GameRegistry.addRecipe(new ItemStack(Items.stone_sword, 1), "XX", "XX",

'X', Blocks.sand);

 

GameRegistry.addSmelting(Blocks.stone,

new ItemStack(Blocks.stonebrick), 0.1F);

ItemStack enchantedSwordItemStack = new ItemStack(Items.stone_sword);

enchantedSwordItemStack.addEnchantment(Enchantment.sharpness, 1);

 

GameRegistry.addShapelessRecipe(enchantedSwordItemStack, Items.flint,

Items.stone_sword);

 

// Dungeon changes

DungeonHooks.removeDungeonMob("Spider");

ChestGenHooks.removeItem(ChestGenHooks.DUNGEON_CHEST, new ItemStack(

Items.saddle));

ChestGenHooks.addItem(ChestGenHooks.DUNGEON_CHEST,

new WeightedRandomChestContent(

new ItemStack(Blocks.cobblestone), 25, 50, 10));

 

}

}

 

 

here are some screen shots:

 

http://s10.postimg.org/l25nht3y1/Untitled.jpg

 

http://s8.postimg.org/6nq5443f9/Untitled1.jpg

 

http://s13.postimg.org/ssngpnvd3/Untitled2.jpg

 

http://s12.postimg.org/exibm5c5p/Untitled3.jpg

 

 

 

Any assistance would be great.

 

 

Thanks

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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