parent
a9a51d2577
commit
c58d14948e
@ -0,0 +1,23 @@
|
||||
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(6)
|
||||
.saturation(1.2f)
|
||||
.effect(new EffectInstance(Effects.NAUSEA, 300, 1), 1)
|
||||
.effect(new EffectInstance(Effects.POISON, 300, 2), 1)
|
||||
.effect(new EffectInstance(Effects.HUNGER, 300, 1), 0.8f)
|
||||
.build())
|
||||
);
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "tutorial:items/poison_apple"
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 427 B |
Loading…
Reference in new issue