Jump to content

GttiqwT

Members
  • Posts

    18
  • Joined

  • Last visited

Posts posted by GttiqwT

  1. heres some more info:

    > [K[33;1m[07:12:53] [Server thread/WARN] [minecraft/NetworkSystem]: Failed to handle packet for / (server ip)
    net.minecraft.util.ReportedException: Ticking player
    at net.minecraft.entity.player.EntityPlayerMP.onUpdateEntity(EntityPlayerMP.java:459) ~[oq.class:?]
    at net.minecraft.network.NetHandlerPlayServer.update(NetHandlerPlayServer.java:173) ~[pa.class:?]
    at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.update(NetworkDispatcher.java:209) ~[NetworkDispatcher$1.class:?]
    at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:285) ~[gw.class:?]
    at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:180) [oz.class:?]
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:790) [MinecraftServer.class:?]
    at net.minecraft.server.dedicated.DedicatedServer.updateTimeLightAndEntities(DedicatedServer.java:397) [nz.class:?]

    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:668) [MinecraftServer.class:?]

    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211]
    Caused by: java.lang.NoSuchMethodError: net.minecraft.entity.player.InventoryPlayer.func_70440_f(I)Lnet/minecraft/item/ItemStack;
    at mod.gttiqwt.emeraldobsidian.init.items.FlamingArmor.onArmorTick(FlamingArmor.java:37) ~[FlamingArmor.class:?]
    at net.minecraft.entity.player.InventoryPlayer.decrementAnimations(InventoryPlayer.java:371) ~[aec.class:?]
    at net.minecraft.entity.player.EntityPlayer.onLivingUpdate(EntityPlayer.java:511) ~[aed.class:?]
    at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:2179) ~[vp.class:?]
    at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:234) ~[aed.class:?]
    at net.minecraft.entity.player.EntityPlayerMP.onUpdateEntity(EntityPlayerMP.java:382) ~[oq.class:?]
    ... 9 more
    [39;0m> [K[07:12:53] [Server thread/INFO] [Astral Sorcery]: [Astral Sorcery] Synchronizing baseline information to GttiqwT
    > [K[07:12:53] [Server thread/INFO] [minecraft/NetHandlerPlayServer]: GttiqwT lost connection: Internal server error

     

  2. Hello I made a mod with custom armor (flaming obsidian armor) and when I equip it in my server I get kicked for "Internal server error"

    This is the log that I can find about my mod:

     

    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:668) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211]
    Caused by: java.lang.NoSuchMethodError: net.minecraft.entity.player.InventoryPlayer.func_70440_f(I)Lnet/minecraft/item/ItemStack;
    at mod.gttiqwt.emeraldobsidian.init.items.FlamingArmor.onArmorTick(FlamingArmor.java:37) ~[FlamingArmor.class:?]

    idk how to put spoilers sorry for the long text..

    how do I fix this? I think its because its rendering the armor on client side or something and I've had to fix this for an older mod but dont know how to. thanks :)

    here's my class for the armor also: (The armor just extends "ArmorItem" basically and adds some potion effects when the full set it worn. works in singeplayer)

    {
        public UpgradedArmor(IArmorMaterial materialIn, EquipmentSlotType slot, Properties builder)
        {
            super(materialIn, slot, builder);
        }
         @Override
            public void onArmorTick(ItemStack stack, World world, PlayerEntity player) {
                if(player.getItemStackFromSlot(EquipmentSlotType.HEAD).getItem() == ItemList.jewelled_emerald_helmet && 
                    player.getItemStackFromSlot(EquipmentSlotType.CHEST).getItem() == ItemList.jewelled_emerald_chestplate && 
                    player.getItemStackFromSlot(EquipmentSlotType.LEGS).getItem() == ItemList.jewelled_emerald_leggings && 
                    player.getItemStackFromSlot(EquipmentSlotType.FEET).getItem() == ItemList.jewelled_emerald_boots) 
                {            
                        player.addPotionEffect(new EffectInstance(Effects.REGENERATION));
                        player.addPotionEffect(new EffectInstance(Effects.HERO_OF_THE_VILLAGE)); //instead of luck, better trades forever!
                        player.addPotionEffect(new EffectInstance(Effects.WATER_BREATHING));
                        player.addPotionEffect(new EffectInstance(Effects.HASTE));
                }
                if(player.getItemStackFromSlot(EquipmentSlotType.HEAD).getItem() == ItemList.flaming_obsidian_helmet && 
                        player.getItemStackFromSlot(EquipmentSlotType.CHEST).getItem() == ItemList.flaming_obsidian_chestplate && 
                        player.getItemStackFromSlot(EquipmentSlotType.LEGS).getItem() == ItemList.flaming_obsidian_leggings && 
                        player.getItemStackFromSlot(EquipmentSlotType.FEET).getItem() == ItemList.flaming_obsidian_boots)
                    {
                            player.addPotionEffect(new EffectInstance(Effects.FIRE_RESISTANCE));
                            player.addPotionEffect(new EffectInstance(Effects.RESISTANCE));
                            player.addPotionEffect(new EffectInstance(Effects.STRENGTH)); //new
                    }
            }
    }

     and then registered like this in the main class:

    ItemList.flaming_obsidian_helmet = new UpgradedArmor(ArmorMaterialList.flaming_obsidian, EquipmentSlotType.HEAD, new Item.Properties().group(itemTab)).setRegistryName(location("flaming_obsidian_helmet")),
    						ItemList.flaming_obsidian_chestplate = new UpgradedArmor(ArmorMaterialList.flaming_obsidian, EquipmentSlotType.CHEST, new Item.Properties().group(itemTab)).setRegistryName(location("flaming_obsidian_chestplate")),
    						ItemList.flaming_obsidian_leggings = new UpgradedArmor(ArmorMaterialList.flaming_obsidian, EquipmentSlotType.LEGS, new Item.Properties().group(itemTab)).setRegistryName(location("flaming_obsidian_leggings")),
    						ItemList.flaming_obsidian_boots = new UpgradedArmor(ArmorMaterialList.flaming_obsidian, EquipmentSlotType.FEET, new Item.Properties().group(itemTab)).setRegistryName(location("flaming_obsidian_boots"))

     

  3. Hello, im trying to figure out how to add a config setting that determines which recipes to use. I have 2 recipes, one thats easier and one thats harder and I want it to use one depending on the config setting.

    I've looked on the forums here and people are saying something about a "IRecipeSerializer" but im unsure of where to start or how to code something that would work for what I want.

     

    Thanks in advanced for the help.

  4. Nevermind I fixed it. You have to reference/register the item using the "HorseArmorItem.class" thats given to you. You cannot use your own custom class. (only thing is now im going to run into problems with getting the textures to work.)

     

    public boolean isArmor(ItemStack stack) {
          return stack.getItem() instanceof HorseArmorItem;
       }

    If you override that I believe you can fix it so you can make your own class..

  5. 7 hours ago, darkgreenminer said:

    Great. It's so frustrating when it's not working and I'm trying different things.  Let me know if yours is still buggy and I'll send a copy of my WorldGenCustomStructures class.  Have you seen Harry Talks' tutorial?  It's here at https://www.youtube.com/watch?v=cq1wNwuGxu4&t=860s and one early error I had was importing Scala arrays instead of java.util (described in a couple of the comments).  If you want to try out my mod (still in beta), it's here https://www.curseforge.com/minecraft/mc-mods/skulls-and-monkeys.  It's the result of me following a few tutorials to put some fun things into the game for 1.12, recreating some of my favourite old 1.7.10 mods partially and playing around with monkeys.  I've striven for game-balance, as that's how I like to play on modded survival worlds.  What sort of mod are you developing, if I may ask?

     

    Yeah I get where you're coming from. I also watched harry talk's tutorial and at first it worked but then I got the problem that it wont spawn more than one structure otherwise it'll overlap and only spawn the latest one added. I tried to follow this tutorial again and it just didnt seem to work at all now. When I get more time ill have to do it again and then afterwards try and fix the issues with spawning more than one structure. I'm currently trying to fix the issue where it causes cascading gen lag but I dont know how to fix that quite yet either.

  6. On 11/6/2018 at 6:13 PM, Merthew said:

    The problem is that i don't know how to not use static i may just be missing some logic or knowledge of java.

    *Never mind, i fixed it. sorry for my incompetence 

    How did you fix it?

     

    edit: nvm I believed I fixed it too, just had to tweak a few things to use "name" instead of "structureName"...

  7. 7 hours ago, Animefan8888 said:

    Any Block references to dirt or grass for starters.

    Okay I've done that, but im getting into issues at the .DirtType and .VARIANT parts I believe. I did replace all of the parts where it references and block dirt or grass and made my own DirtType and whatnot but it isnt seeming to grow.

×
×
  • Create New...

Important Information

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