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.

PremiumRush

Members
  • Joined

  • Last visited

  1. Hey! I know it has been almost a year but I have a question about this, maybe you can give me a hint... I also added a DamageType almost exactly like you did and also added the .json file in the data folder for my mod. However, I find no way to interface with/use my added DamageType whatsoever... From what I understand, private static ResourceKey<DamageType> register(String name) { return ResourceKey.create(Registries.DAMAGE_TYPE, new ResourceLocation(Mod.MODID, name)); } adds the desired DamageType to the DAMAGE_TYPE registry. Any class that uses RegistryObjects of this registry should now also "see" the new custom DamageType. In my case, that would be the LivingEntity class. It references the Entity and finally the Level class, which uses the registry via: this.registryAccess = pRegistryAccess; this.damageSources = new DamageSources(pRegistryAccess); But sadly, my custom damage type is nowhere to be found if I try to use it as a damageSource().custom_damagetype(). Again, sorry to bother but I don't see how to use my added DamageType in the mod.

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.