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.

Skullblade

Members
  • Joined

  • Last visited

Everything posted by Skullblade

  1. I took a swing at both solutions, but it wasn't working for me. Could you give me an example of how you would implement those suggestions?
  2. I've been stuck on this for three days now, and I can't find any answer online that makes sense. I'm creating a sword that, among other things, sets mobs and players on fire upon damage. I wrote the following code, and it doesn't seem to apply to the sword. @SubscribeEvent public static void setOnFire(final LivingDamageEvent event) { if (event.getSource().equals(ItemInit.EMBERCLEAVE)) { event.getEntity().setSecondsOnFire(10); } } "EMBERCLEAVE" is what the sword is registered as. I have tried removing the setSecondsOnFire code from the If statement and having it run regardless, and it works (it just means that any source of damage sets things on fire for 10 seconds, including its own fire ticks, leading to infinite seconds on fire). When hovering above equals, my IDE says "'equals' between objects of inconvertible types 'DamageSource' and 'RegistryObject<SwordItem>'." I'm guessing that this is the issue, and the event can't figure out how to convert the values, but I don't know how to fix this issue.
  3. I'm new to creating mods, and the posts on here really have been helpful, but I believe this problem is specific to me. Using IntelliJ, I attempted to open a Minecraft client with my mod. The console gave me confusing error codes, and so I'm providing my debug.log to see if anyone can help. Assistance is appreciated. Thank you. debug.log

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.