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.

Ayamun

Members
  • Joined

  • Last visited

  1. I want to switch to parchment but this error keeps showing up when building.
  2. public class Haki { public static final DeferredRegister<Attribute> REGISTRY = DeferredRegister.create(ForgeRegistries.Keys.ATTRIBUTES, Hakimod.MODID); public static final RegistryObject<Attribute> ARMAMENT = REGISTRY.register("armament_haki", ()-> new RangedAttribute("attribute.hakimod.armament", 0, 0, 200)); public static final RegistryObject<Attribute> OBSERVATION = REGISTRY.register("observation_haki", () -> new RangedAttribute("attribute.hakimod.observation", 0, 0, 200)); public static final RegistryObject<Attribute> CONQUEROR = REGISTRY.register("conqueror_haki", ()-> new RangedAttribute("attribute.hakimod.conqueror", 0, 0, 200)); @SubscribeEvent public static void regAttr(EntityAttributeCreationEvent e){ e.put(EntityType.PLAYER, AttributeSupplier.builder().add(ARMAMENT.get(), 0).build()); e.put(EntityType.PLAYER, AttributeSupplier.builder().add(OBSERVATION.get(), 0).build()); e.put(EntityType.PLAYER, AttributeSupplier.builder().add(CONQUEROR.get(), 0).build()); } } This is my class with the Attributes. And this is how I add them into the bus. modEventBus.addListener(Haki::regAttr); modEventBus.register(Haki.REGISTRY); I get this error: net.minecraftforge.fml.ModLoadingException: hakimod (hakimod) encountered an error during the common_setup event phase §7java.lang.NullPointerException: Registry Object not present: hakimod:armament_haki

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.