Skip 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.

Animefan8888

Forge Modder
  • Joined

  • Last visited

Everything posted by Animefan8888

  1. Override doCollisions and remove the code stopping/killing the entity when it collides.
  2. Now what is the problem?
  3. I'm pretty sure we need more information than that like code.
  4. Yeah I didn't notice this before, but making a github is recommended for later posts.
  5. By chance do you have a github or skype/discord? And do the Items exist in the game? *Edit you don't have @EventHandler above your load and postLoad methods.
  6. When I said use event.getDrops.add(...) did you remove the clear and the new List you made from the method? Is it dropping any Items at all?
  7. PlayerLoggeInEvent should get called when the player joins the game both singleplayer and dedicated server.
  8. Try doing it in your preInit method, I will look more into this after you respond saying it doesn't work.
  9. I'm pretty sure speed is the recovery time mainly what this thread is asking to fix.
  10. Cool alias has a sgood tutorial for overriding shift clicking here. http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571051-custom-container-how-to-properly-override-shift
  11. Try doing event.getDrops().add instead of resetting the list.
  12. That code should work and it should be in your load method. Can you be a little more detailed when explaining the problem?
  13. drawContainer.... is already called "every frame"
  14. Because you only call it once all rendering code needs to be in the rendering methods aka draw...
  15. What do you mean? Does it work?
  16. You are creating a variable named cookies then when you are creating it you try to reference it. cookies.getValueInt()
  17. In your MainMod class in the @Mod annotation set clientSideOnly = true not sure if that will fix it, but you should do that anyways.
  18. There are two possible places for this, which are you referring to? Here if (ChatListener.isAFK = false) { ChatListener.isAFK = true; icommandsender.addChatMessage(new ChatComponentText("You are now AFK!")); return; } If this doesn't work it is not being called. I use that and it only comes up with the "Hello" message, not the "You are now AFK!". Then it is never making it into the if statement, or it can't send the message try removing the help message.
  19. When you setup the EventHandler you need to subscribe to HarvestDropsEvent, using the HarvestDropEvent parameter in your method you have access to the block and a list of dropped items you can modify to your liking.
  20. There are two possible places for this, which are you referring to? Here if (ChatListener.isAFK = false) { ChatListener.isAFK = true; icommandsender.addChatMessage(new ChatComponentText("You are now AFK!")); return; } If this doesn't work it is not being called.
  21. You can look at the link in my signature and look at my RegistryHelper class for an example on how that is handled.
  22. EventHandler here is a great tutorial on it by cool alias. http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571567-forge-1-6-4-1-8-eventhandler-and

Important Information

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

Account

Navigation

Search

Search

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.