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.

NoahKassem

Members
  • Joined

  • Last visited

Everything posted by NoahKassem

  1. I'm creating a Curio mod and one of those items gives the player Freezing immunity, It works fine with the vanilla Minecraft freezing effect i trayed to to also make it work with Ice and Fire: ice Dragon freezing effect, and the method I was to change the nbtTag the mod add to the player but nothing that i know of works
  2. thank you. I appreciate your effort to help me it is working. thanks again ..
  3. i couldn't find the event PotionAddedEvent .. im modding for MC 1.20.1
  4. Hello my fellow Modders this is the event code it's working fine with every mob and attack except witches it didn't trigger when witches attacked the player .. can you help me with this problem ... this is the code I'm new to coding in general @SubscribeEvent(priority = EventPriority.HIGH) public void AttackEvent(LivingAttackEvent event) { if (!event.getEntity().getCommandSenderWorld().isClientSide) { if (!(event.getEntity() instanceof ServerPlayer player)) return; ItemStack ring = Utils.getFirstCurio(ModItemGod.divinering.get(), player); Entity attacker2 = event.getSource().getEntity(); Entity attacker = event.getSource().getDirectEntity(); if (ring != null && attacker instanceof SummonedZombie summonedzombie || attacker instanceof SummonedSkeleton summoneskeleton || attacker instanceof SummonedVex summonedvex || attacker instanceof Vex vex ) { ((Monster) attacker).knockback(10,2 ,10); attacker.kill(); event.setCanceled(true); } else if (ring != null && attacker2 instanceof SummonedZombie summonedzombie || attacker2 instanceof SummonedSkeleton summoneskeleton || attacker2 instanceof SummonedVex summonedvex || attacker2 instanceof Vex vex) { ((Monster) attacker2).knockback(10,2 ,10); attacker2.kill(); event.setCanceled(true); } else if (ring != null) { ((LivingEntity) attacker2).addEffect((new MobEffectInstance(MobEffects.BLINDNESS, 200, 2, false, false))); ((LivingEntity) attacker2).setHealth(((LivingEntity) attacker2).getHealth() / 2); ((LivingEntity) attacker2).knockback(10, 3, 10); event.setCanceled(true); } } }

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.