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.

Animefan8888

Forge Modder
  • Joined

  • Last visited

Posts posted by Animefan8888

  1. 21 minutes ago, deerangle said:

    I was trying to add a capability, but for some reason, the AttachCapabilitiesEvent isn't being fired (checked with breakpoints).

    When did you expect it to fire? It fires when a TileEntity is created. And it definitely fires. Also are you wanting to attach it to every TileEntity in the game because if you only want it on your TileEntities that is not how you do it.

  2. 1 minute ago, Jipthechip said:

    I did that, and it just ended up never getting to the code I wanted it to.

    Which means I was wrong about it being a World instance when you need it to be.

    13 hours ago, Animefan8888 said:

    I'm not sure if this still works, but you might be able to cast the ILightReader to a World

     

  3. 2 hours ago, DrunkBlood said:

    How do I disable features via my Mod Config the proper way?

    I tried only registering them when my Config says but that had problems with ModConfigEvent firing late and other default values not being set.

    Well you always register every registry entry. You then use the config settings to prevent or allow the attainment of the Item/Block/Enchantment.

  4. 27 minutes ago, Jipthechip said:

    My BlockState became too complicated for the values I wanted to feed into my IBlockColor#getColor() implementation.

     

    Is there any alternative to getting values from the BlockState, or will I have to use a TER/TESR?

    I'm not sure if this still works, but you might be able to cast the ILightReader to a World(do an instanceof check it can be null). Then if it is use World::getTileEntity and store your colors in the TileEntity.

  5. ·

    Edited by Animefan8888

    3 hours ago, TheBigCraftGuy said:

    entity.goalSelector.removeGoal(goal);

    It should be goal.getGoal()

     

    Also you cannot iterate and remove an entry. You will get a ConcurrentModificationException. Use an iterator.

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.