Jump to content

Otis Goodman

Members
  • Posts

    45
  • Joined

  • Last visited

Posts posted by Otis Goodman

  1. 2 hours ago, diesieben07 said:
    • You cannot do this. Data like that must be stored in the ItemStack (like you already do). You cannot store it in the Item instance in any way.
    • You cannot compare strings using ==.
    •  Use TextComponentTranslation instead of TextComponentString + I18n. Otherwise you are translating on the server and you will always get English.
    •  You cannot compare ItemStacks using ==.

    Thanks that helped what is the best way to compare strings and item stacks?

  2. 1 hour ago, diesieben07 said:

    Okay, you just vomited a huge chunk of code into gists without even enabling syntax-highlighting.

    Please, at the very least, explain what your issue is, except "troubles with many idk things".

    2

    Your right and I am sorry.

     

    I am trying to use ShoutSetBook code to change the NBT of the ShoutBook  item so that it runs the shout by right-clicking but, I can't seem to get the shout to cast and I don't know what's wrong.

     

    I hope that explains that better.

  3. What I am trying to make a gui but I need an Iinvintory when I register it and I am not sure what I should use. so I was wondering where this code is in valnilla src or if it even is there
    
    @Override
    public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
    {
        if(ID == QCInfo.SMOKERID) return new GuiSmoker(player.inventory, (TileSmoker),INV, world.getTileEntity(new BlockPos(x,y,z)));
        return null;
    }
  4. Where Do I register my entity models so that they work on with a server?

     

    I currently have them in the preinit event but that crashes my test server.

    I have tried doing something like this but it makes the entities look like white soccer pylons when I play on a server.

     

    Can I get some help?

     

    @SideOnly(Side.CLIENT)
    public static void clientRegisters (){
      RenderHandler.registerEntityRender();
    }
    
    
    @Mod.EventHandler
        public static void preInit(FMLPreInitializationEvent event){
      RenderHandler.registerEntityRender();
    
    }

     

     

  5. I am trying to do some integration with other mods but I ran into a problem.

    I don't know how to add integration with a mod without compiling it.

    What I am trying to do is check if the integrated mod is installed then run code referencing classes from the mod.

     

    Can I get some guidance?

     

    ~

    Otis

×
×
  • Create New...

Important Information

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