Started by
SnailsAttack
on
Topic category: Help with MCreator software
if (entity instanceof LivingEntity _entity && !_entity.level().isClientSide())
_entity.addEffect(new MobEffectInstance(MobEffects.REGENERATION, 60, 1));
Is there a way to substitute the potion registry names (e.g. "REGENERATION") for a string variable using custom code snippets? I can't seem to figure out a way to do it myself.
I found an answer to a similar problem.
You can put this in a custom code snippet to retrieve a string of all an entity's active effects.