Jump to content

GotoLink

Members
  • Posts

    2012
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by GotoLink

  1. Maybe giving "wiki" as first argument would work ? Just saying, I didn't know this API existed till now. If you are sure about this API being necessary, you can suggest the author to add a API.addKeyBindWithName(args) method. (I personally don't think you need an external API to make this KeyBind, unless it gives special properties ?)
  2. You can do that without editing base classes. Add your recipe and it will probably be used instead of the old one.
  3. You have to use packets to send the changes induced by actionPerformed(args) to the server. There are tutorials for PacketHandler and such on the wiki.
  4. Look into World class for "setBlock", there are quite a few methods there. The names and behaviour changed a bit due to Mojang updates (i think it was in 1.4 actually). setIconIndex() and setTextureFile() methods don't exist in 1.6. The Icons are replacement for them. CommonProxy has nothing to do with it by the way. Good luck, have fun
  5. Are you giving the item server side ?
  6. Probably a config file bug then. Remove it from your Eclipse environment.
  7. Wouldn't attributeinstance.func_111128_a(double) set to your new value ?
  8. Let us see your new code then.
  9. Your code shows 4 tool set. Which one doesn't work like the others ?
  10. When is your block registered ?
  11. At line 167 of your block, in updateTick(args) method: par1World.setBlockMetadataWithNotify(par2, par3, par4, l & -9, 4); This has a chance of changing your block metadata.
  12. Yes,he needs to call tryToCreatePortal on his own. There are countless solutions: -have it in onBlockActivated -have it in onNeighbourBlockChange -use PlayerInteractEvent -things i didn't think of...
  13. Configurable Biomes ids ? of course, like any block or item...put an int into your config file. I don't see the point for metadata actually. You'll need to initialize all of your block versions, and check that none overlap... Even worse for items, you don't have any limitation if you use item damage.
  14. Well, in most cases, it is better to wait for things to be initialized completely. If it worked for you, why not ?
  15. Do baconRaw.setContainerItem(Item.shears) then. IRecipe is mostly to recognize a complex recipe that wouldn't be handled by Minecraft (like say, with ItemStack NBTTagCompound). It doesn't tell what damage to apply to which item. You need a ICraftingHandler to do that.
  16. Item.shears.setContainerItem(Item.shears) Don't do this. Do it into your bacon item, if needed. (though i doubt it)
  17. Did you register your entities with velocity updates to true ?
  18. I know where it is. How do you think I found the name and arguments ? Now, please answer my question.
  19. You can add OreDictionary.WILDCARD_VALUE to the shears ItemStack itemdamage. This way any shears will do. AFAIK, any item in a recipe will get damaged/removed when taking out the recipe output. It may depend on how you implemented the ContainerItem thing though.
  20. The tutorial may be outdated, but it may work anyway
  21. Well you can still use my code, but you'll need to catch chat messages instead. You can use ClientChatReceivedEvent for that. Then combine it with diesieben07 advice.
  22. You are casting your block id to a byte. It needs to be in the byte range to keep its value.
  23. Packets and NBT. There is TileFluidHandler for fluids TileEntity i think.
  24. Well this is quite simple. addSound("attacking.wav"); playSoundAtEntity(par3EntityPlayer, "brenden:attacking" Doesn't match.
  25. When is public boolean tryToCreatePortal(World par1World, int par2, int par3, int par4) being called ?
×
×
  • Create New...

Important Information

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