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. Make your resource a field, please. And drop the / before "textures/test.png".
  2. Some syntax error or wrong/missing import in ContainerWikiLinkMenu ? Quite strange, really.
  3. Item.pumpkinPie.setCreativeTab(null);
  4. The wiki basically explain everything you need to know. For practical examples, look at any open source mod. There is a high chance they use packets.
  5. You set yourself on client side. Why ? You are not happy with the player the method gives you ?
  6. As for finding EntityTracker, i just followed registerModEntity method till reaching the point where those variables are used. The change is good, but don't initialize items with final static. It is recommended to only initialize items and blocks after receiving the FMLPreInitializationEvent. This way you are sure Minecraft is ready to handle things
  7. Extend EntityBoat. Change only what you need changed. Take a look at the EntityTracker to understand what the parameters in the registerModEntity method do.
  8. Use EntityJoinWorldEvent and send a packet to client side.
  9. Follow FurnaceRecipes lists example. Make your own metadata sensitive version and use it for your tile.
  10. Why registering the class twice ? You should give your Tiles a default constructor.
  11. Wasn't Modjam finished, like, weeks ago ? Anyway, to change classes without using them directly, use a class reader and bytecode manipulation. If you can do it on Mojang classes, you can do it on other mods classes too.
  12. I think the problem is how you are doing your effect on the item. It is bringing a lot of stupid issues because of this. Edit: You could use the EntityInteractEvent and check for EntityItemFrame.
  13. The jar's MANIFEST must have FMLCorePluginContainsFMLMod: true
  14. Using a ITickHandler with TickType.World you can read a few blocks at random in the world. Then search for whatever type it is, the data it contains...
  15. Use EntityLiving#setAttackTarget(EntityLivingBase)
  16. You can also use the ItemTossEvent.
  17. I'd say the error is on your system. Either your sound or your internet connection or one of the mods.
  18. IPlayerTracker has onPlayerLogout(EntityPlayer).
  19. The mounting affects the rider yaw and pitch, thus the rendering. Your crash report suggest sorting failure in RenderGlobal... the renderer sorting is done by entity distance, so i guess two entities are at the exact same point ? AFAIK, the only thing that happens when a dismount is Entity#mountEntity(Entity), with a null argument. This is where setLocation(args) occurs, but you can change that by doing what you want after...unless you use "sneak" unmount. In case of the player, it is overriden with EntityLiving#dismountEntity(Entity) also called server side.
  20. The issue has been fixed. The author had a conflict with server side by using client side only code where he shouldn't have.
  21. There clearly is a dungeon chest category in ChestGenHooks. Then you can use whatever addItem method you want in that class.
  22. Well, you have discovered client and server side. Furnaces typically use their container methods to send update information about their burn time so the gui can print it
  23. You can use RenderGameOverlayEvent.Text to add to left or right list of texts on screen.
  24. In onBlockPlacedBy(World,int,int,int,EntityLivingBase), spawn an EntityFireworkRocket. Find in Entity the methods to set position and such.
  25. Your modifier id needs to be constant.

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.