Jump to content

[SOLVED] findContainerFor(mod) returns null


IamMaxim

Recommended Posts

I call it from onKeyPressed() event. Now i can see my GUI and items, but I can't edit it.  Items just go back in their slots when I try to take them. Is it GUI problem or I need to fully setup my messages and message handlers first? I have class GUICustomPlayerInventory extends GuiContainer and separate inventory stored in extendedProperties of player. I want to fully replace standart player inventory with mine. What's simplier: to overriding player.inventory or using my current method?

Link to comment
Share on other sites

I made message and message handler, but I can't open inventory again. Server receives message (it logs it) and then executes EntityPlayer.openGui method

@Override

    public IMessage onMessage(CustomPlayerOpenInventoryMessage message, MessageContext ctx) {

        if (ctx.side == Side.SERVER) {

            System.out.println("Received message from " + ctx.getServerHandler().playerEntity.getCommandSenderName());

            ((EntityPlayer) ctx.getServerHandler().playerEntity).openGui(TESItems.instance, 0, ((EntityPlayer) ctx.getServerHandler().playerEntity).worldObj, 0, 0, 0);

        }

        return null;

    }

 

Here's message class:

 

public class CustomPlayerOpenInventoryMessage implements IMessage {

 

    public CustomPlayerOpenInventoryMessage() {}

 

    @Override

    public void fromBytes(ByteBuf buf) {

    }

 

    @Override

    public void toBytes(ByteBuf buf) {

    }

}

 

 

Link to comment
Share on other sites

full handler class:

 

public class CustomPlayerOpenInventoryHandler implements IMessageHandler<CustomPlayerOpenInventoryMessage, IMessage> {

 

    public CustomPlayerOpenInventoryHandler() {}

 

    @Override

    public IMessage onMessage(CustomPlayerOpenInventoryMessage message, MessageContext ctx) {

        if (ctx.side == Side.SERVER) {

            System.out.println("Received message from " + ctx.getServerHandler().playerEntity.getCommandSenderName());

            ((EntityPlayer) ctx.getServerHandler().playerEntity).openGui(TESItems.instance, 0, ((EntityPlayer) ctx.getServerHandler().playerEntity).worldObj, 0, 0, 0);

        }

        return null;

    }

}

 

 

 

Link to comment
Share on other sites

Here's GUI handler:

 

public class CustomPlayerGUIHandler implements IGuiHandler {

    @Override

    public Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {

        return new CustomPlayerContainer(player, player.inventory, ((CustomPlayer)player.getExtendedProperties("CustomPlayer")).inventory);

    }

    @Override

    public Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {

        return new GUICustomPlayerInventory(player, player.inventory, ((CustomPlayer)player.getExtendedProperties("CustomPlayer")).inventory);

    }

}

 

,

message handler:

 

public class CustomPlayerOpenInventoryHandler implements IMessageHandler<CustomPlayerOpenInventoryMessage, IMessage> {

    public CustomPlayerOpenInventoryHandler() {}

    @Override

    public IMessage onMessage(CustomPlayerOpenInventoryMessage message, MessageContext ctx) {

        if (ctx.side == Side.SERVER) {

            System.out.println("Received message from " + ctx.getServerHandler().playerEntity.getCommandSenderName());

            ctx.getServerHandler().playerEntity.openGui(TESItems.instance, 0, ctx.getServerHandler().playerEntity.worldObj, 0, 0, 0);

        }

        return null;

    }

}

 

 

 

Registration of handlers:

 

networkWrapper = NetworkRegistry.INSTANCE.newSimpleChannel("customPlayerChannel");

networkWrapper.registerMessage(CustomPlayerOpenInventoryHandler.class, CustomPlayerOpenInventoryMessage.class, 1, Side.SERVER);

NetworkRegistry.INSTANCE.registerGuiHandler(this, new CustomPlayerGUIHandler());

 

It receives message, but GUI doesn't work

Link to comment
Share on other sites

Here's key listener:

 

 

@SubscribeEvent

    public void onKeyInput(InputEvent.KeyInputEvent event) {

        if (!FMLClientHandler.instance().isGUIOpen(GuiChat.class)) {

            int kb = Keyboard.getEventKey();

            boolean isDown = Keyboard.getEventKeyState();

            if (kb == keys[CUSTOM_INV].getKeyCode()) {

                TESItems.networkWrapper.sendToServer(new CustomPlayerOpenInventoryMessage());

            }

        }

    }

 

 

I don't close GUI, and problem is not in it, because it was working earlier.

 

GUI:

public class GUICustomPlayerInventory extends GuiContainer {

    private int xSize = 218, ySize = 300;

    private final CustomPlayerInventory inventory;

    ResourceLocation resourceLocation = new ResourceLocation("tesitems:textures/gui/custom_inventory.png");

 

    public GUICustomPlayerInventory(EntityPlayer player, InventoryPlayer inventoryPlayer, CustomPlayerInventory inventoryCustom) {

        super(new CustomPlayerContainer(player, inventoryPlayer, inventoryCustom));

        this.inventory = inventoryCustom;

        this.guiLeft = (this.width - this.xSize) / 2;

        this.guiTop = (this.height - this.ySize) / 2;

    }

 

    @Override

    protected void drawGuiContainerBackgroundLayer(float p_146976_1_, int p_146976_2_, int p_146976_3_) {

        GL11.glColor4f(0,0,0,100);

        Minecraft.getMinecraft().renderEngine.bindTexture(resourceLocation);

        GL11.glEnable(GL11.GL_BLEND);

        GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);

        Tessellator t = Tessellator.instance;

        t.startDrawingQuads();

        t.addVertexWithUV(guiLeft, guiTop, 0, 0, 0);

        t.addVertexWithUV(guiLeft, guiTop + ySize, 0, 0, 1);

        t.addVertexWithUV(guiLeft + xSize, guiTop + ySize, 0, 1, 1);

        t.addVertexWithUV(guiLeft + xSize, guiTop, 0, 1, 0);

        t.draw();

        GL11.glDisable(GL11.GL_BLEND);

    }

 

    @Override

    protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) {

    }

}

 

 

Link to comment
Share on other sites

Only thing I can see is you are sending the message twice - once when the key is pressed, and again when it is released. You should add ' && isDown' to your condition.

 

You're not getting any error messages at all in your console log?

 

Show your Container class, then, since that is the only other thing that has been added since it stopped working.

Link to comment
Share on other sites

Container:

 

public class CustomPlayerContainer extends Container {

    private static final int ARMOR_START = 0, ARMOR_END = 3, HANDS_START = 4, HANDS_END = 5, INV_START = 6;

    private static int INV_END;

 

    InventoryPlayer inventoryPlayer;

    CustomPlayerInventory customPlayerInventory;

 

    @Override

    public boolean canInteractWith(EntityPlayer player) {

        return true;

    }

 

    private int size;

 

    public CustomPlayerContainer(EntityPlayer player, InventoryPlayer inventoryPlayer, CustomPlayerInventory customPlayerInventory) {

        this.inventoryPlayer = inventoryPlayer;

        this.customPlayerInventory = customPlayerInventory;

        size = customPlayerInventory.getSizeInventory();

        INV_END = size-1;

        addSlotToContainer(new ArmorSlot(player, customPlayerInventory, 0, 10, 10, 0));//helmet

        addSlotToContainer(new ArmorSlot(player, customPlayerInventory, 1, 10, 29, 1));//chestplate

        addSlotToContainer(new ArmorSlot(player, customPlayerInventory, 2, 10, 48, 2));//leggings

        addSlotToContainer(new ArmorSlot(player, customPlayerInventory, 3, 10, 67, 3));//boots

        addSlotToContainer(new Slot(customPlayerInventory, 4, 29, 29));//hand 1

        addSlotToContainer(new Slot(customPlayerInventory, 5, 48, 29));//hand 2

        for (int i = 0; i < size; i++) {

            addSlotToContainer(new Slot(customPlayerInventory, 6 + i, 29 + i * 19, 10));

        }

    }

 

    public void updateSlots() {

        if (customPlayerInventory.getSizeInventory() > size) {

            for (int i = size; i < customPlayerInventory.getSizeInventory(); i++) {

                addSlotToContainer(new Slot(customPlayerInventory, 6 + size, 29 + i * 19, 10));

            }

        }

    }

 

    @Override

    public ItemStack transferStackInSlot(EntityPlayer player, int par2)

    {

        ItemStack itemstack = null;

        Slot slot = (Slot) this.inventorySlots.get(par2);

        if (slot != null && slot.getHasStack()) {

            ItemStack itemstack1 = slot.getStack();

            itemstack = itemstack1.copy();

            if (par2 < HANDS_START) {

                if (!this.mergeItemStack(itemstack1, HANDS_START, INV_END + 1, true)) {

                    return null;

                }

                slot.onSlotChange(itemstack1, itemstack);

            } else {

                if (itemstack1.getItem() instanceof ItemArmor) {

                    int type = ((ItemArmor) itemstack1.getItem()).armorType;

                    if (!this.mergeItemStack(itemstack1, ARMOR_START + type, ARMOR_START + type + 1, false)) {

                        return null;

                    }

                } else if (par2 >= INV_START) {

                    if (!this.mergeItemStack(itemstack1, HANDS_START, HANDS_END + 1, false)) {

                        return null;

                    }

                } else if (par2 >= HANDS_START && par2 < HANDS_END + 1) {

                    if (!this.mergeItemStack(itemstack1, INV_START, INV_END + 1, false)) {

                        return null;

                    }

                }

            }

            if (itemstack1.stackSize == 0) {

                slot.putStack((ItemStack) null);

            } else {

                slot.onSlotChanged();

            }

            if (itemstack1.stackSize == itemstack.stackSize) {

                return null;

            }

            slot.onPickupFromSlot(player, itemstack1);

        }

        return itemstack;

    }

 

 

    public class ArmorSlot extends Slot {

        final int armorType;

        final EntityPlayer player;

 

        public ArmorSlot(EntityPlayer player, IInventory inventory, int slot, int x, int y, int armorType) {

            super(inventory, slot, x, y);

            this.player = player;

            this.armorType = armorType;

        }

 

        public int getSlotStackLimit()

        {

            return 1;

        }

 

        public boolean isItemValid(ItemStack itemstack)

        {

            Item item = (itemstack == null ? null : itemstack.getItem());

            return item != null && item.isValidArmor(itemstack, armorType, player);

        }

 

        @SideOnly(Side.CLIENT)

        public IIcon getBackgroundIconIndex()

        {

            return ItemArmor.func_94602_b(this.armorType);

        }

    }

}

 

 

 

All I get when press key is

 

[19:25:22] [server thread/INFO] [sTDOUT]: [ru.iammaxim.tesitems.Player.CustomPlayerOpenInventoryHandler:onMessage:21]: Received message from Player72

 

Link to comment
Share on other sites

I register it from

@EventHandler

public void preInit(FMLInitializationEvent event)

with NetworkRegistry.INSTANCE.registerGuiHandler(this, new CustomPlayerGUIHandler());

Why is your FMLInitializationEvent handled in a method named 'preInit'? Is that an accident?

 

Anyway, can you show your entire Main class? Something in there is not right.

Link to comment
Share on other sites

Main class:

 

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

public class TESItems

{

    public static SimpleNetworkWrapper networkWrapper;

    public static TESItems instance = new TESItems();

 

    private static int modGuiIndex = 0;

    public static final int customInventoryGUIIndex = modGuiIndex++;

 

    public static final String MODID = "tesitems";

    public static final String VERSION = "1.0";

 

    public static Material dwarven_material;

 

    //Damage modifiers

    public static final float daggerDamageModifier = 1.0f,

            swordDamageModifier = 1.5f,

            waraxeDamageModifier = 2.2f,

            greadswordDamageModifier = 2.0f,

            maceDamageModifier = 1.8f,

            axeDamageModifier = 1.7f;

 

    public static int dungeon_generator_mode = 0,

        room_width = 10,

        room_height = 10,

        room_length = 10;

 

    public static DungeonGeneratorItem dungeon_generator_item;

 

    public static GenericBlock dungeon_generator_block,

            dwarven_block_01,

            dungeon_bricks_01,

            dungeon_bricks_02,

            dungeon_bricks_03,

            dungeon_bricks_04,

            dungeon_bricks_05,

            dungeon_bricks_06,

            dungeon_bricks_07,

            dungeon_bricks_07_lamp,

            dungeon_bricks_08,

            dungeon_bricks_09,

            dungeon_bricks_09_lamp,

            dirt_01,

            dirt_02,

            planks_01,

            planks_02,

            grass_01_top,

            bark_01,

            bricks_block_01;

 

    public static DwarvenDoor dwarven_door;

    public static DwarvenDoorItem dwarven_door_item;

    public static dwarven_pipe_block dwarven_pipe;

    public static TableBlock table_block;

 

    //Clothes

    public static ItemArmor.ArmorMaterial clothMaterial = EnumHelper.addArmorMaterial("Cloth", 1000, new int[]{0,0,0,0}, 100);;

    /*public static ClothesItemArmor clothes01_helmet;

    public static ClothesItemArmor clothes01_chestplate;

    public static ClothesItemArmor clothes01_leggings;

    public static ClothesItemArmor clothes01_boots;*/

 

    //Armor

    public static ItemArmor.ArmorMaterial daedricArmorMaterial = EnumHelper.addArmorMaterial("Daedric", 37, new int[]{4,10,4,2}, 25);

    public static ItemArmor.ArmorMaterial ebonyArmorMaterial = EnumHelper.addArmorMaterial("Ebony", 37, new int[]{4,9,3,2}, 25);

    public static ItemArmor.ArmorMaterial dragonArmorMaterial = EnumHelper.addArmorMaterial("Dragon", 37, new int[]{4,8,3,3}, 25);

    public static ItemArmor.ArmorMaterial dwarvenArmorMaterial = EnumHelper.addArmorMaterial("Dwarven", 37, new int[]{3,8,3,2}, 25);

    public static ItemArmor.ArmorMaterial orcishArmorMaterial = EnumHelper.addArmorMaterial("Orcish", 37, new int[]{2,7,3,2}, 25);

    public static ItemArmor.ArmorMaterial glassArmorMaterial = EnumHelper.addArmorMaterial("Glass", 37, new int[]{2,7,3,2}, 25);

    public static ItemArmor.ArmorMaterial steelArmorMaterial = EnumHelper.addArmorMaterial("Steel", 37, new int[]{2,6,3,1}, 25);

    public static ItemArmor.ArmorMaterial elvenArmorMaterial = EnumHelper.addArmorMaterial("Elven", 37, new int[]{2,6,3,1}, 25);

    public static ItemArmor.ArmorMaterial ironArmorMaterial = EnumHelper.addArmorMaterial("Iron", 37, new int[]{2,5,2,1}, 25);

    public static ItemArmor.ArmorMaterial mithrilArmorMaterial = EnumHelper.addArmorMaterial("Mithril", 37, new int[]{2,5,2,1}, 25);

    public static ItemArmor.ArmorMaterial chainArmorMaterial = EnumHelper.addArmorMaterial("Chain", 37, new int[]{2,4,2,1}, 25);

    public static ItemArmor.ArmorMaterial hideArmorMaterial = EnumHelper.addArmorMaterial("Hide", 37, new int[]{1,1,1,1}, 25);

    public static ItemArmor.ArmorMaterial dawnguardArmorMaterial = EnumHelper.addArmorMaterial("Dawnguard", 37, new int[]{4,9,7,4}, 25);

 

    //Damage

    public static float daedricDamage = 5,

            dawnbreakerDamage = 5,

            dragonDamage = 4.5f,

            dwarvenDamage = 4,

            ebonyDamage = 4,

            elvenDamage = 4,

            emeraldDamage = 3.5f,

            falmerDamage = 3,

            forswornDamage = 3.5f,

            glassDamage = 4,

            headsmansDamage = 4,

            imperialDamage = 3,

            ironDamage = 2.5f,

            notchedDamage = 2,

            orcishDamage = 4.5f,

            silverDamage = 2,

            stalhrimDamage = 4,

            steelDamage = 3,

            wuuthradDamage = 2.5f;

 

    public static Item daedric_sword,

            daedric_mace,

            dawnbreaker,

            dragon_sword,

            dragon_waraxe,

            dwarven_axe,

            dwarven_sword,

            ebony_dagger,

            ebony_mace,

            ebony_waraxe,

            elven_sword,

            elven_waraxe,

            emerald_sword,

            falmer_axe,

            falmer_sword,

            forsworn_sword,

            glass_axe,

            glass_dagger,

            glass_sword,

            headsmans_axe,

            imperial_sword,

            iron_greatsword,

            notched_pickaxe,

            orcish_mace,

            orcish_sword,

            silver_sword,

            stalhrim_battleaxe,

            stalhrim_sword,

            steel_mace,

            steel_sword,

            steel_waraxe,

            wuuthrad;

 

    public static BlacksmithBlock blacksmith_block;

    public static Septim_coin septim_coin;

 

    //Material01

    public static final Item.ToolMaterial material01 = EnumHelper.addToolMaterial("material01", 3, 10, 15, 7, 100);

 

    @EventHandler

    public void serverStarting(FMLServerStartingEvent event)

    {

        event.registerServerCommand(new dungeonGeneratorCommands());

        event.registerServerCommand(new TestCommands());

    }

 

    @EventHandler

    public void Init(FMLInitializationEvent event)

    {

        networkWrapper = NetworkRegistry.INSTANCE.newSimpleChannel("customPlayerChannel");

        networkWrapper.registerMessage(CustomPlayerMessageHandler.class, CustomPlayerMessage.class, 0, Side.SERVER);

        networkWrapper.registerMessage(CustomPlayerOpenInventoryHandler.class, CustomPlayerOpenInventoryMessage.class, 1, Side.SERVER);

        NetworkRegistry.INSTANCE.registerGuiHandler(this, new CustomPlayerGUIHandler());

        MinecraftForge.EVENT_BUS.register(new CustomPlayerHandler());

 

        dwarven_material = new Material(MapColor.yellowColor);

 

        GameRegistry.registerTileEntity(dwarven_pipe_tileEntity.class, "dwarven_pipe_tile_entity");

        GameRegistry.registerTileEntity(TableTileEntity.class, "table_tile_entity");

 

        //Register weapon

        GameRegistry.registerItem(daedric_sword =      new ItemSword(createToolMaterial("Daedric", 1500, daedricDamage * swordDamageModifier)).setUnlocalizedName("daedric_sword").setTextureName("tesitems:daedricsword").setCreativeTab(CreativeTabs.tabCombat), "daedric_sword");

        GameRegistry.registerItem(daedric_mace =        new ItemSword(createToolMaterial("Daedric", 1500, daedricDamage * maceDamageModifier)).setUnlocalizedName("daedric_mace").setTextureName("tesitems:daedricmace").setCreativeTab(CreativeTabs.tabCombat), "daedric_mace");

        GameRegistry.registerItem(dawnbreaker =        new ItemSword(createToolMaterial("Dawnbreaker", 1700, dawnbreakerDamage * swordDamageModifier)).setUnlocalizedName("dawnbreaker").setTextureName("tesitems:dawnbreaker").setCreativeTab(CreativeTabs.tabCombat), "dawnbreaker");

        GameRegistry.registerItem(dragon_sword =        new ItemSword(createToolMaterial("Dragon", 1700, dragonDamage * swordDamageModifier)).setUnlocalizedName("dragon_sword").setTextureName("tesitems:dragonsword").setCreativeTab(CreativeTabs.tabCombat), "dragon_sword");

        GameRegistry.registerItem(dragon_waraxe =      new ItemSword(createToolMaterial("Dragon", 1700, dragonDamage * waraxeDamageModifier)).setUnlocalizedName("dragon_waraxe").setTextureName("tesitems:dragonwaraxe").setCreativeTab(CreativeTabs.tabCombat), "dragon_waraxe");

        GameRegistry.registerItem(dwarven_axe =        new ItemSword(createToolMaterial("Dwarven", 1300, dwarvenDamage * axeDamageModifier)).setUnlocalizedName("dwarven_axe").setTextureName("tesitems:dwarvenaxe").setCreativeTab(CreativeTabs.tabCombat), "dwarven_axe");

        GameRegistry.registerItem(dwarven_sword =      new ItemSword(createToolMaterial("Dwarven", 1300,daedricDamage * swordDamageModifier)).setUnlocalizedName("dwarven_sword").setTextureName("tesitems:dwarvensword").setCreativeTab(CreativeTabs.tabCombat), "dwarven_sword");

        GameRegistry.registerItem(ebony_dagger =        new ItemSword(createToolMaterial("Ebony", 1200, ebonyDamage * daggerDamageModifier)).setUnlocalizedName("ebony_dagger").setTextureName("tesitems:ebonydagger").setCreativeTab(CreativeTabs.tabCombat), "ebony_dagger");

        GameRegistry.registerItem(ebony_mace =          new ItemSword(createToolMaterial("Ebony", 1200, ebonyDamage * maceDamageModifier)).setUnlocalizedName("ebony_mace").setTextureName("tesitems:ebonymace").setCreativeTab(CreativeTabs.tabCombat), "ebony_mace");

        GameRegistry.registerItem(ebony_waraxe =        new ItemSword(createToolMaterial("Ebony", 1200, ebonyDamage * waraxeDamageModifier)).setUnlocalizedName("ebony_waraxe").setTextureName("tesitems:ebonywaraxe").setCreativeTab(CreativeTabs.tabCombat), "ebony_waraxe");

        GameRegistry.registerItem(elven_sword =        new ItemSword(createToolMaterial("Elven", 1200, elvenDamage * swordDamageModifier)).setUnlocalizedName("elven_sword").setTextureName("tesitems:elvensword").setCreativeTab(CreativeTabs.tabCombat), "elven_sword");

        GameRegistry.registerItem(elven_waraxe =        new ItemSword(createToolMaterial("Elven", 1200, elvenDamage * waraxeDamageModifier)).setUnlocalizedName("elven_waraxe").setTextureName("tesitems:elvenwaraxe").setCreativeTab(CreativeTabs.tabCombat), "elven_waraxe");

        GameRegistry.registerItem(emerald_sword =      new ItemSword(createToolMaterial("Emerald", 1400, emeraldDamage * swordDamageModifier)).setUnlocalizedName("emerald_sword").setTextureName("tesitems:emeraldsword").setCreativeTab(CreativeTabs.tabCombat), "emerald_sword");

        GameRegistry.registerItem(falmer_axe =          new ItemSword(createToolMaterial("Falmer", 800, falmerDamage * axeDamageModifier)).setUnlocalizedName("falmer_axe").setTextureName("tesitems:falmeraxe").setCreativeTab(CreativeTabs.tabCombat), "falmer_axe");

        GameRegistry.registerItem(falmer_sword =        new ItemSword(createToolMaterial("Falmer", 800, falmerDamage * swordDamageModifier)).setUnlocalizedName("falmer_sword").setTextureName("tesitems:falmersword").setCreativeTab(CreativeTabs.tabCombat), "falmer_sword");

        GameRegistry.registerItem(forsworn_sword =      new ItemSword(createToolMaterial("Forsworn", 1500, forswornDamage * swordDamageModifier)).setUnlocalizedName("forsworn_sword").setTextureName("tesitems:forswornsword").setCreativeTab(CreativeTabs.tabCombat), "forsworn_sword");

        GameRegistry.registerItem(glass_axe =          new ItemSword(createToolMaterial("Glass", 1300, glassDamage * axeDamageModifier)).setUnlocalizedName("glass_axe").setTextureName("tesitems:glassaxe").setCreativeTab(CreativeTabs.tabCombat), "glass_axe");

        GameRegistry.registerItem(glass_dagger =        new ItemSword(createToolMaterial("Glass", 1300, glassDamage * daggerDamageModifier)).setUnlocalizedName("glass_dagger").setTextureName("tesitems:glassdagger").setCreativeTab(CreativeTabs.tabCombat), "glass_dagger");

        GameRegistry.registerItem(glass_sword =        new ItemSword(createToolMaterial("Glass", 1300, glassDamage * swordDamageModifier)).setUnlocalizedName("glass_sword").setTextureName("tesitems:glasssword").setCreativeTab(CreativeTabs.tabCombat), "glass_sword");

        GameRegistry.registerItem(headsmans_axe =      new ItemSword(createToolMaterial("Headsman", 1200, headsmansDamage * axeDamageModifier)).setUnlocalizedName("headsmans_axe").setTextureName("tesitems:headsmansaxe").setCreativeTab(CreativeTabs.tabCombat), "headsmans_axe");

        GameRegistry.registerItem(imperial_sword =      new ItemSword(createToolMaterial("Imperial", 800, imperialDamage * swordDamageModifier)).setUnlocalizedName("imperial_sword").setTextureName("tesitems:imperialsword").setCreativeTab(CreativeTabs.tabCombat), "imperial_sword");

        GameRegistry.registerItem(iron_greatsword =    new ItemSword(createToolMaterial("Iron", 800, ironDamage * greadswordDamageModifier)).setUnlocalizedName("iron_greatsword").setTextureName("tesitems:irongreatsword").setCreativeTab(CreativeTabs.tabCombat), "iron_greatsword");

        GameRegistry.registerItem(notched_pickaxe =    new ItemSword(createToolMaterial("Notched", 2, 600, 0, notchedDamage * axeDamageModifier, 20)).setUnlocalizedName("notched_pickaxe").setTextureName("tesitems:notchedpickaxe").setCreativeTab(CreativeTabs.tabCombat), "notched_pickaxe");

        GameRegistry.registerItem(orcish_mace =        new ItemSword(createToolMaterial("Orcish", 1500, orcishDamage * maceDamageModifier)).setUnlocalizedName("orcish_mace").setTextureName("tesitems:orcishmace").setCreativeTab(CreativeTabs.tabCombat), "orcish_mace");

        GameRegistry.registerItem(orcish_sword =        new ItemSword(createToolMaterial("Orcish", 1500, orcishDamage * swordDamageModifier)).setUnlocalizedName("orcish_sword").setTextureName("tesitems:orcishsword").setCreativeTab(CreativeTabs.tabCombat), "orcish_sword");

        GameRegistry.registerItem(silver_sword =        new ItemSword(createToolMaterial("Silver", 800, silverDamage * swordDamageModifier)).setUnlocalizedName("silver_sword").setTextureName("tesitems:silversword").setCreativeTab(CreativeTabs.tabCombat), "silver_sword");

        GameRegistry.registerItem(stalhrim_battleaxe =  new ItemSword(createToolMaterial("Stalhrim", 700, stalhrimDamage * waraxeDamageModifier)).setUnlocalizedName("stalhrim_battleaxe").setTextureName("tesitems:stalhrimbattleaxe").setCreativeTab(CreativeTabs.tabCombat), "stalhrim_battleaxe");

        GameRegistry.registerItem(stalhrim_sword =      new ItemSword(createToolMaterial("Stalhrim", 700, stalhrimDamage * swordDamageModifier)).setUnlocalizedName("stalhrim_sword").setTextureName("tesitems:stalhrimsword").setCreativeTab(CreativeTabs.tabCombat), "stalhrim_sword");

        GameRegistry.registerItem(steel_mace =          new ItemSword(createToolMaterial("Steel", 1000, steelDamage * maceDamageModifier)).setUnlocalizedName("steel_mace").setTextureName("tesitems:steelmace").setCreativeTab(CreativeTabs.tabCombat), "steel_mace");

        GameRegistry.registerItem(steel_sword =        new ItemSword(createToolMaterial("Steel", 1000, steelDamage * swordDamageModifier)).setUnlocalizedName("steel_sword").setTextureName("tesitems:steelsword").setCreativeTab(CreativeTabs.tabCombat), "steel_sword");

        GameRegistry.registerItem(steel_waraxe =        new ItemSword(createToolMaterial("Steel", 1000, steelDamage * waraxeDamageModifier)).setUnlocalizedName("steel_waraxe").setTextureName("tesitems:steelwaraxe").setCreativeTab(CreativeTabs.tabCombat), "steel_waraxe");

        GameRegistry.registerItem(wuuthrad =            new ItemSword(createToolMaterial("Wuutrad", 300, wuuthradDamage * waraxeDamageModifier)).setUnlocalizedName("wuuthrad").setTextureName("tesitems:wuuthrad").setCreativeTab(CreativeTabs.tabCombat), "wuuthrad");

 

 

        //Register dungeon generator

        dungeon_generator_item = new DungeonGeneratorItem();

        GameRegistry.registerItem(dungeon_generator_item, "dungeon_generator_item");

        GameRegistry.registerBlock(dungeon_generator_block = new GenericBlock(Material.iron, "dungeon_generator_block", "dungeon_generator_block", 1, Block.soundTypeMetal, CreativeTabs.tabMisc), dungeon_generator_block.getUnlocalizedName());

 

        //Register blocks

        GameRegistry.registerBlock(dwarven_door = new DwarvenDoor(dwarven_material), "dwarven_door");

        GameRegistry.registerBlock(dwarven_block_01 = new GenericBlock(Material.iron, "dwarven_block_01", "dwarven_block_01", 5, Block.soundTypeMetal, CreativeTabs.tabBlock), "dwarven_block_01");

        GameRegistry.registerBlock(dwarven_pipe = new dwarven_pipe_block(Material.iron), "dwarven_pipe");

        GameRegistry.registerBlock(dungeon_bricks_01 = new GenericBlock(Material.rock, "dungeon_bricks_01", "dungeon_bricks_01", 4, Block.soundTypeStone, CreativeTabs.tabBlock), "dungeon_bricks_01");

        GameRegistry.registerBlock(dungeon_bricks_02 = new GenericBlock(Material.rock, "dungeon_bricks_02", "dungeon_bricks_02", 4, Block.soundTypeStone, CreativeTabs.tabBlock), "dungeon_bricks_02");

        GameRegistry.registerBlock(dungeon_bricks_03 = new GenericBlock(Material.rock, "dungeon_bricks_03", "dungeon_bricks_03", 4, Block.soundTypeStone, CreativeTabs.tabBlock), "dungeon_bricks_03");

        GameRegistry.registerBlock(dungeon_bricks_04 = new GenericBlock(Material.rock, "dungeon_bricks_04", "dungeon_bricks_04", 4, Block.soundTypeStone, CreativeTabs.tabBlock), "dungeon_bricks_04");

        GameRegistry.registerBlock(dungeon_bricks_05 = new GenericBlock(Material.rock, "dungeon_bricks_05", "dungeon_bricks_05", 4, Block.soundTypeStone, CreativeTabs.tabBlock), "dungeon_bricks_05");

        GameRegistry.registerBlock(dungeon_bricks_06 = new GenericBlock(Material.rock, "dungeon_bricks_06", "dungeon_bricks_06", 4, Block.soundTypeStone, CreativeTabs.tabBlock), "dungeon_bricks_06");

        GameRegistry.registerBlock(dungeon_bricks_07 = new GenericBlock(Material.rock, "dungeon_bricks_07", "dungeon_bricks_07", 4, Block.soundTypeStone, CreativeTabs.tabBlock), "dungeon_bricks_07");

        GameRegistry.registerBlock(dungeon_bricks_07_lamp = (GenericBlock) new GenericBlock(Material.rock, "dungeon_bricks_07_lamp", "dungeon_bricks_07_lamp", 4, Block.soundTypeStone, CreativeTabs.tabBlock).setLightLevel(1), "dungeon_bricks_07_lamp");

        GameRegistry.registerBlock(dungeon_bricks_08 = new GenericBlock(Material.rock, "dungeon_bricks_08", "dungeon_bricks_08", 4, Block.soundTypeStone, CreativeTabs.tabBlock), "dungeon_bricks_08");

        GameRegistry.registerBlock(dungeon_bricks_09 = new GenericBlock(Material.rock, "dungeon_bricks_09", "dungeon_bricks_09", 4, Block.soundTypeStone, CreativeTabs.tabBlock), "dungeon_bricks_09");

        GameRegistry.registerBlock(dungeon_bricks_09_lamp = (GenericBlock) new GenericBlock(Material.rock, "dungeon_bricks_09_lamp", "dungeon_bricks_09_lamp", 4, Block.soundTypeStone, CreativeTabs.tabBlock).setLightLevel(1), "dungeon_bricks_09_lamp");

        GameRegistry.registerBlock(bricks_block_01 = new GenericBlock(Material.rock, "bricks_block_01", "bricks_block_01", 4, Block.soundTypeStone, CreativeTabs.tabBlock), "bricks_block_01");

        GameRegistry.registerBlock(dirt_01 = new GenericBlock(Material.ground, "dirt_01", "dirt_01", 4, Block.soundTypeGravel, CreativeTabs.tabBlock), "dirt_01");

        GameRegistry.registerBlock(dirt_02 = new GenericBlock(Material.ground, "dirt_02", "dirt_02", 4, Block.soundTypeGravel, CreativeTabs.tabBlock), "dirt_02");

        GameRegistry.registerBlock(grass_01_top = new GenericBlock(Material.ground, "grass_01_top", "grass_01_top", 4, Block.soundTypeGrass, CreativeTabs.tabBlock), "grass_01_top");

        GameRegistry.registerBlock(planks_01 = new GenericBlock(Material.wood, "planks_01", "planks_01", 4, Block.soundTypeWood, CreativeTabs.tabBlock), "planks_01");

        GameRegistry.registerBlock(planks_02 = new GenericBlock(Material.wood, "planks_02", "planks_02", 4, Block.soundTypeWood, CreativeTabs.tabBlock), "planks_02");

        GameRegistry.registerBlock(bark_01 = new GenericBlock(Material.wood, "bark_01", "bark_01", 4, Block.soundTypeWood, CreativeTabs.tabBlock), "bark_01");

        GameRegistry.registerBlock(table_block = new TableBlock(Material.wood), "table_block");

        //GameRegistry.registerBlock(blacksmith_block = new BlacksmithBlock(Material.iron), "blacksmith_block");

 

        //Register items

        GameRegistry.registerItem(dwarven_door_item = new DwarvenDoorItem(dwarven_material), "dwarven_door_item");

        GameRegistry.registerItem(septim_coin = new Septim_coin(), "septim_coin");

 

 

        //Register clothes

        /*clothes01_helmet = new ClothesItemArmor("clothes_01", clothMaterial, "clothes_01", 0);

        GameRegistry.registerItem(clothes01_helmet, "clothes01_helmet");

        clothes01_chestplate = new ClothesItemArmor("clothes_01", clothMaterial, "clothes_01", 1);

        GameRegistry.registerItem(clothes01_chestplate, "clothes01_chestplate");

        clothes01_leggings = new ClothesItemArmor("clothes_01", clothMaterial, "clothes_01", 2);

        GameRegistry.registerItem(clothes01_leggings, "clothes01_leggings");

        clothes01_boots = new ClothesItemArmor("clothes_01", clothMaterial, "clothes_01", 3);

        GameRegistry.registerItem(clothes01_boots, "clothes01_boots");*/

 

        GameRegistry.registerItem(new ClothesItemArmor("clothes_helmet", clothMaterial, "clothes_01", 0), "clothes01_helmet");

        GameRegistry.registerItem(new ClothesItemArmor("clothes_chestplate", clothMaterial, "clothes_01", 1), "clothes01_chestplate");

        GameRegistry.registerItem(new ClothesItemArmor("clothes_leggings", clothMaterial, "clothes_01", 2), "clothes01_leggings");

        GameRegistry.registerItem(new ClothesItemArmor("clothes_boots", clothMaterial, "clothes_01", 3), "clothes01_boots");

 

        GameRegistry.registerItem(new GenericItemArmor("daedric_helmet", daedricArmorMaterial, "daedric", 0), "daedric_helmet");

        GameRegistry.registerItem(new GenericItemArmor("daedric_chestplate", daedricArmorMaterial, "daedric", 1), "daedric_chestplate");

        GameRegistry.registerItem(new GenericItemArmor("daedric_leggings", daedricArmorMaterial, "daedric", 2), "daedric_leggings");

        GameRegistry.registerItem(new GenericItemArmor("daedric_boots", daedricArmorMaterial, "daedric", 3), "daedric_boots");

 

        GameRegistry.registerItem(new GenericItemArmor("dawnguard_helmet", dawnguardArmorMaterial, "dawnguard", 0), "dawnguard_helmet");

        GameRegistry.registerItem(new GenericItemArmor("dawnguard_chestplate", dawnguardArmorMaterial, "dawnguard", 1), "dawnguard_chestplate");

        GameRegistry.registerItem(new GenericItemArmor("dawnguard_leggings", dawnguardArmorMaterial, "dawnguard", 2), "dawnguard_leggings");

        GameRegistry.registerItem(new GenericItemArmor("dawnguard_boots", dawnguardArmorMaterial, "dawnguard", 3), "dawnguard_boots");

 

        GameRegistry.registerItem(new GenericItemArmor("dragon_helmet", dragonArmorMaterial, "dragon", 0), "dragon_helmet");

        GameRegistry.registerItem(new GenericItemArmor("dragon_chestplate", dragonArmorMaterial, "dragon", 1), "dragon_chestplate");

        GameRegistry.registerItem(new GenericItemArmor("dragon_leggings", dragonArmorMaterial, "dragon", 2), "dragon_leggings");

        GameRegistry.registerItem(new GenericItemArmor("dragon_boots", dragonArmorMaterial, "dragon", 3), "dragon_boots");

 

        GameRegistry.registerItem(new GenericItemArmor("dwarven_helmet", dwarvenArmorMaterial, "dwarven", 0), "dwarven_helmet");

        GameRegistry.registerItem(new GenericItemArmor("dwarven_chestplate", dwarvenArmorMaterial, "dwarven", 1), "dwarven_chestplate");

        GameRegistry.registerItem(new GenericItemArmor("dwarven_leggings", dwarvenArmorMaterial, "dwarven", 2), "dwarven_leggings");

        GameRegistry.registerItem(new GenericItemArmor("dwarven_boots", dwarvenArmorMaterial, "dwarven", 3), "dwarven_boots");

 

        GameRegistry.registerItem(new GenericItemArmor("elven_helmet", elvenArmorMaterial, "elven", 0), "elven_helmet");

        GameRegistry.registerItem(new GenericItemArmor("elven_chestplate", elvenArmorMaterial, "elven", 1), "elven_chestplate");

        GameRegistry.registerItem(new GenericItemArmor("elven_leggings", elvenArmorMaterial, "elven", 2), "elven_leggings");

        GameRegistry.registerItem(new GenericItemArmor("elven_boots", elvenArmorMaterial, "elven", 3), "elven_boots");

 

        GameRegistry.registerItem(new GenericItemArmor("hide_helmet", hideArmorMaterial, "hide", 0), "hide_helmet");

        GameRegistry.registerItem(new GenericItemArmor("hide_chestplate", hideArmorMaterial, "hide", 1), "hide_chestplate");

        GameRegistry.registerItem(new GenericItemArmor("hide_leggings", hideArmorMaterial, "hide", 2), "hide_leggings");

        GameRegistry.registerItem(new GenericItemArmor("hide_boots", hideArmorMaterial, "hide", 3), "hide_boots");

 

        GameRegistry.registerItem(new GenericItemArmor("iron_helmet", ironArmorMaterial, "iron", 0), "iron_helmet");

        GameRegistry.registerItem(new GenericItemArmor("iron_chestplate", ironArmorMaterial, "iron", 1), "iron_chestplate");

        GameRegistry.registerItem(new GenericItemArmor("iron_leggings", ironArmorMaterial, "iron", 2), "iron_leggings");

        GameRegistry.registerItem(new GenericItemArmor("iron_boots", ironArmorMaterial, "iron", 3), "iron_boots");

 

        GameRegistry.registerItem(new GenericItemArmor("glass_helmet", glassArmorMaterial, "glass", 0), "glass_helmet");

        GameRegistry.registerItem(new GenericItemArmor("glass_chestplate", glassArmorMaterial, "glass", 1), "glass_chestplate");

        GameRegistry.registerItem(new GenericItemArmor("glass_leggings", glassArmorMaterial, "glass", 2), "glass_leggings");

        GameRegistry.registerItem(new GenericItemArmor("glass_boots", glassArmorMaterial, "glass", 3), "glass_boots");

 

        GameRegistry.registerItem(new GenericItemArmor("steel_helmet", steelArmorMaterial, "steel", 0), "steel_helmet");

        GameRegistry.registerItem(new GenericItemArmor("steel_chestplate", steelArmorMaterial, "steel", 1), "steel_chestplate");

        GameRegistry.registerItem(new GenericItemArmor("steel_leggings", steelArmorMaterial, "steel", 2), "steel_leggings");

        GameRegistry.registerItem(new GenericItemArmor("steel_boots", steelArmorMaterial, "steel", 3), "steel_boots");

    }

 

    @EventHandler

    @SideOnly(Side.CLIENT)

    public void Load(FMLInitializationEvent event) {

        ClientRegistry.bindTileEntitySpecialRenderer(dwarven_pipe_tileEntity.class, new dwarven_pipe_special_renderer());

        ClientRegistry.bindTileEntitySpecialRenderer(TableTileEntity.class, new TableSpecialRenderer());

        MinecraftForge.EVENT_BUS.register(new RenderHandler());

        FMLCommonHandler.instance().bus().register(new GUIEventHandler());

    }

 

    @EventHandler

    public void postInit(FMLInitializationEvent event) {

        Item.getItemFromBlock(Blocks.log).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.log2).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.stone).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.cobblestone).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.hardened_clay).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.clay).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.gravel).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.mossy_cobblestone).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.dirt).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.obsidian).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.sand).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.sandstone).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.brick_block).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.quartz_block).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.stonebrick).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.bookshelf).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.lapis_block).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.coal_block).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.diamond_block).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.gold_block).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.iron_block).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.netherrack).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.nether_brick).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.stone_slab).setMaxStackSize(2);

        Item.getItemFromBlock(Blocks.wooden_slab).setMaxStackSize(2);

        Item.getItemFromBlock(Blocks.stone_stairs).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.acacia_stairs).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.birch_stairs).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.brick_stairs).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.dark_oak_stairs).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.jungle_stairs).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.nether_brick_stairs).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.oak_stairs).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.quartz_stairs).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.sandstone_stairs).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.spruce_stairs).setMaxStackSize(1);

        Item.getItemFromBlock(Blocks.stone_brick_stairs).setMaxStackSize(1);

    }

}

 

 

Link to comment
Share on other sites

Your mod instance is missing its annotation; it should be like this:

@Mod.Instance(TESItems.MODID,)
public static TESItems instance;

 

Also, you are handling the FMLInitializationEvent THREE times... you should only do so once. There are also FMLPreInitializationEvent and FMLPostInitializationEvent events which you can use.

 

Do NOT use @SideOnly in your Main class. Ever. Use the proxy system, which you do not have at all in your mod...

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

    • 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.
    • Hi, i appreciate the answer. I would love to do that, but we have active players with all their belongings in SSN. Also this mod is really handy and they would be mad if we removed it. Are you really certain that SSN is causing this? It would require lots of work to test it and SSN was not really an issue before we removed Fast Suite. Can it be related somehow? I will provide you with log before removing FS. PasteBin: https://pastebin.com/Y5EpLpNe (crash before removing Fast Suite, which I suspected to be a problem from some crash before)
  • Topics

×
×
  • Create New...

Important Information

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