You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
826 B
25 lines
826 B
package com.technovision.tutorial.items;
|
|
|
|
import com.technovision.tutorial.Tutorial;
|
|
import net.minecraft.item.Food;
|
|
import net.minecraft.item.Item;
|
|
import net.minecraft.potion.EffectInstance;
|
|
import net.minecraft.potion.Effects;
|
|
|
|
public class PoisonApple extends Item {
|
|
|
|
public PoisonApple() {
|
|
super(new Item.Properties()
|
|
.group(Tutorial.TAB)
|
|
.food(new Food.Builder()
|
|
.hunger(4)
|
|
.saturation(1.2f)
|
|
.effect(new EffectInstance(Effects.NAUSEA, 300, 0), 1)
|
|
.effect(new EffectInstance(Effects.POISON, 300, 1), 1)
|
|
.effect(new EffectInstance(Effects.HUNGER, 300, 0), 0.3f)
|
|
.setAlwaysEdible()
|
|
.build())
|
|
);
|
|
}
|
|
}
|