generated from CleanroomMC/ForgeDevEnv
-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
bugSomething isn't workingSomething isn't working
Description
import net.minecraft.init.MobEffects
import net.minecraft.entity.player.EntityPlayer
import net.minecraft.item.ItemStack
import com.hbm.hazard.modifier.HazardModifier
import net.minecraft.util.text.TextFormatting
import net.minecraft.client.resources.I18n
mods.hbm.hazards.register("egg", {
unstable(1.0, (living, stack, level) -> {
if (living.isPotionActive(MobEffects.POISON)) {
living.removePotionEffect(MobEffects.POISON)
stack.setCount(stack.getCount() - 1)
}
}, (entityItem, level) -> { }, (EntityPlayer player, List list, double level, ItemStack stack, List<HazardModifier> modifiers) -> {
list.add("§2§l[Удаляет отравление]")
})
})Problem with list.add("§2§l[Удаляет отравление]"), in minecraft this text turn in:

Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working