This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In a useOn event --------------------------------------- | |
if (level instanceof ServerLevel serverLevel) { | |
// No dice | |
ItemParticleOption options = new ItemParticleOption(SEED_BAG_PLANT_PARTICLE.get(), seed.copy()); | |
serverLevel.sendParticles(options, workingPos.getX(), workingPos.getY() + 1, workingPos.getZ(), 1, 0, 0, 0, 0); | |
// Actually renders | |
serverLevel.sendParticles(new ItemParticleOption(ParticleTypes.ITEM, seed.copy()), workingPos.getX(), workingPos.getY() + 1, workingPos.getZ(), 1, 0, 0, 0, 0); | |
} |