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.

DiabolusNeil

Members
  • Joined

  • Last visited

Everything posted by DiabolusNeil

  1. I want to make an item to do this, but it won't be a food. I've looked at the ItemFood code, but I still can't figure out how it replenishes the player's hunger. Could someone help me?
  2. We're not as smart as you almighty LexManos.
  3. You need to add @Override above the method(s) you're trying to use that are inherited by the super class (in this case, Item). Example: @Override public ItemStack onEaten(ItemStack itemstack, World world, EntityPlayer player) { if (!player.capabilities.isCreativeMode) { --itemstack.stackSize; } if (!world.isRemote) { player.curePotionEffects(itemstack); } return player.stackSize <= 0 ? new ItemStack(TutorialMod.ShriveledLeaf) : itemstack; } It seems you don't know a lot about Java or modding in general, since you directly copied the method from the Item class, didn't change anything, and expected it to work.
  4. I'm a noob at working with NBT data. The Premise: Players can create a Mob Net. It can store up to one mob at a time, then can be used to respawn the mob, with the NBT data it had before it was "picked up". The Problem: I have practically no idea how to effectively use NBT data. I only know the extreme basics. Could someone help me?
  5. Dang it, I forgot about that. Thank you!
  6. My first topic on here, don't hate me. Some test code I'm working with: @Override public boolean onLeftClickEntity(ItemStack itemstack, EntityPlayer player, Entity ent) { if (!ent.worldObj.isRemote) { System.out.println("|" + ent.getEntityName() + "|"); if (ent.getEntityName() == "Pig") { System.out.println("TRIGGER"); } System.out.println("|" + ent.getEntityName() + "|"); } return false; } And here's what the console looks like when I hit a pig. |Pig| |Pig| Going through the If statement, it outputs as false, even though it's seemingly supposed to be true. Is there anything I'm missing?
  7. Thanks! I'm guessing the problem was caused by Zan's Minimap being strictly a client-side mod, and it cannot be installed on servers.
  8. Hello. I'm kinda new at this, so please don't hate on me. Here's the scenario: I created a mod pack. I will list a few details about it first. It requires the Technic launcher, and I have done a lot of licensing-investigating to see if all of these mods are allowed to be used in a public mod pack without any special permission. It contains 26 mods (50 according to Forge), and is a pretty big pack, though it seems stable enough, and does not randomly crash. Running the mod pack in Singleplayer works perfectly fine. Nothing strange. I then proceeded to test the pack in Multiplayer, so I started with a control. I ran a little Forge server with no problems. I then installed all of my mods into the server. I get these messages. ForgeModLoader-server-1.log: http://pastebin.com/E8k0GWMT Corresponding Crash Report: http://pastebin.com/SESWjj4f I tested this 2 more times, same exact thing happens. I'm only good with reading simple error messages, but I can't decipher anything with this. Could someone please explain what I'm doing wrong?

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.