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. For Notch sake, don't copy code. :'( Extend classes. You should check how you open the gui. Don't use ModLoader methods.
  2. This is what i meant. Remove the modifier, then apply it again with a new value. Or apply another modifier. Or calculate the complete modified value with old = attributeInstance.func_111125_b(); and change it with attributeInstance.func_111128_a(old*change); There is currently no supported way to modify a part of the modifier in the applied collection. You'll probably end up with a concurrent modification exception if you force it through reflection.
  3. If you generate it progressively instead of entirely, size won't matter.
  4. Anyway, since we are talking about chat inputs, there is no need for a container. Thus Gui is purely client side.
  5. onUpdate() { timer++; if(timer>=timeLimit){ setDead(); timer=0; } }
  6. Then ASK ON VINNALI FORUMS OR WHATEVER!
  7. Then try to find a modeling software that works.
  8. If you are only drawing strings, use RenderGameOverlayEvent.Text. And add your strings to the lists.
  9. particleAge and motion parameters are in EntityFX.
  10. Not, more like the contrary. Look at sendLocationToAllClients(List) in EntityTrackerEntry, this is where those are used. And EntityTracker contains all vanilla examples.
  11. Use EntityFX or any subclass.
  12. trackingRange: How far from a player the entity continue to "live", somewhere between 10 and 100 is safe. updateFrequency: Pretty self explanatory, usually between 1 and 10. sendsVelocityUpdates: If true, send velocity packets around.
  13. MagicTech ? MASS ?
  14. Yes, you'll need to send a packet next for syncing the entity.
  15. 1) LivingDeathEvent 2) world.spawnEntityInWorld(args) 3 times
  16. On key pressed...use a KeyHandler
  17. Don't use those booleans, and disable the repeatings for your key. Use the keyDown method only. In it, if(tickend) { if(hasOpenedGui) { //close gui hasOpenedGui=false; } else { //open gui hasOpenedGui=true; } } That is, if you have an HUD. If it is a gui (extends GuiScreen), you can use Minecraft.getMinecraft().currentScreen to check.
  18. Basic Java: player.getHeldItem() == new ItemStack(Block.slowSand, 1) this will never return true. Use the ItemStack.areItemStackEquals(args) method instead.
  19. Choose one of the entity registry method. Don't do both, that is useless. Use @NetworkMod annotation.
  20. Ho that, you didn't register your renderer.
  21. final AttributeModifier speed1 = new AttributeModifier(player.getPersistentID(), "Emblem Speed Boost", 0.25D, 1); The last int argument deals with how the modifier is applied. Its range is in [0..2]. Either an added value, a multiplier, or an added multiplier. Example: choose 2 to apply a (1+0.25D) multiplier to the speed value. You can use attributeinstance.func_111124_b(AttributeModifier) to remove a modifier.
  22. What I mean is you never do InitRendering() anywhere and your registerTileEntity() does nothing. Learn how to code before doing something like complex rendering.
  23. LOL I doesn't matter how you call it if you don't use it at some point.

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.