Everything posted by GotoLink
-
NEI API, adding a name to a new keybinding
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 ?)
-
editing vanilla without editing base classes
You can do that without editing base classes. Add your recipe and it will probably be used instead of the old one.
-
a glitch where I cant give a player a item.
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.
-
Question about tutorials (plants)
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
-
a glitch where I cant give a player a item.
Are you giving the item server side ?
-
[Solved] One tool is overwritng another tool ingame
Probably a config file bug then. Remove it from your Eclipse environment.
-
[Solved]Question About attributes.
Wouldn't attributeinstance.func_111128_a(double) set to your new value ?
-
Sword sounds 2.0!
Let us see your new code then.
-
[Solved] One tool is overwritng another tool ingame
Your code shows 4 tool set. Which one doesn't work like the others ?
-
[1.6.2] Sided textures
When is your block registered ?
-
[1.6.2] Metadata and texture randomly changes???
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.
-
[Solved] Activate Custom Portal with Vanilla Flint and Steel
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...
-
Making config IDs for metadata, biomes
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.
-
registerOre in constructor
Well, in most cases, it is better to wait for things to be initialized completely. If it worked for you, why not ?
-
[Solved-ish]Crafting Recipe: Returning an Item
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.
-
[Solved-ish]Crafting Recipe: Returning an Item
Item.shears.setContainerItem(Item.shears) Don't do this. Do it into your bacon item, if needed. (though i doubt it)
-
[1.6.2]Glitching vehicle entity...
Did you register your entities with velocity updates to true ?
-
[Solved] Activate Custom Portal with Vanilla Flint and Steel
I know where it is. How do you think I found the name and arguments ? Now, please answer my question.
-
[Solved-ish]Crafting Recipe: Returning an Item
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.
-
[HELP] Creating a GUI and Using it
The tutorial may be outdated, but it may work anyway
-
How to write a message to myself
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.
-
Biome is just piston heads and wool. But its set to something else.
You are casting your block id to a byte. It needs to be in the byte range to keep its value.
-
[1.6.2][Fluids] FluidTank synchronisation.
Packets and NBT. There is TileFluidHandler for fluids TileEntity i think.
-
Sword sounds 2.0!
Well this is quite simple. addSound("attacking.wav"); playSoundAtEntity(par3EntityPlayer, "brenden:attacking" Doesn't match.
-
[Solved] Activate Custom Portal with Vanilla Flint and Steel
When is public boolean tryToCreatePortal(World par1World, int par2, int par3, int par4) being called ?
IPS spam blocked by CleanTalk.