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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. You know you can check for the player's active weapon in the EntityDeadEvent, right? As well as any other property active on the player.
  2. Any reason you don't check to see if the entity was killed by the player?
  3. Are you sure you are not clicking on an advertisement?
  4. pos.up(), btw, is much more efficient than new BlockPos(pos.getX(), pos.getY()+1, pos.getZ()
  5. When you gaze into the abyss that is ASM, the abyss gazes back.
  6. The invisible blocks are every real block in your multiblock structure.
  7. Do you know how to examine an object to locate properties?
  8. "That one cube right there" cannot be achieved via TintIndex or any other Block method.
  9. Packet handlers have a message context that includes the player the packet came from. Done.
  10. You know what imports do, too, right?
  11. I still do not understand that mark dirty function. CoolAlias might have to hop in and help you, because from here it looks like that method is erasing the inventory contents, not saving them. Similarly, it isn't calling super().
  12. Because I am intimately familiar with the Twilight Forest...mind explaining?
  13. By "block " do you mean "all stone everywhere" or "that one cube right there"?
  14. Look for multipass rendered blocks.
  15. Should be able to render the overlay with a different color multiplier, but it might not be the most straight forward thing.
  16. It would be easier to draw a transparent quad manually.
  17. A couple other potions have a "waver" or transition period at certain values (night vision kind of blinks at less than 20-40 ticks, I forget the exact value). I actually utilize that for a smoke block, forcing the player's remaining blindness amount to be 18 ticks. Gives a vision radius of about 8-12 blocks rather than the typical 4.
  18. How about you use Jump to Declaration and look at their implementation?
  19. Draco18s replied to yotmam12's topic in Modder Support
    This will never be true: if (playerIn.inventory.getStackInSlot(i) == new ItemStack(checking, OreDictionary.WILDCARD_VALUE)) You can't compare itemstacks that way.
  20. That is indeed the function you want to change. I don't know what it is you want the function to do, but yep, that's the function.
  21. https://www.opengl.org/wiki/Blending#Blend_Color
  22. That's because you are applying the potion effect every tick. If you knew how Regeneration worked, you would see the problem immediately. Regeneration heals the player when the time remaining % 10 equals 0.
  23. Welll...what does SlotSCTile have to say about it?
  24. 1) That is not what Mark Dirty is supposed to be doing. 2) That function utterly deletes the entire contained inventory. Good jorb. 3) Never, ever, EVER call writeToNBT yourself.

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.