Jump to content

[Solved] Names and Generation


Briggybros

Recommended Posts

Hello, I'm new to this forum and to forge. I'm trying to port my mod onto forge whilst updating to 1.3.2. It's also the first time I've run the game from eclipse.

 

Names:

I'm trying to add names to my blocks and items, but when testing from eclipse the items and blocks have no names. I'm using the ModLoader.addName(obj, string); method. Is this a problem with testing in eclipse, 1.3.2 or is there a different way to do it with Forge?

 

Generation

I'm also trying to generate ores with my mod, and I'm using what I assume is ModLoaders generateSurface(). Is there a different way to do this in Forge again? or am I just a bad player because after two hours of looking I couldn't find anything.

 

Code:

Here is the code which contains both of these errors

package info.mineverse.Willow;

import java.util.Random;
import net.minecraft.src.Block;
import net.minecraft.src.EntityPlayer;
import net.minecraft.src.EnumArmorMaterial;
import net.minecraft.src.EnumToolMaterial;
import net.minecraft.src.Item;
import net.minecraft.src.ItemStack;
import net.minecraft.src.ItemSword;
import net.minecraft.src.Material;
import net.minecraft.src.ModLoader;
import net.minecraft.src.World;
import net.minecraft.src.WorldGenMinable;
import net.minecraftforge.client.ForgeHooksClient;
import net.minecraftforge.client.MinecraftForgeClient;
import net.minecraftforge.common.EnumHelper;
import net.minecraftforge.common.ForgeHooks;
import net.minecraftforge.common.MinecraftForge;
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;

@Mod(modid = "Willow", name="Willow", version="0.1")
@NetworkMod(clientSideRequired = true, serverSideRequired = false, versionBounds = "0.1")
public class WillowBase
{

//gem ores
public static Block oreAmethyst;
public static Block oreRuby;
public static Block oreAmber;
public static Block oreOnyx;
public static Block oreJade;
public static Block oreIolite;
public static Block oreSapphire;
public static Block oreTopaz;

//gem blocks
public static Block blockAmethyst;
public static Block blockRuby;
public static Block blockAmber;
public static Block blockOnyx;
public static Block blockJade;
public static Block blockIolite;
public static Block blockSapphire;
public static Block blockTopaz;

//gems
public static Item gemAmethyst;
public static Item gemRuby;
public static Item gemAmber;
public static Item gemOnyx;
public static Item gemJade;
public static Item gemIolite;
public static Item gemSapphire;
public static Item gemTopaz;

//enums
// - tools
static EnumToolMaterial enumAmethystTool = EnumHelper.addToolMaterial("Amethyst", 3, 1561, 8, 3, 10);
static EnumToolMaterial enumRubyTool = EnumHelper.addToolMaterial("Ruby", 3, 1561, 8, 3, 10);
static EnumToolMaterial enumAmberTool = EnumHelper.addToolMaterial("Amber", 3, 1561, 8, 3, 10);
static EnumToolMaterial enumOnyxTool = EnumHelper.addToolMaterial("Onyx", 3, 1561, 8, 3, 10);
static EnumToolMaterial enumJadeTool = EnumHelper.addToolMaterial("Jade", 3, 1561, 8, 3, 10);
static EnumToolMaterial enumIoliteTool = EnumHelper.addToolMaterial("Iolite", 3, 1561, 8, 3, 10);
static EnumToolMaterial enumSapphireTool = EnumHelper.addToolMaterial("Sapphire", 3, 1561, 8, 3, 10);
static EnumToolMaterial enumTopazTool = EnumHelper.addToolMaterial("Topaz", 3, 1561, 8, 3, 10);

// - armour
static EnumArmorMaterial enumAmethystArmour = EnumHelper.addArmorMaterial("Amethyst", 33, new int[]{3, 8, 6, 3}, 10);
static EnumArmorMaterial enumRubyArmour = EnumHelper.addArmorMaterial("Ruby", 33, new int[]{3, 8, 6, 3}, 10);
static EnumArmorMaterial enumAmberArmour = EnumHelper.addArmorMaterial("Amber", 33, new int[]{3, 8, 6, 3}, 10);
static EnumArmorMaterial enumOnyxArmour = EnumHelper.addArmorMaterial("Onyx", 33, new int[]{3, 8, 6, 3}, 10);
static EnumArmorMaterial enumJadeArmour = EnumHelper.addArmorMaterial("Jade", 33, new int[]{3, 8, 6, 3}, 10);
static EnumArmorMaterial enumIoliteArmour = EnumHelper.addArmorMaterial("Iolite", 33, new int[]{3, 8, 6, 3}, 10);
static EnumArmorMaterial enumSapphireArmour = EnumHelper.addArmorMaterial("Sapphire", 33, new int[]{3, 8, 6, 3}, 10);
static EnumArmorMaterial enumTopazArmour = EnumHelper.addArmorMaterial("Topaz", 33, new int[]{3, 8, 6, 3}, 10);

//gem tools
// - Amethyst
public static Item swordAmethyst;
public static Item pickaxeAmethyst;
public static Item spadeAmethyst;
public static Item axeAmethyst;
public static Item hoeAmethyst;

// - Ruby
public static Item swordRuby;
public static Item pickaxeRuby;
public static Item spadeRuby;
public static Item axeRuby;
public static Item hoeRuby;

// - Amber
public static Item swordAmber;
public static Item pickaxeAmber;
public static Item spadeAmber;
public static Item axeAmber;
public static Item hoeAmber;

// - Onyx
public static Item swordOnyx;
public static Item pickaxeOnyx;
public static Item spadeOnyx;
public static Item axeOnyx;
public static Item hoeOnyx;

// - Jade
public static Item swordJade;
public static Item pickaxeJade;
public static Item spadeJade;
public static Item axeJade;
public static Item hoeJade;

// - Iolite
public static Item swordIolite;
public static Item pickaxeIolite;
public static Item spadeIolite;
public static Item axeIolite;
public static Item hoeIolite;

// - Sapphire
public static Item swordSapphire;
public static Item pickaxeSapphire;
public static Item spadeSapphire;
public static Item axeSapphire;
public static Item hoeSapphire;

// - Topaz
public static Item swordTopaz;
public static Item pickaxeTopaz;
public static Item spadeTopaz;
public static Item axeTopaz;
public static Item hoeTopaz;

//gem armour
// - Amethyst
public static Item helmetAmethyst;
public static Item chestplateAmethyst;
public static Item leggingsAmethyst;
public static Item bootsAmethyst;

// - Ruby
public static Item helmetRuby;
public static Item chestplateRuby;
public static Item leggingsRuby;
public static Item bootsRuby;

// - Amber
public static Item helmetAmber;
public static Item chestplateAmber;
public static Item leggingsAmber;
public static Item bootsAmber;

// - Onyx
public static Item helmetOnyx;
public static Item chestplateOnyx;
public static Item leggingsOnyx;
public static Item bootsOnyx;

// - Jade
public static Item helmetJade;
public static Item chestplateJade;
public static Item leggingsJade;
public static Item bootsJade;

// - Iolite
public static Item helmetIolite;
public static Item chestplateIolite;
public static Item leggingsIolite;
public static Item bootsIolite;

// - Sapphire
public static Item helmetSapphire;
public static Item chestplateSapphire;
public static Item leggingsSapphire;
public static Item bootsSapphire;

// - Topaz
public static Item helmetTopaz;
public static Item chestplateTopaz;
public static Item leggingsTopaz;
public static Item bootsTopaz;

@Init
public void loadWillow(FMLInitializationEvent event)
{
	//textures
	MinecraftForgeClient.preloadTexture("/Willow/Base/BlockGems.png");
	MinecraftForgeClient.preloadTexture("/Willow/Base/ItemGems.png");

	//gem ores
	GameRegistry.registerBlock(oreAmethyst);
	GameRegistry.registerBlock(oreRuby);
	GameRegistry.registerBlock(oreAmber);
	GameRegistry.registerBlock(oreOnyx);
	GameRegistry.registerBlock(oreJade);
	GameRegistry.registerBlock(oreIolite);
	GameRegistry.registerBlock(oreSapphire);
	GameRegistry.registerBlock(oreTopaz);
	ModLoader.addName(oreAmethyst, "Amethyst Ore");
	ModLoader.addName(oreRuby, "Ruby Ore");
	ModLoader.addName(oreAmber, "Amber Ore");
	ModLoader.addName(oreOnyx, "Onyx Ore");
	ModLoader.addName(oreJade, "Jade Ore");
	ModLoader.addName(oreIolite, "Iolite Ore");
	ModLoader.addName(oreSapphire, "Sapphire Ore");
	ModLoader.addName(oreTopaz, "Topaz Ore");
	MinecraftForge.setBlockHarvestLevel(oreAmethyst, "pickaxe", 2);
	MinecraftForge.setBlockHarvestLevel(oreRuby, "pickaxe", 2);
	MinecraftForge.setBlockHarvestLevel(oreAmber, "pickaxe", 2);
	MinecraftForge.setBlockHarvestLevel(oreOnyx, "pickaxe", 2);
	MinecraftForge.setBlockHarvestLevel(oreJade, "pickaxe", 2);
	MinecraftForge.setBlockHarvestLevel(oreIolite, "pickaxe", 2);
	MinecraftForge.setBlockHarvestLevel(oreSapphire, "pickaxe", 2);
	MinecraftForge.setBlockHarvestLevel(oreTopaz, "pickaxe", 2);

	//gem blocks
	GameRegistry.registerBlock(blockAmethyst);
	GameRegistry.registerBlock(blockRuby);
	GameRegistry.registerBlock(blockAmber);
	GameRegistry.registerBlock(blockOnyx);
	GameRegistry.registerBlock(blockJade);
	GameRegistry.registerBlock(blockIolite);
	GameRegistry.registerBlock(blockSapphire);
	GameRegistry.registerBlock(blockTopaz);
	ModLoader.addName(blockAmethyst, "Amethyst Block");
	ModLoader.addName(blockRuby, "Ruby Block");
	ModLoader.addName(blockAmber, "Amber Block");
	ModLoader.addName(blockOnyx, "Onyx Block");
	ModLoader.addName(blockJade, "Jade Block");
	ModLoader.addName(blockIolite, "Iolite Block");
	ModLoader.addName(blockSapphire, "Sapphire Block");
	ModLoader.addName(blockTopaz, "Topaz Block");
	MinecraftForge.setBlockHarvestLevel(blockAmethyst, "pickaxe", 2);
	MinecraftForge.setBlockHarvestLevel(blockRuby, "pickaxe", 2);
	MinecraftForge.setBlockHarvestLevel(blockAmber, "pickaxe", 2);
	MinecraftForge.setBlockHarvestLevel(blockOnyx, "pickaxe", 2);
	MinecraftForge.setBlockHarvestLevel(blockJade, "pickaxe", 2);
	MinecraftForge.setBlockHarvestLevel(blockIolite, "pickaxe", 2);
	MinecraftForge.setBlockHarvestLevel(blockSapphire, "pickaxe", 2);
	MinecraftForge.setBlockHarvestLevel(blockTopaz, "pickaxe", 2);

	//gems
	ModLoader.addName(gemAmethyst, "Amethyst");
	ModLoader.addName(gemRuby, "Ruby");
	ModLoader.addName(gemAmber, "Amber");
	ModLoader.addName(gemOnyx, "Onyx");
	ModLoader.addName(gemJade, "Jade");
	ModLoader.addName(gemIolite, "Iolite");
	ModLoader.addName(gemSapphire, "Sapphire");
	ModLoader.addName(gemTopaz, "Topaz");

	//gem tools
	// - Amethyst
	ModLoader.addName(swordAmethyst, "Amethyst Sword");
	ModLoader.addName(pickaxeAmethyst, "Amethyst Pickaxe");
	ModLoader.addName(spadeAmethyst, "Amethyst Spade");
	ModLoader.addName(axeAmethyst, "Amethyst Axe");
	ModLoader.addName(hoeAmethyst, "Amethyst Hoe");

	// - Ruby
	ModLoader.addName(swordRuby, "Ruby Sword");
	ModLoader.addName(pickaxeRuby, "Ruby Pickaxe");
	ModLoader.addName(spadeRuby, "Ruby Spade");
	ModLoader.addName(axeRuby, "Ruby Axe");
	ModLoader.addName(hoeRuby, "Ruby Hoe");

	// - Amber
	ModLoader.addName(swordAmber, "Amber Sword");
	ModLoader.addName(pickaxeAmber, "Amber Pickaxe");
	ModLoader.addName(spadeAmber, "Amber Spade");
	ModLoader.addName(axeAmber, "Amber Axe");
	ModLoader.addName(hoeAmber, "Amber Hoe");

	// - Onyx
	ModLoader.addName(swordOnyx, "Onyx Sword");
	ModLoader.addName(pickaxeOnyx, "Onyx Pickaxe");
	ModLoader.addName(spadeOnyx, "Onyx Spade");
	ModLoader.addName(axeOnyx, "Onyx Axe");
	ModLoader.addName(hoeOnyx, "Onyx Hoe");

	// - Jade
	ModLoader.addName(swordJade, "Jade Sword");
	ModLoader.addName(pickaxeJade, "Jade Pickaxe");
	ModLoader.addName(spadeJade, "Jade Spade");
	ModLoader.addName(axeJade, "Jade Axe");
	ModLoader.addName(hoeJade, "Jade Hoe");

	// - Iolite
	ModLoader.addName(swordIolite, "Iolite Sword");
	ModLoader.addName(pickaxeIolite, "Iolite Pickaxe");
	ModLoader.addName(spadeIolite, "Iolite Spade");
	ModLoader.addName(axeIolite, "Iolite Axe");
	ModLoader.addName(hoeIolite, "Iolite Hoe");

	// - Sapphire
	ModLoader.addName(swordSapphire, "Sapphire Sword");
	ModLoader.addName(pickaxeSapphire, "Sapphire Pickaxe");
	ModLoader.addName(spadeSapphire, "Sapphire Spade");
	ModLoader.addName(axeSapphire, "Sapphire Axe");
	ModLoader.addName(hoeSapphire, "Sapphire Hoe");

	// - Topaz
	ModLoader.addName(swordTopaz, "Topaz Sword");
	ModLoader.addName(pickaxeTopaz, "Topaz Pickaxe");
	ModLoader.addName(spadeTopaz, "Topaz Spade");
	ModLoader.addName(axeTopaz, "Topaz Axe");
	ModLoader.addName(hoeTopaz, "Topaz Hoe");

	//Crafting Recipes
	// - Gems2Gemblock
	// - - Amethyst
	GameRegistry.addRecipe(new ItemStack(blockAmethyst, 1), new Object[]
                {
            "###", "###", "###", Character.valueOf('#'), gemAmethyst
        });

	// - - Ruby
	GameRegistry.addRecipe(new ItemStack(blockRuby, 1), new Object[]
                {
            "###", "###", "###", Character.valueOf('#'), gemRuby
        });

	// - - Amber
	GameRegistry.addRecipe(new ItemStack(blockAmber, 1), new Object[]
                {
            "###", "###", "###", Character.valueOf('#'), gemAmber
        });

	// - - Onyx
	GameRegistry.addRecipe(new ItemStack(blockOnyx, 1), new Object[]
                {
            "###", "###", "###", Character.valueOf('#'), gemOnyx
        });

	// - - Jade
	GameRegistry.addRecipe(new ItemStack(blockJade, 1), new Object[]
                {
            "###", "###", "###", Character.valueOf('#'), gemJade
        });

	// - - Iolite
	GameRegistry.addRecipe(new ItemStack(blockIolite, 1), new Object[]
                {
            "###", "###", "###", Character.valueOf('#'), gemIolite
        });

	// - - Sapphire
	GameRegistry.addRecipe(new ItemStack(blockSapphire, 1), new Object[]
                {
            "###", "###", "###", Character.valueOf('#'), gemSapphire
        });

	// - - Topaz
	GameRegistry.addRecipe(new ItemStack(blockTopaz, 1), new Object[]
                {
            "###", "###", "###", Character.valueOf('#'), gemTopaz
        });

	// - blockblock2Gems
	// - - Amethyst
	GameRegistry.addRecipe(new ItemStack(gemAmethyst, 9), new Object[]
                {
            "#", Character.valueOf('#'), blockAmethyst
        });

	// - - Ruby
	GameRegistry.addRecipe(new ItemStack(gemRuby, 9), new Object[]
                {
            "#", Character.valueOf('#'), blockRuby
        });

	// - - Amber
	GameRegistry.addRecipe(new ItemStack(gemAmber, 9), new Object[]
                {
            "#", Character.valueOf('#'), blockAmber
        });

	// - - Onyx
	GameRegistry.addRecipe(new ItemStack(gemOnyx, 9), new Object[]
                {
            "#", Character.valueOf('#'), blockOnyx
        });

	// - - Jade
	GameRegistry.addRecipe(new ItemStack(gemJade, 9), new Object[]
                {
            "#", Character.valueOf('#'), blockJade
        });

	// - - Iolite
	GameRegistry.addRecipe(new ItemStack(gemIolite, 9), new Object[]
                {
            "#", Character.valueOf('#'), blockIolite
        });

	// - - Sapphire
	GameRegistry.addRecipe(new ItemStack(gemSapphire, 9), new Object[]
                {
            "#", Character.valueOf('#'), blockSapphire
        });

	// - - Topaz
	GameRegistry.addRecipe(new ItemStack(gemTopaz, 9), new Object[]
                {
            "#", Character.valueOf('#'), blockTopaz
        });
}

    public void generateSurface(World world, Random random, int i, int j)
    {
        for (int k = 0; k < 1; k++)
        {
            int l1 = i + random.nextInt(16);
            int i3 = random.nextInt(16);
            int j4 = j + random.nextInt(16);
            (new WorldGenMinable(oreAmethyst.blockID, 3)).generate(world, random, l1, i3, j4);
        }
        for (int k = 0; k < 1; k++)
        {
            int l1 = i + random.nextInt(16);
            int i3 = random.nextInt(16);
            int j4 = j + random.nextInt(16);
            (new WorldGenMinable(oreRuby.blockID, 3)).generate(world, random, l1, i3, j4);
        }
        for (int k = 0; k < 1; k++)
        {
            int l1 = i + random.nextInt(16);
            int i3 = random.nextInt(16);
            int j4 = j + random.nextInt(16);
            (new WorldGenMinable(oreAmber.blockID, 3)).generate(world, random, l1, i3, j4);
        }
        for (int k = 0; k < 1; k++)
        {
            int l1 = i + random.nextInt(16);
            int i3 = random.nextInt(16);
            int j4 = j + random.nextInt(16);
            (new WorldGenMinable(oreOnyx.blockID, 3)).generate(world, random, l1, i3, j4);
        }
        for (int k = 0; k < 1; k++)
        {
            int l1 = i + random.nextInt(16);
            int i3 = random.nextInt(16);
            int j4 = j + random.nextInt(16);
            (new WorldGenMinable(oreJade.blockID, 3)).generate(world, random, l1, i3, j4);
        }
        for (int k = 0; k < 1; k++)
        {
            int l1 = i + random.nextInt(16);
            int i3 = random.nextInt(16);
            int j4 = j + random.nextInt(16);
            (new WorldGenMinable(oreIolite.blockID, 3)).generate(world, random, l1, i3, j4);
        }
        for (int k = 0; k < 1; k++)
        {
            int l1 = i + random.nextInt(16);
            int i3 = random.nextInt(16);
            int j4 = j + random.nextInt(16);
            (new WorldGenMinable(oreSapphire.blockID, 3)).generate(world, random, l1, i3, j4);
        }
        for (int k = 0; k < 1; k++)
        {
            int l1 = i + random.nextInt(16);
            int i3 = random.nextInt(16);
            int j4 = j + random.nextInt(16);
            (new WorldGenMinable(oreTopaz.blockID, 3)).generate(world, random, l1, i3, j4);
        }
    }

static
{
	//gem ores
	oreAmethyst = (new WillowBlockOre(225, 0)).setBlockName("AmethystOre");
	oreRuby = (new WillowBlockOre(226, 1)).setBlockName("RubyOre");
	oreAmber = (new WillowBlockOre(227, 2)).setBlockName("AmberOre");
	oreOnyx = (new WillowBlockOre(228, 3)).setBlockName("OnyxOre");
	oreJade = (new WillowBlockOre(229, 4)).setBlockName("JadeOre");
	oreIolite = (new WillowBlockOre(230, 5)).setBlockName("IoliteOre");
	oreSapphire = (new WillowBlockOre(231, 6)).setBlockName("SapphireOre");
	oreTopaz = (new WillowBlockOre(232, 7)).setBlockName("TopazOre");

	//gem blocks
	blockAmethyst = (new WillowBlockStorage(233, ).setBlockName("AmethystBlock");
	blockRuby = (new WillowBlockStorage(234, 9)).setBlockName("RubyBlock");
	blockAmber = (new WillowBlockStorage(235, 10)).setBlockName("AmberBlock");
	blockOnyx = (new WillowBlockStorage(236, 11)).setBlockName("OnyxBlock");
	blockJade = (new WillowBlockStorage(237, 12)).setBlockName("JadeBlock");
	blockIolite = (new WillowBlockStorage(238, 13)).setBlockName("IoliteBlock");
	blockSapphire = (new WillowBlockStorage(239, 14)).setBlockName("SapphireBlock");
	blockTopaz = (new WillowBlockStorage(240, 15)).setBlockName("TopazBlock");

	//gems
	gemAmethyst = (new WillowItemGem(1000, 144)).setItemName("Amethyst");
	gemRuby = (new WillowItemGem(1001, 145)).setItemName("Ruby");
	gemAmber = (new WillowItemGem(1002, 146)).setItemName("Amber");
	gemOnyx = (new WillowItemGem(1003, 147)).setItemName("Onyx");
	gemJade = (new WillowItemGem(1004, 148)).setItemName("Jade");
	gemIolite = (new WillowItemGem(1005, 149)).setItemName("Iolite");
	gemSapphire = (new WillowItemGem(1006, 150)).setItemName("Sapphire");
	gemTopaz = (new WillowItemGem(1007, 151)).setItemName("Topaz");

	//gem tools
	// - Amethyst
	swordAmethyst = (new WillowItemSword(1008, 64, enumAmethystTool)).setItemName("AmethystSword");
	pickaxeAmethyst = (new WillowItemPickaxe(1009, 96, enumAmethystTool)).setItemName("AmethystPickaxe");
	spadeAmethyst = (new WillowItemSpade(1010, 80, enumAmethystTool)).setItemName("AmethystPickaxe");
	axeAmethyst = (new WillowItemAxe(1011, 112, enumAmethystTool)).setItemName("AmethystAxe");
	hoeAmethyst = (new WillowItemHoe(1012, 128, enumAmethystTool)).setItemName("AmethystHoe");

	// - Ruby
	swordRuby = (new WillowItemSword(1013, 65, enumRubyTool)).setItemName("RubySword");
	pickaxeRuby = (new WillowItemPickaxe(1014, 97, enumRubyTool)).setItemName("RubyPickaxe");
	spadeRuby = (new WillowItemSpade(1015, 81, enumRubyTool)).setItemName("RubyPickaxe");
	axeRuby = (new WillowItemAxe(1016, 113, enumRubyTool)).setItemName("RubyAxe");
	hoeRuby = (new WillowItemHoe(1017, 129, enumRubyTool)).setItemName("RubyHoe");

	// - Amber
	swordAmber = (new WillowItemSword(1018, 66, enumAmberTool)).setItemName("AmberSword");
	pickaxeAmber = (new WillowItemPickaxe(1019, 98, enumAmberTool)).setItemName("AmberPickaxe");
	spadeAmber = (new WillowItemSpade(1020, 82, enumAmberTool)).setItemName("AmberPickaxe");
	axeAmber = (new WillowItemAxe(1021, 114, enumAmberTool)).setItemName("AmberAxe");
	hoeAmber = (new WillowItemHoe(1022, 130, enumAmberTool)).setItemName("AmberHoe");

	// - Onyx
	swordOnyx = (new WillowItemSword(1023, 67, enumOnyxTool)).setItemName("OnyxSword");
	pickaxeOnyx = (new WillowItemPickaxe(1024, 99, enumOnyxTool)).setItemName("OnyxPickaxe");
	spadeOnyx = (new WillowItemSpade(1025, 83, enumOnyxTool)).setItemName("OnyxPickaxe");
	axeOnyx = (new WillowItemAxe(1026, 115, enumOnyxTool)).setItemName("OnyxAxe");
	hoeOnyx = (new WillowItemHoe(1027, 131, enumOnyxTool)).setItemName("OnyxHoe");

	// - Jade
	swordJade = (new WillowItemSword(1028, 68, enumJadeTool)).setItemName("JadeSword");
	pickaxeJade = (new WillowItemPickaxe(1029, 100, enumJadeTool)).setItemName("JadePickaxe");
	spadeJade = (new WillowItemSpade(1030, 84, enumJadeTool)).setItemName("JadePickaxe");
	axeJade = (new WillowItemAxe(1031, 116, enumJadeTool)).setItemName("JadeAxe");
	hoeJade = (new WillowItemHoe(1032, 132, enumJadeTool)).setItemName("JadeHoe");

	// - Iolite
	swordIolite = (new WillowItemSword(1033, 69, enumIoliteTool)).setItemName("IoliteSword");
	pickaxeIolite = (new WillowItemPickaxe(1034, 101, enumIoliteTool)).setItemName("IolitePickaxe");
	spadeIolite = (new WillowItemSpade(1035, 85, enumIoliteTool)).setItemName("IolitePickaxe");
	axeIolite = (new WillowItemAxe(1036, 117, enumIoliteTool)).setItemName("IoliteAxe");
	hoeIolite = (new WillowItemHoe(1037, 133, enumIoliteTool)).setItemName("IoliteHoe");

	// - Sapphire
	swordSapphire = (new WillowItemSword(1038, 70, enumSapphireTool)).setItemName("SapphireSword");
	pickaxeSapphire = (new WillowItemPickaxe(1039, 102, enumSapphireTool)).setItemName("SapphirePickaxe");
	spadeSapphire = (new WillowItemSpade(1040, 86, enumSapphireTool)).setItemName("SapphirePickaxe");
	axeSapphire = (new WillowItemAxe(1041, 118, enumSapphireTool)).setItemName("SapphireAxe");
	hoeSapphire = (new WillowItemHoe(1042, 134, enumSapphireTool)).setItemName("SapphireHoe");

	// - Topaz
	swordTopaz = (new WillowItemSword(1043, 71, enumTopazTool)).setItemName("TopazSword");
	pickaxeTopaz = (new WillowItemPickaxe(1044, 103, enumTopazTool)).setItemName("TopazPickaxe");
	spadeTopaz = (new WillowItemSpade(1045, 87, enumTopazTool)).setItemName("TopazPickaxe");
	axeTopaz = (new WillowItemAxe(1046, 119, enumTopazTool)).setItemName("TopazAxe");
	hoeTopaz = (new WillowItemHoe(1047, 135, enumTopazTool)).setItemName("TopazHoe");

	//gem armour
	// - Amethyst
	helmetAmethyst = (new WillowItemArmor(1048, 0, enumAmethystArmour, 6, 0)).setItemName("AmethystHelmet");
	chestplateAmethyst = (new WillowItemArmor(1049, 16, enumAmethystArmour, 6, 1)).setItemName("AmethystChestplate");
	leggingsAmethyst = (new WillowItemArmor(1050, 32, enumAmethystArmour, 6, 2)).setItemName("AmethystLeggings");
	bootsAmethyst = (new WillowItemArmor(1051, 48, enumAmethystArmour, 6, 3)).setItemName("AmethystBoots");

	// - Ruby
	helmetRuby = (new WillowItemArmor(1052, 1, enumRubyArmour, 7, 0)).setItemName("RubyHelmet");
	chestplateRuby = (new WillowItemArmor(1053, 17, enumRubyArmour, 7, 1)).setItemName("RubyChestplate");
	leggingsRuby = (new WillowItemArmor(1054, 33, enumRubyArmour, 7, 2)).setItemName("RubyLeggings");
	bootsRuby = (new WillowItemArmor(1055, 49, enumRubyArmour, 7, 3)).setItemName("RubyBoots");

	// - Amber
	helmetAmber = (new WillowItemArmor(1056, 2, enumAmberArmour, 8, 0)).setItemName("AmberHelmet");
	chestplateAmber = (new WillowItemArmor(1057, 18, enumAmberArmour, 8, 1)).setItemName("AmberChestplate");
	leggingsAmber = (new WillowItemArmor(1058, 34, enumAmberArmour, 8, 2)).setItemName("AmberLeggings");
	bootsAmber = (new WillowItemArmor(1059, 50, enumAmberArmour, 8, 3)).setItemName("AmberBoots");

	// - Onyx
	helmetOnyx = (new WillowItemArmor(1060, 3, enumOnyxArmour, 9, 0)).setItemName("OnyxHelmet");
	chestplateOnyx = (new WillowItemArmor(1061, 19, enumOnyxArmour, 9, 1)).setItemName("OnyxChestplate");
	leggingsOnyx = (new WillowItemArmor(1062, 35, enumOnyxArmour, 9, 2)).setItemName("OnyxLeggings");
	bootsOnyx = (new WillowItemArmor(1063, 51, enumOnyxArmour, 9, 3)).setItemName("OnyxBoots");

	// - Jade
	helmetJade = (new WillowItemArmor(1064, 4, enumJadeArmour, 10, 0)).setItemName("JadeHelmet");
	chestplateJade = (new WillowItemArmor(1065, 20, enumJadeArmour, 10, 1)).setItemName("JadeChestplate");
	leggingsJade = (new WillowItemArmor(1066, 36, enumJadeArmour, 10, 2)).setItemName("JadeLeggings");
	bootsJade = (new WillowItemArmor(1067, 52, enumJadeArmour, 10, 3)).setItemName("JadeBoots");

	// - Iolite
	helmetIolite = (new WillowItemArmor(1068, 5, enumIoliteArmour, 11, 0)).setItemName("IoliteHelmet");
	chestplateIolite = (new WillowItemArmor(1069, 21, enumIoliteArmour, 11, 1)).setItemName("IoliteChestplate");
	leggingsIolite = (new WillowItemArmor(1070, 37, enumIoliteArmour, 11, 2)).setItemName("IoliteLeggings");
	bootsIolite = (new WillowItemArmor(1071, 53, enumIoliteArmour, 11, 3)).setItemName("IoliteBoots");

	// - Sapphire
	helmetSapphire = (new WillowItemArmor(1072, 6, enumSapphireArmour, 12, 0)).setItemName("SapphireHelmet");
	chestplateSapphire = (new WillowItemArmor(1073, 22, enumSapphireArmour, 12, 1)).setItemName("SapphireChestplate");
	leggingsSapphire = (new WillowItemArmor(1074, 38, enumSapphireArmour, 12, 2)).setItemName("SapphireLeggings");
	bootsSapphire = (new WillowItemArmor(1075, 54, enumSapphireArmour, 12, 3)).setItemName("SapphireBoots");

	// - Topaz
	helmetTopaz = (new WillowItemArmor(1076, 7, enumTopazArmour, 13, 0)).setItemName("TopazHelmet");
	chestplateTopaz = (new WillowItemArmor(1077, 23, enumTopazArmour, 13, 1)).setItemName("TopazChestplate");
	leggingsTopaz = (new WillowItemArmor(1078, 39, enumTopazArmour, 13, 2)).setItemName("TopazLeggings");
	bootsTopaz = (new WillowItemArmor(1079, 55, enumTopazArmour, 13, 3)).setItemName("TopazBoots");
}
}

Link to comment
Share on other sites

I believe .setBlockName requires the first letter to be lower case, but I could be wrong.

oreAmethyst = (new WillowBlockOre(225, 0)).setBlockName("amethystOre");

 

NOTE: The following code enables you to remove ModLoader.addName but functions exactly the same

If you want to remove ModLoader.addName your new code would look like:

LanguageRegistry.instance().addNameForObject(oreAmethyst, "en_US", "Amethyst Ore");

 

Or you can make your own addName and just remove "ModLoader."

private void addName(Object objectToName, String inGameName)
{
    LanguageRegistry.instance().addNameForObject(objectToName, "en_US", inGameName);
}

 

 

As for generation,

I'll give the code to put it in its own class file, personally I find this to be less cluttered when you are generating many things.

If you wish to have it in your main class file minimal changes are needed.

 

First you'll need this line (after your textures but before registering your ores looks like a good spot)

GameRegistry.registerWorldGenerator(new WorldGenerator());

 

Next a new class file WorldGenerator.class

public class WorldGenerator implements IWorldGenerator
{
    @Override
    public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
    {
        switch (world.provider.worldType)
        {
            case -1:
                generateNether(world, random, chunkX*16, chunkZ*16); //Forge provides true chunk coordinates, while ModLoader provides block coordinates and calls them chunkX & chunkZ
                break;
            case 0:
                generateSurface(world, random, chunkX*16, chunkZ*16); //To make these values the same as ModLoader they need to be multiplied by 16
                break;
        }
    }

    public void generateSurface(World world, Random random, int blockX, int blockZ)
    {
        // TODO Your code here
    }

    public void generateNether(World world, Random random, int blockX, int blockZ)
    {
        // TODO Your code here
    }
}

Link to comment
Share on other sites

wow em i do not work with forge at the moment. but there are a lot of tutorials for the basement. i use them to check my code. check it out. www.minecraftforum.net/topic/929151-moddingmodloaderforge-api-jotamotas-tutorials/ this is a tut about metadata items and blocks with and without forge. Thir is for textures. i hope it help.

Crazy Brain...

Link to comment
Share on other sites

I believe .setBlockName requires the first letter to be lower case, but I could be wrong.

oreAmethyst = (new WillowBlockOre(225, 0)).setBlockName("amethystOre");

 

NOTE: The following code enables you to remove ModLoader.addName but functions exactly the same

If you want to remove ModLoader.addName your new code would look like:

LanguageRegistry.instance().addNameForObject(oreAmethyst, "en_US", "Amethyst Ore");

 

Or you can make your own addName and just remove "ModLoader."

private void addName(Object objectToName, String inGameName)
{
    LanguageRegistry.instance().addNameForObject(objectToName, "en_US", inGameName);
}

 

 

As for generation,

I'll give the code to put it in its own class file, personally I find this to be less cluttered when you are generating many things.

If you wish to have it in your main class file minimal changes are needed.

 

First you'll need this line (after your textures but before registering your ores looks like a good spot)

GameRegistry.registerWorldGenerator(new WorldGenerator());

 

Next a new class file WorldGenerator.class

public class WorldGenerator implements IWorldGenerator
{
    @Override
    public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
    {
        switch (world.provider.worldType)
        {
            case -1:
                generateNether(world, random, chunkX*16, chunkZ*16); //Forge provides true chunk coordinates, while ModLoader provides block coordinates and calls them chunkX & chunkZ
                break;
            case 0:
                generateSurface(world, random, chunkX*16, chunkZ*16); //To make these values the same as ModLoader they need to be multiplied by 16
                break;
        }
    }

    public void generateSurface(World world, Random random, int blockX, int blockZ)
    {
        // TODO Your code here
    }

    public void generateNether(World world, Random random, int blockX, int blockZ)
    {
        // TODO Your code here
    }
}

 

With the naming, will it only apply for English(US), as I use English(UK) that was my only concern with that

Link to comment
Share on other sites

ModLoader.addName also sets it to "en_US"

 

This is untested but might work for you

private void addName(Object objectToName, String inGameName)
{
    LanguageRegistry.instance().addNameForObject(objectToName, "en_US", inGameName);
    LanguageRegistry.instance().addNameForObject(objectToName, "en_UK", inGameName);
}

Link to comment
Share on other sites

All of the names work with ModLoader.addName(object, string) as of the new Forge update

 

EDIT:

The armour names have not worked (I have also put .setItem/BlockName to camelCase for all blocks/items)

 

EDIT:

Neither do they render when worn.

 

EDIT:

Armour code:

 

package info.mineverse.willow.common;

import net.minecraft.src.EnumArmorMaterial;
import net.minecraft.src.ItemArmor;
import net.minecraft.src.ItemStack;
import net.minecraftforge.common.IArmorTextureProvider;

public class WillowItemArmor extends ItemArmor implements IArmorTextureProvider
{
public WillowItemArmor(int par1, int par2, EnumArmorMaterial par3EnumArmorMaterial, int par4, int par5)
{
	super(par1, par3EnumArmorMaterial, par4, par5);
	setIconIndex(par2);
}

@Override
public String getTextureFile()
{
	return "/Willow/Base/ItemGems.png";
}

@Override
public String getArmorTextureFile(ItemStack itemstack)
{
	//Amethyst
	if(itemstack.itemID == WillowBase.helmetAmethyst.shiftedIndex || itemstack.itemID == WillowBase.chestplateAmethyst.shiftedIndex || itemstack.itemID == WillowBase.bootsAmethyst.shiftedIndex)
        {
        	return "/Willow/Base/Armor/Amethyst_1.png";
        }
        if(itemstack.itemID == WillowBase.leggingsAmethyst.shiftedIndex)
        {
        	return "/Willow/Base/Armor/Amethyst_2.png";
        }
        
	//Ruby
	if(itemstack.itemID == WillowBase.helmetRuby.shiftedIndex || itemstack.itemID == WillowBase.chestplateRuby.shiftedIndex || itemstack.itemID == WillowBase.bootsRuby.shiftedIndex)
        {
        	return "/Willow/Base/Armor/Ruby_1.png";
        }
        if(itemstack.itemID == WillowBase.leggingsRuby.shiftedIndex)
        {
        	return "/Willow/Base/Armor/Ruby_2.png";
        }
        
	//Amber
	if(itemstack.itemID == WillowBase.helmetAmber.shiftedIndex || itemstack.itemID == WillowBase.chestplateAmber.shiftedIndex || itemstack.itemID == WillowBase.bootsAmber.shiftedIndex)
        {
        	return "/Willow/Base/Armor/Amber_1.png";
        }
        if(itemstack.itemID == WillowBase.leggingsAmber.shiftedIndex)
        {
        	return "/Willow/Base/Armor/Amber_2.png";
        }
        
	//Onyx
	if(itemstack.itemID == WillowBase.helmetOnyx.shiftedIndex || itemstack.itemID == WillowBase.chestplateOnyx.shiftedIndex || itemstack.itemID == WillowBase.bootsOnyx.shiftedIndex)
        {
        	return "/Willow/Base/Armor/Onyx_1.png";
        }
        if(itemstack.itemID == WillowBase.leggingsOnyx.shiftedIndex)
        {
        	return "/Willow/Base/Armor/Onyx_2.png";
        }
        
	//Jade
	if(itemstack.itemID == WillowBase.helmetJade.shiftedIndex || itemstack.itemID == WillowBase.chestplateJade.shiftedIndex || itemstack.itemID == WillowBase.bootsJade.shiftedIndex)
        {
        	return "/Willow/Base/Armor/Jade_1.png";
        }
        if(itemstack.itemID == WillowBase.leggingsJade.shiftedIndex)
        {
        	return "/Willow/Base/Armor/Jade_2.png";
        }
        
	//Iolite
	if(itemstack.itemID == WillowBase.helmetIolite.shiftedIndex || itemstack.itemID == WillowBase.chestplateIolite.shiftedIndex || itemstack.itemID == WillowBase.bootsIolite.shiftedIndex)
        {
        	return "/Willow/Base/Armor/Iolite_1.png";
        }
        if(itemstack.itemID == WillowBase.leggingsIolite.shiftedIndex)
        {
        	return "/Willow/Base/Armor/Iolite_2.png";
        }
        
	//Sapphire
	if(itemstack.itemID == WillowBase.helmetSapphire.shiftedIndex || itemstack.itemID == WillowBase.chestplateSapphire.shiftedIndex || itemstack.itemID == WillowBase.bootsSapphire.shiftedIndex)
        {
        	return "/Willow/Base/Armor/Sapphire_1.png";
        }
        if(itemstack.itemID == WillowBase.leggingsSapphire.shiftedIndex)
        {
        	return "/Willow/Base/Armor/Sapphire_2.png";
        }
        
	//Topaz
	if(itemstack.itemID == WillowBase.helmetTopaz.shiftedIndex || itemstack.itemID == WillowBase.chestplateTopaz.shiftedIndex || itemstack.itemID == WillowBase.bootsTopaz.shiftedIndex)
        {
        	return "/Willow/Base/Armor/Topaz_1.png";
        }
        if(itemstack.itemID == WillowBase.leggingsTopaz.shiftedIndex)
        {
        	return "/Willow/Base/Armor/Topaz_2.png";
        }
        
        else
        {
        	return null;
        }
}
}

 

 

EDIT:

The ore generation works now, thanks!

 

EDIT:

Noticed the armour was never assigned a name, derp

Link to comment
Share on other sites

I've only added a single Amulet and it was in the armor directory and didn't use IArmorTextureProvider, so I won't be of much use but;

 

Have you tried throwing some system.out 's in to see if the textures are ever being returned, rather then returning null each time?

 

 

Link to comment
Share on other sites

I've not layed it out as so;

 

	@Override
public String getArmorTextureFile(ItemStack itemstack)
{
	//Amethyst
	if(itemstack.itemID == WillowBase.helmetAmethyst.shiftedIndex || itemstack.itemID == WillowBase.chestplateAmethyst.shiftedIndex || itemstack.itemID == WillowBase.bootsAmethyst.shiftedIndex)
        {
        	return "amethyst_1.png";
        }
        if(itemstack.itemID == WillowBase.leggingsAmethyst.shiftedIndex)
        {
        	return "amethyst_2.png";
        }
        
	//Ruby
	if(itemstack.itemID == WillowBase.helmetRuby.shiftedIndex || itemstack.itemID == WillowBase.chestplateRuby.shiftedIndex || itemstack.itemID == WillowBase.bootsRuby.shiftedIndex)
        {
        	return "ruby_1.png";
        }
        if(itemstack.itemID == WillowBase.leggingsRuby.shiftedIndex)
        {
        	return "ruby_2.png";
        }
        
	//Amber
	if(itemstack.itemID == WillowBase.helmetAmber.shiftedIndex || itemstack.itemID == WillowBase.chestplateAmber.shiftedIndex || itemstack.itemID == WillowBase.bootsAmber.shiftedIndex)
        {
        	return "amber_1.png";
        }
        if(itemstack.itemID == WillowBase.leggingsAmber.shiftedIndex)
        {
        	return "amber_2.png";
        }
        
	//Onyx
	if(itemstack.itemID == WillowBase.helmetOnyx.shiftedIndex || itemstack.itemID == WillowBase.chestplateOnyx.shiftedIndex || itemstack.itemID == WillowBase.bootsOnyx.shiftedIndex)
        {
        	return "onyx_1.png";
        }
        if(itemstack.itemID == WillowBase.leggingsOnyx.shiftedIndex)
        {
        	return "onyx_2.png";
        }
        
	//Jade
	if(itemstack.itemID == WillowBase.helmetJade.shiftedIndex || itemstack.itemID == WillowBase.chestplateJade.shiftedIndex || itemstack.itemID == WillowBase.bootsJade.shiftedIndex)
        {
        	return "jade_1.png";
        }
        if(itemstack.itemID == WillowBase.leggingsJade.shiftedIndex)
        {
        	return "jade_2.png";
        }
        
	//Iolite
	if(itemstack.itemID == WillowBase.helmetIolite.shiftedIndex || itemstack.itemID == WillowBase.chestplateIolite.shiftedIndex || itemstack.itemID == WillowBase.bootsIolite.shiftedIndex)
        {
        	return "iolite_1.png";
        }
        if(itemstack.itemID == WillowBase.leggingsIolite.shiftedIndex)
        {
        	return "iolite_2.png";
        }
        
	//Sapphire
	if(itemstack.itemID == WillowBase.helmetSapphire.shiftedIndex || itemstack.itemID == WillowBase.chestplateSapphire.shiftedIndex || itemstack.itemID == WillowBase.bootsSapphire.shiftedIndex)
        {
        	return "sapphire_1.png";
        }
        if(itemstack.itemID == WillowBase.leggingsSapphire.shiftedIndex)
        {
        	return "sapphire_2.png";
        }
        
	//Topaz
	if(itemstack.itemID == WillowBase.helmetTopaz.shiftedIndex || itemstack.itemID == WillowBase.chestplateTopaz.shiftedIndex || itemstack.itemID == WillowBase.bootsTopaz.shiftedIndex)
        {
        	return "topaz_1.png";
        }
        if(itemstack.itemID == WillowBase.leggingsTopaz.shiftedIndex)
        {
        	return "topaz_2.png";
        }
        
        else
        {
        	return null;
        }
}

 

 

with the armour images in the /armor folder. However, this still does not work for me.

Link to comment
Share on other sites

preloaded the textures:

		MinecraftForgeClient.preloadTexture("/Willow/Base/Armor/amethyst_1.png");
	MinecraftForgeClient.preloadTexture("/Willow/Base/Armor/amethyst_2.png");

In the armor file:

	@Override
public String getArmorTextureFile(ItemStack itemstack)
{
	//Amethyst
	if(itemstack.itemID == WillowBase.helmetAmethyst.shiftedIndex || itemstack.itemID == WillowBase.chestplateAmethyst.shiftedIndex || itemstack.itemID == WillowBase.bootsAmethyst.shiftedIndex)
        {
        	return "/Willow/Base/Armor/amethyst_1.png";
        }
        if(itemstack.itemID == WillowBase.leggingsAmethyst.shiftedIndex)
        {
        	return "/Willow/Base/Armor/amethyst_2.png";
        }
}

 

The problem I was having is that the armour wasn't registered as a render, so I had to register it;

helmetAmethyst = (new WillowItemArmor(1048, 0, enumAmethystArmour, ModLoader.addArmor("Amethyst"), 0)).setItemName("amethystHelmet");

Link to comment
Share on other sites

When defining your blocks, you also need to make the enum as so;

static EnumToolMaterial enumAmethystTool = EnumHelper.addToolMaterial("Amethyst", 3, 1561, 8, 3, 10);

 

and then it's included in the tool as so;

swordAmethyst = (new WillowItemSword(1008, 64, enumAmethystTool)).setItemName("amethystSword");

Link to comment
Share on other sites

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello, I'm trying to modify the effects of native enchantments for bows and arrows in Minecraft. After using a decompilation tool, I found that the specific implementations of native bow and arrow enchantments (including `ArrowDamageEnchantment`, `ArrowKnockbackEnchantment`, `ArrowFireEnchantment`, `ArrowInfiniteEnchantment`, `ArrowPiercingEnchantment`) do not contain any information about the enchantment effects (such as the `getDamageProtection` function for `ProtectionEnchantment`, `getDamageBonus` function for `DamageEnchantment`, etc.). Upon searching for the base class of arrows, `AbstractArrow`, I found a function named setEnchantmentEffectsFromEntity`, which seems to be used to retrieve the enchantment levels of the tool held by a `LivingEntity` and calculate the specific values of the enchantment effects. However, after testing with the following code, I found that this function is not being called:   @Mixin(AbstractArrow.class) public class ModifyArrowEnchantmentEffects {     private static final Logger LOGGER = LogUtils.getLogger();     @Inject(         method = "setEnchantmentEffectsFromEntity",         at = @At("HEAD")     )     private void logArrowEnchantmentEffectsFromEntity(CallbackInfo ci) {         LOGGER.info("Arrow enchantment effects from entity");     } }   Upon further investigation, I found that within the onHitEntity method, there are several lines of code:               if (!this.level().isClientSide &amp;&amp; entity1 instanceof LivingEntity) {                EnchantmentHelper.doPostHurtEffects(livingentity, entity1);                EnchantmentHelper.doPostDamageEffects((LivingEntity)entity1, livingentity);             }   These lines of code actually call the doPostHurt and doPostAttack methods of each enchantment in the enchantment list. However, this leads back to the issue because native bow and arrow enchantments do not implement these functions. Although their base class defines the functions, they are empty. At this point, I'm completely stumped and seeking assistance. Thank you.
    • I have been trying to make a server with forge but I keep running into an issue. I have jdk 22 installed as well as Java 8. here is the debug file  
    • it crashed again     What the console says : [00:02:03] [Server thread/INFO] [Easy NPC/]: [EntityManager] Server started! [00:02:03] [Server thread/INFO] [co.gi.al.ic.IceAndFire/]: {iceandfire:fire_dragon_roost=true, iceandfire:fire_lily=true, iceandfire:spawn_dragon_skeleton_fire=true, iceandfire:lightning_dragon_roost=true, iceandfire:spawn_dragon_skeleton_lightning=true, iceandfire:ice_dragon_roost=true, iceandfire:ice_dragon_cave=true, iceandfire:lightning_dragon_cave=true, iceandfire:cyclops_cave=true, iceandfire:spawn_wandering_cyclops=true, iceandfire:spawn_sea_serpent=true, iceandfire:frost_lily=true, iceandfire:hydra_cave=true, iceandfire:lightning_lily=true, iceandfireixie_village=true, iceandfire:myrmex_hive_jungle=true, iceandfire:myrmex_hive_desert=true, iceandfire:silver_ore=true, iceandfire:siren_island=true, iceandfire:spawn_dragon_skeleton_ice=true, iceandfire:spawn_stymphalian_bird=true, iceandfire:fire_dragon_cave=true, iceandfire:sapphire_ore=true, iceandfire:spawn_hippocampus=true, iceandfire:spawn_death_worm=true} [00:02:03] [Server thread/INFO] [co.gi.al.ic.IceAndFire/]: {TROLL_S=true, HIPPOGRYPH=true, AMPHITHERE=true, COCKATRICE=true, TROLL_M=true, DREAD_LICH=true, TROLL_F=true} [00:02:03] [Server thread/INFO] [ne.be.lo.WeaponRegistry/]: Encoded Weapon Attribute registry size (with package overhead): 41976 bytes (in 5 string chunks with the size of 10000) [00:02:03] [Server thread/INFO] [patchouli/]: Sending reload packet to clients [00:02:03] [Server thread/WARN] [voicechat/]: [voicechat] Running in offline mode - Voice chat encryption is not secure! [00:02:03] [VoiceChatServerThread/INFO] [voicechat/]: [voicechat] Using server-ip as bind address: 0.0.0.0 [00:02:03] [Server thread/WARN] [ModernFix/]: Dedicated server took 22.521 seconds to load [00:02:03] [VoiceChatServerThread/INFO] [voicechat/]: [voicechat] Voice chat server started at 0.0.0.0:25565 [00:02:03] [Server thread/WARN] [minecraft/SynchedEntityData]: defineId called for: class net.minecraft.world.entity.player.Player from class tschipp.carryon.common.carry.CarryOnDataManager [00:02:03] [Server thread/INFO] [ne.mi.co.AdvancementLoadFix/]: Using new advancement loading for net.minecraft.server.PlayerAdvancements@2941ffd5 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 0 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 1 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 2 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 3 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 4 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 5 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 6 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 7 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 8 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 9 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 10 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 11 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 12 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 13 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 14 [00:02:19] [Server thread/INFO] [ne.mi.co.AdvancementLoadFix/]: Using new advancement loading for net.minecraft.server.PlayerAdvancements@ebc7ef2 [00:02:19] [Server thread/INFO] [minecraft/PlayerList]: ZacAdos[/90.2.17.162:49242] logged in with entity id 1062 at (-1848.6727005281205, 221.0, -3054.2468255848935) [00:02:19] [Server thread/ERROR] [ModernFix/]: Skipping entity ID sync for com.talhanation.smallships.world.entity.ship.Ship: java.lang.NoClassDefFoundError: net/minecraft/client/CameraType [00:02:19] [Server thread/INFO] [minecraft/MinecraftServer]: - Gloop - ZacAdos joined the game [00:02:19] [Server thread/INFO] [xa.pa.OpenPartiesAndClaims/]: Updating all forceload tickets for cc56befd-d376-3526-a760-340713c478bd [00:02:19] [Server thread/INFO] [se.mi.te.da.DataManager/]: Sending data to client: ZacAdos [00:02:19] [Server thread/INFO] [voicechat/]: [voicechat] Received secret request of - Gloop - ZacAdos (17) [00:02:19] [Server thread/INFO] [voicechat/]: [voicechat] Sent secret to - Gloop - ZacAdos [00:02:21] [VoiceChatPacketProcessingThread/INFO] [voicechat/]: [voicechat] Successfully authenticated player cc56befd-d376-3526-a760-340713c478bd [00:02:22] [VoiceChatPacketProcessingThread/INFO] [voicechat/]: [voicechat] Successfully validated connection of player cc56befd-d376-3526-a760-340713c478bd [00:02:22] [VoiceChatPacketProcessingThread/INFO] [voicechat/]: [voicechat] Player - Gloop - ZacAdos (cc56befd-d376-3526-a760-340713c478bd) successfully connected to voice chat stop [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Stopping the server [00:02:34] [Server thread/INFO] [mo.pl.ar.ArmourersWorkshop/]: stop local service [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Stopping server [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving players [00:02:34] [Server thread/INFO] [minecraft/ServerGamePacketListenerImpl]: ZacAdos lost connection: Server closed [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: - Gloop - ZacAdos left the game [00:02:34] [Server thread/INFO] [xa.pa.OpenPartiesAndClaims/]: Updating all forceload tickets for cc56befd-d376-3526-a760-340713c478bd [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving worlds [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[world]'/minecraft:overworld [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_end [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_nether [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: ThreadedAnvilChunkStorage (world): All chunks are saved [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: ThreadedAnvilChunkStorage: All dimensions are saved [00:02:34] [Server thread/INFO] [xa.pa.OpenPartiesAndClaims/]: Stopping IO worker... [00:02:34] [Server thread/INFO] [xa.pa.OpenPartiesAndClaims/]: Stopped IO worker! [00:02:34] [Server thread/INFO] [Calio/]: Removing Dynamic Registries for: net.minecraft.server.dedicated.DedicatedServer@7dc879e1 [MineStrator Daemon]: Checking server disk space usage, this could take a few seconds... [MineStrator Daemon]: Updating process configuration files... [MineStrator Daemon]: Ensuring file permissions are set correctly, this could take a few seconds... [MineStrator Daemon]: Pulling Docker container image, this could take a few minutes to complete... [MineStrator Daemon]: Finished pulling Docker container image container@pterodactyl~ java -version openjdk version "17.0.10" 2024-01-16 OpenJDK Runtime Environment Temurin-17.0.10+7 (build 17.0.10+7) OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (build 17.0.10+7, mixed mode, sharing) container@pterodactyl~ java -Xms128M -Xmx6302M -Dterminal.jline=false -Dterminal.ansi=true -Djline.terminal=jline.UnsupportedTerminal -p libraries/cpw/mods/bootstraplauncher/1.1.2/bootstraplauncher-1.1.2.jar:libraries/cpw/mods/securejarhandler/2.1.4/securejarhandler-2.1.4.jar:libraries/org/ow2/asm/asm-commons/9.5/asm-commons-9.5.jar:libraries/org/ow2/asm/asm-util/9.5/asm-util-9.5.jar:libraries/org/ow2/asm/asm-analysis/9.5/asm-analysis-9.5.jar:libraries/org/ow2/asm/asm-tree/9.5/asm-tree-9.5.jar:libraries/org/ow2/asm/asm/9.5/asm-9.5.jar:libraries/net/minecraftforge/JarJarFileSystems/0.3.16/JarJarFileSystems-0.3.16.jar --add-modules ALL-MODULE-PATH --add-opens java.base/java.util.jar=cpw.mods.securejarhandler --add-opens java.base/java.lang.invoke=cpw.mods.securejarhandler --add-exports java.base/sun.security.util=cpw.mods.securejarhandler --add-exports jdk.naming.dns/com.sun.jndi.dns=java.naming -Djava.net.preferIPv6Addresses=system -DignoreList=bootstraplauncher-1.1.2.jar,securejarhandler-2.1.4.jar,asm-commons-9.5.jar,asm-util-9.5.jar,asm-analysis-9.5.jar,asm-tree-9.5.jar,asm-9.5.jar,JarJarFileSystems-0.3.16.jar -DlibraryDirectory=libraries -DlegacyClassPath=libraries/cpw/mods/securejarhandler/2.1.4/securejarhandler-2.1.4.jar:libraries/org/ow2/asm/asm/9.5/asm-9.5.jar:libraries/org/ow2/asm/asm-commons/9.5/asm-commons-9.5.jar:libraries/org/ow2/asm/asm-tree/9.5/asm-tree-9.5.jar:libraries/org/ow2/asm/asm-util/9.5/asm-util-9.5.jar:libraries/org/ow2/asm/asm-analysis/9.5/asm-analysis-9.5.jar:libraries/net/minecraftforge/accesstransformers/8.0.4/accesstransformers-8.0.4.jar:libraries/org/antlr/antlr4-runtime/4.9.1/antlr4-runtime-4.9.1.jar:libraries/net/minecraftforge/eventbus/6.0.3/eventbus-6.0.3.jar:libraries/net/minecraftforge/forgespi/6.0.0/forgespi-6.0.0.jar:libraries/net/minecraftforge/coremods/5.0.1/coremods-5.0.1.jar:libraries/cpw/mods/modlauncher/10.0.8/modlauncher-10.0.8.jar:libraries/net/minecraftforge/unsafe/0.2.0/unsafe-0.2.0.jar:libraries/com/electronwill/night-config/core/3.6.4/core-3.6.4.jar:libraries/com/electronwill/night-config/toml/3.6.4/toml-3.6.4.jar:libraries/org/apache/maven/maven-artifact/3.8.5/maven-artifact-3.8.5.jar:libraries/net/jodah/typetools/0.8.3/typetools-0.8.3.jar:libraries/net/minecrell/terminalconsoleappender/1.2.0/terminalconsoleappender-1.2.0.jar:libraries/org/jline/jline-reader/3.12.1/jline-reader-3.12.1.jar:libraries/org/jline/jline-terminal/3.12.1/jline-terminal-3.12.1.jar:libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar:libraries/org/openjdk/nashorn/nashorn-core/15.3/nashorn-core-15.3.jar:libraries/net/minecraftforge/JarJarSelector/0.3.16/JarJarSelector-0.3.16.jar:libraries/net/minecraftforge/JarJarMetadata/0.3.16/JarJarMetadata-0.3.16.jar:libraries/net/minecraftforge/fmlloader/1.19.2-43.3.0/fmlloader-1.19.2-43.3.0.jar:libraries/net/minecraft/server/1.19.2-20220805.130853/server-1.19.2-20220805.130853-extra.jar:libraries/com/github/oshi/oshi-core/5.8.5/oshi-core-5.8.5.jar:libraries/com/google/code/gson/gson/2.8.9/gson-2.8.9.jar:libraries/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar:libraries/com/google/guava/guava/31.0.1-jre/guava-31.0.1-jre.jar:libraries/com/mojang/authlib/3.11.49/authlib-3.11.49.jar:libraries/com/mojang/brigadier/1.0.18/brigadier-1.0.18.jar:libraries/com/mojang/datafixerupper/5.0.28/datafixerupper-5.0.28.jar:libraries/com/mojang/javabridge/1.2.24/javabridge-1.2.24.jar:libraries/com/mojang/logging/1.0.0/logging-1.0.0.jar:libraries/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar:libraries/io/netty/netty-buffer/4.1.77.Final/netty-buffer-4.1.77.Final.jar:libraries/io/netty/netty-codec/4.1.77.Final/netty-codec-4.1.77.Final.jar:libraries/io/netty/netty-common/4.1.77.Final/netty-common-4.1.77.Final.jar:libraries/io/netty/netty-handler/4.1.77.Final/netty-handler-4.1.77.Final.jar:libraries/io/netty/netty-resolver/4.1.77.Final/netty-resolver-4.1.77.Final.jar:libraries/io/netty/netty-transport/4.1.77.Final/netty-transport-4.1.77.Final.jar:libraries/io/netty/netty-transport-classes-epoll/4.1.77.Final/netty-transport-classes-epoll-4.1.77.Final.jar:libraries/io/netty/netty-transport-native-epoll/4.1.77.Final/netty-transport-native-epoll-4.1.77.Final-linux-x86_64.jar:libraries/io/netty/netty-transport-native-epoll/4.1.77.Final/netty-transport-native-epoll-4.1.77.Final-linux-aarch_64.jar:libraries/io/netty/netty-transport-native-unix-common/4.1.77.Final/netty-transport-native-unix-common-4.1.77.Final.jar:libraries/it/unimi/dsi/fastutil/8.5.6/fastutil-8.5.6.jar:libraries/net/java/dev/jna/jna/5.10.0/jna-5.10.0.jar:libraries/net/java/dev/jna/jna-platform/5.10.0/jna-platform-5.10.0.jar:libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar:libraries/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar:libraries/org/apache/logging/log4j/log4j-api/2.17.0/log4j-api-2.17.0.jar:libraries/org/apache/logging/log4j/log4j-core/2.17.0/log4j-core-2.17.0.jar:libraries/org/apache/logging/log4j/log4j-slf4j18-impl/2.17.0/log4j-slf4j18-impl-2.17.0.jar:libraries/org/slf4j/slf4j-api/1.8.0-beta4/slf4j-api-1.8.0-beta4.jar cpw.mods.bootstraplauncher.BootstrapLauncher --launchTarget forgeserver --fml.forgeVersion 43.3.0 --fml.mcVersion 1.19.2 --fml.forgeGroup net.minecraftforge --fml.mcpVersion 20220805.130853 [00:02:42] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeserver, --fml.forgeVersion, 43.3.0, --fml.mcVersion, 1.19.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220805.130853] [00:02:42] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17.0.10 by Eclipse Adoptium; OS Linux arch amd64 version 6.1.0-12-amd64 [00:02:43] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/home/container/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2363!/ Service=ModLauncher Env=SERVER [00:02:43] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/fmlcore/1.19.2-43.3.0/fmlcore-1.19.2-43.3.0.jar is missing mods.toml file [00:02:43] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/javafmllanguage/1.19.2-43.3.0/javafmllanguage-1.19.2-43.3.0.jar is missing mods.toml file [00:02:43] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/lowcodelanguage/1.19.2-43.3.0/lowcodelanguage-1.19.2-43.3.0.jar is missing mods.toml file [00:02:43] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/mclanguage/1.19.2-43.3.0/mclanguage-1.19.2-43.3.0.jar is missing mods.toml file [00:02:44] [main/WARN] [ne.mi.ja.se.JarSelector/]: Attempted to select two dependency jars from JarJar which have the same identification: Mod File: and Mod File: . Using Mod File: [00:02:44] [main/WARN] [ne.mi.ja.se.JarSelector/]: Attempted to select a dependency jar for JarJar which was passed in as source: resourcefullib. Using Mod File: /home/container/mods/resourcefullib-forge-1.19.2-1.1.24.jar [00:02:44] [main/INFO] [ne.mi.fm.lo.mo.JarInJarDependencyLocator/]: Found 13 dependencies adding them to mods collection Latest log [29Mar2024 00:02:42.803] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeserver, --fml.forgeVersion, 43.3.0, --fml.mcVersion, 1.19.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220805.130853] [29Mar2024 00:02:42.805] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17.0.10 by Eclipse Adoptium; OS Linux arch amd64 version 6.1.0-12-amd64 [29Mar2024 00:02:43.548] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/home/container/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2363!/ Service=ModLauncher Env=SERVER [29Mar2024 00:02:43.876] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/fmlcore/1.19.2-43.3.0/fmlcore-1.19.2-43.3.0.jar is missing mods.toml file [29Mar2024 00:02:43.877] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/javafmllanguage/1.19.2-43.3.0/javafmllanguage-1.19.2-43.3.0.jar is missing mods.toml file [29Mar2024 00:02:43.877] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/lowcodelanguage/1.19.2-43.3.0/lowcodelanguage-1.19.2-43.3.0.jar is missing mods.toml file [29Mar2024 00:02:43.878] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/mclanguage/1.19.2-43.3.0/mclanguage-1.19.2-43.3.0.jar is missing mods.toml file [29Mar2024 00:02:44.033] [main/WARN] [net.minecraftforge.jarjar.selection.JarSelector/]: Attempted to select two dependency jars from JarJar which have the same identification: Mod File: and Mod File: . Using Mod File: [29Mar2024 00:02:44.034] [main/WARN] [net.minecraftforge.jarjar.selection.JarSelector/]: Attempted to select a dependency jar for JarJar which was passed in as source: resourcefullib. Using Mod File: /home/container/mods/resourcefullib-forge-1.19.2-1.1.24.jar [29Mar2024 00:02:44.034] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator/]: Found 13 dependencies adding them to mods collection
    • I am unable to do that. Brigadier is a mojang library that parses commands.
  • Topics

×
×
  • Create New...

Important Information

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