Posted February 17, 20232 yr Hi all. Sorry for another topic (I'm a little dumb). I want to spawn the vanilla BLOCK effect ( ParticleTypes ), but 'addparticle' requires ParticleOptions. @Override public InteractionResult useOn(UseOnContext pContext) { Level level = pContext.getLevel(); BlockPos positionClicked = pContext.getClickedPos(); level.addParticle(ParticleTypes.BLOCK, // It's moment positionClicked.getX() + 0.5d, positionClicked.getY() + 0.5d, positionClicked.getZ() + 0.5d, 0.15d, 0.15d, 0.15d); ModMessages.sendToServer(new OneSmallStickC2SPacket()); return super.useOn(pContext); }
February 18, 20232 yr Then supply a ParticleOptions? Specifically the type wanted by the particle type.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.