Everything posted by GotoLink
-
Music Discs Adding Music to the disc.
Did you register your SoundLoader ?
-
Help with creating a Forestry addon
Yes, add the sources and reference them like any classes.
-
PacketHandler problems?
Keep your channel name within 16 letters. packet.channel = "terramagnachannel"; if(packet.channel.equals("terramagnachannel")) This makes no sense.
-
How to use setBlock on a server?
Instead of if(world instanceof WorldServer){ this.worldServerObj = world; } else { this.worldObj = world; } Do this.worldObj = world;
-
Problems between server-client, client-server talk[unsolved but i don't care]
The container instance is saved when you give it to your parent class GuiContainer.
-
[1.6.2]Glitchy Mob Textures in Minecraft?
ResourceLocation("battleofthebeasts", "textures/entity/GoblinTheif.png");
-
Music Discs Adding Music to the disc.
Well, your songTitle in the constructor with the sound registered in SoundLoadEvent.
-
[Solved] Overriding getLightValue() has no effect
Unneeded, seriously unneeded. Use world.markBlockForUpdate(x,y,z). It triggers light calculation. If that fails, something is wrong in your tileentity.
-
[1.6.2] What am I doing wrong? (Creating custom bow)
I never said that. I said that taking a picture of a drawing doesn't teach you how to draw. Write your own code. You'll get a lot more experience that way, i promise.
-
How to use setBlock on a server?
Well, use only one World field. Not WorldClient nor WorldServer. Make sure it is initialized on both sides too.
-
can i set the critical hit damage on a sword/tool
if (!(weapon.getItem() instanceof MythicalSteelRapier)) {if (ran1 < 80) {event.ammount += 10;}} Any item not a MythicalSteelRapier gets a 80% chance of having 10 more damage.
-
[1.6.2] What am I doing wrong? (Creating custom bow)
Guys who copy/paste code trying to look experienced...right.
-
Problems between server-client, client-server talk[unsolved but i don't care]
I should have seen that sooner. Use the expnow in your container, not the tileentity.
-
[1.6.2] What am I doing wrong? (Creating custom bow)
Well, you don't know anything about Java. Did you ever asked yourself why you extend Item ? Anyway, if you want to change the bow textures, do as you would with any item. Override the registerIcons. Then, to animate, override : public Icon getIcon(ItemStack stack, int renderPass, EntityPlayer player, ItemStack usingItem, int useRemaining)
-
How do you make plants grow on custom blocks?
Yes, override canSustainPlant(wtv) in your "dirt" block. Make the checks you want, then return true when fulfilled. Don't touch canBlockStay, unless you want plants to grow in the dark (light<8 ), or inside caves, or in the air.
-
Tool meta data
ItemStack sword = new ItemStack(Item.swordDiamond);//this is only for the example, most of the time, you get an unknown ItemStack from methods int oldDmg = sword.getItemDamage();//lets get the damage...it is 0 in our example case //you may want to check max damage value too before... sword.setItemDamage(oldDmg+1);//increasing the damage by 1
-
[1.6.2] What am I doing wrong? (Creating custom bow)
Remove. Copied. Code. :'(
-
Music Discs Adding Music to the disc.
Names must match.
-
How do you make plants grow on custom blocks?
canSustainPlant(args) sounds suspicious, don't you think ?
-
Buckets and furnace recipes
Container item only applies for the fuel stack in the furnace. (namely, lava buckets) Use ICraftingHandler and give the player a bucket when the smelting result is a cheese.
-
Tool meta data
getItemDamage() setItemDamage(int)
-
[1.6.2] What am I doing wrong? (Creating custom bow)
Extend. ItemBow. :'(
-
Damage and Meta for Items?
You don't use damage nor metadata nor NBT. You didn't add them to any list in creative tabs. You don't even use your own chaining helper methods ? I am afraid I can't help.
-
Get the block(or blocks nearby is ok) which player is looking at
This is the most efficient way (without editing the EntityPlayer). You'll always find math at some point in your code
-
Creating a basic GUI dialog
Javadocs are next to the sources. Here: http://files.minecraftforge.net/
IPS spam blocked by CleanTalk.