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.

Myarin

Members
  • Joined

  • Last visited

Everything posted by Myarin

  1. Wow, it was easier that I expected! That was so helpful, it works perfectly, thanks again!
  2. Makes sense! So the ghost cloud entity with no values are actually unused client data not syncronized with the server one... Thanks a lot, that was so helpful Still dind't know how to call events from server side but now I kwow where to investigate, thank you!
  3. Hi, I'm a little new on modding. Actually this its my first mod and everything was going fine until I got stuck on this problem. I have a block that when it breaks is replaced and the player get posion and I wanted to spawn an AreaEffectCloud if is breaked with an explosion. So I did that: @Override public void onBlockDestroyedByExplosion(World world, BlockPos pos, Explosion explosion) { replaceRegen(world, pos); EntityAreaEffectCloud cloud = new EntityAreaEffectCloud(world, pos.getX(),pos.getY(),pos.getZ()); cloud.setOwner(explosion.getExplosivePlacedBy()); cloud.setRadius(2.5F); cloud.setRadiusOnUse(-0.5F); cloud.setWaitTime(10); cloud.setDuration(260); cloud.addEffect(new PotionEffect(MobEffects.POISON,800,3)); world.spawnEntity(cloud); } where "replaceRegen" is the function to replace the block and the rest is how I spawn the effect cloud. But for some reason, this code summon 2 clouds and the second one doesn't despawn. This is how it looks a normal cloud: https://i.imgur.com/U0l0kYO.png And this is how it look the one that my code summon https://i.imgur.com/lZ6Islu.png Not really sure if there's 2 clouds or one with 2 hitbox. It looks like 2 diferent entities and the first one despawn. But the second one remains and drop particles on the center, it looks like a bug, only disappears if I go back to menu and load the world again. https://i.imgur.com/jOdK4pU.png Someone know why this happen and how can I fix it? I checked with diferent versions about how to spawn and all are almost the same and the same error happens.

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.