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.

ModCrafting

Members
  • Joined

  • Last visited

Everything posted by ModCrafting

  1. Ok now it crashed because entityrenderer is null, I expected it because I don't know what files I could need to make a model for a lightning, or how to grab vanilla one.
  2. Oh wow ok, but sending null to that last one was causing me a crash 😧 thanks a lot i'll test all of that
  3. Btw, what should I be sending to EntityType.Builder#build(String pId), don't know what that ID is for. This is the link to the repo: https://github.com/AylanJ123/lightning-mobs
  4. I'm starting with modding and I'm having a hard time spawning a lightning. Don't know if I'm doing something wrong here. I tried with a class extending from LightningBolt first, but can't spawn a vanilla one neither. public static void SpawnLightning(Level level) { level.addFreshEntity(EntityType.LIGHTNING_BOLT.create(level)); //level.addFreshEntity(Registry.UNSTABLE_LIGHTNING.get().create(level)); } Is this supposed to be done differently? Also, my console is getting spammed with [Render thread/ERROR] [minecraft/Util]: Entity lightningmobs:unstable_lightning has no attributes Dunno why or how to fix it. This is how I am registering this. public static final RegistryObject<EntityType<UnstableLightning>> UNSTABLE_LIGHTNING = ENTITIES.register( "unstable_lightning", (Supplier<? extends EntityType<UnstableLightning>>) () -> { EntityType.Builder<UnstableLightning> builder = EntityType.Builder.of(UnstableLightning::new, MobCategory.AMBIENT); EntityType<UnstableLightning> type = builder.build(new ResourceLocation(LMobs.MODID + ":unstable_lightning").toString()); return type; } );

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.