Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

GotoLink

Members
  • Joined

  • Last visited

Everything posted by GotoLink

  1. Did you register your SoundLoader ?
  2. Yes, add the sources and reference them like any classes.
  3. Keep your channel name within 16 letters. packet.channel = "terramagnachannel"; if(packet.channel.equals("terramagnachannel")) This makes no sense.
  4. Instead of if(world instanceof WorldServer){ this.worldServerObj = world; } else { this.worldObj = world; } Do this.worldObj = world;
  5. The container instance is saved when you give it to your parent class GuiContainer.
  6. ResourceLocation("battleofthebeasts", "textures/entity/GoblinTheif.png");
  7. Well, your songTitle in the constructor with the sound registered in SoundLoadEvent.
  8. Unneeded, seriously unneeded. Use world.markBlockForUpdate(x,y,z). It triggers light calculation. If that fails, something is wrong in your tileentity.
  9. 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.
  10. Well, use only one World field. Not WorldClient nor WorldServer. Make sure it is initialized on both sides too.
  11. 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.
  12. Guys who copy/paste code trying to look experienced...right.
  13. I should have seen that sooner. Use the expnow in your container, not the tileentity.
  14. 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)
  15. 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.
  16. 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
  17. canSustainPlant(args) sounds suspicious, don't you think ?
  18. 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.
  19. getItemDamage() setItemDamage(int)
  20. 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.
  21. This is the most efficient way (without editing the EntityPlayer). You'll always find math at some point in your code
  22. Javadocs are next to the sources. Here: http://files.minecraftforge.net/

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.