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.

North_lightning

Members
  • Joined

  • Last visited

  1. I think it's not forge problem, but forge recommends to use adoptium jdk
  2. North_lightning changed their profile photo
  3. Hi! I'm trying to make custom totem of undying, but I don't know how to make its particles, but with different colors. I found 3mptysl's topic, but I didn't understand the solution. Here's my LivingHurtEvent code: @SubscribeEvent public static void owlTotemFunctionality(LivingHurtEvent event) { if ((event.getEntityLiving().getHealth() - event.getAmount()) < 1) { LivingEntity entity = event.getEntityLiving(); if (entity.getOffhandItem().getItem() == ModItems.OWL_TOTEM.get()) { event.setCanceled(true); entity.setHealth(1); entity.removeAllEffects(); int duration = 40 * 20; // 1 sec = 20 ticks int level = 1; entity.addEffect(new MobEffectInstance(MobEffects.REGENERATION, duration, level)); duration = 5 * 20; entity.addEffect(new MobEffectInstance(MobEffects.ABSORPTION, duration, level)); duration = 30 * 20; entity.addEffect(new MobEffectInstance(ModEffects.BLESSING_OF_OWLS.get(), duration)); duration = 40 * 20; entity.addEffect(new MobEffectInstance(MobEffects.FIRE_RESISTANCE, duration)); Level plLevel = entity.level; plLevel.playSound(null, entity.getX(), entity.getY(), entity.getZ(), SoundEvents.TOTEM_USE, SoundSource.PLAYERS, 0.5F, 1F); Minecraft.getInstance().gameRenderer.displayItemActivation(new ItemStack(ModItems.OWL_TOTEM.get())); entity.setItemInHand(InteractionHand.OFF_HAND, ItemStack.EMPTY); } else if (entity.getMainHandItem().getItem() == ModItems.OWL_TOTEM.get()) { event.setCanceled(true); entity.setHealth(1); entity.removeAllEffects(); int duration = 40 * 20; // 1 sec = 20 ticks int level = 1; entity.addEffect(new MobEffectInstance(MobEffects.REGENERATION, duration, level)); duration = 5 * 20; entity.addEffect(new MobEffectInstance(MobEffects.ABSORPTION, duration, level)); duration = 30 * 20; entity.addEffect(new MobEffectInstance(ModEffects.BLESSING_OF_OWLS.get(), duration)); duration = 40 * 20; entity.addEffect(new MobEffectInstance(MobEffects.FIRE_RESISTANCE, duration)); Level plLevel = entity.level; plLevel.playSound(null, entity.getX(), entity.getY(), entity.getZ(), SoundEvents.TOTEM_USE, SoundSource.PLAYERS, 0.5F, 1F); Minecraft.getInstance().gameRenderer.displayItemActivation(new ItemStack(ModItems.OWL_TOTEM.get())); entity.setItemInHand(InteractionHand.MAIN_HAND, ItemStack.EMPTY); } } } Thank you in advance! ๐Ÿ˜€

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.