pala M-hunter-2: infernal knocker (knockback wither x3)
This commit is contained in:
@@ -135,6 +135,10 @@ public final class PalaItems {
|
||||
// (256 utilisations, craft 1 marteau pala + 2 obsidiennes + 6 blocs titane, shapeless
|
||||
// ECART positions). Usage ames/spawners : M-spawner (TODO). Sans gate craft (ECART).
|
||||
public static final Item CAVE_HAMMER = register("cave_hammer", id -> new Item(new Item.Properties().setId(id).stacksTo(1).durability(256)));
|
||||
// M-hunter-2 (wiki niv.9) : infernal knocker — tenu en main, coups sur wither =
|
||||
// knockback amplifie (sans degats propres, ECART chiffres). Sans craft/durabilite
|
||||
// (wiki muet, ECART).
|
||||
public static final Item INFERNAL_KNOCKER = register("infernal_knocker", id -> new Item(new Item.Properties().setId(id).stacksTo(1)));
|
||||
// M-gadget-8 (wiki ID 5023/5029) : cagoule (cosmetique, UNBREAKABLE) + masque de
|
||||
// garde (stats fer). Sans craft (ECART lucky).
|
||||
public static final Item BALACLAVA = register("balaclava", id -> new Item(new Item.Properties().setId(id).durability(1).humanoidArmor(PalaArmorMaterials.BALACLAVA, ArmorType.HELMET).component(DataComponents.UNBREAKABLE, Unit.INSTANCE)));
|
||||
|
||||
@@ -82,6 +82,7 @@ public final class PalaTabs {
|
||||
output.accept(PalaItems.LIGHTNING_POTION);
|
||||
output.accept(PalaItems.MAGMA_AMULET);
|
||||
output.accept(PalaItems.CAVE_HAMMER);
|
||||
output.accept(PalaItems.INFERNAL_KNOCKER);
|
||||
output.accept(PalaItems.CANDY);
|
||||
output.accept(PalaItems.CANDY_BLUE);
|
||||
output.accept(PalaItems.CANDY_GREEN);
|
||||
|
||||
@@ -92,6 +92,15 @@ public final class PalaJobEvents {
|
||||
if (killer instanceof ServerPlayer attacker) {
|
||||
xpStealer(attacker, entity);
|
||||
}
|
||||
// M-hunter-2 (wiki niv.9) : infernal knocker — knockback amplifie sur wither
|
||||
// quand tenu en main (x3 direction du coup, sans degats propres).
|
||||
if (killer instanceof ServerPlayer knocker
|
||||
&& knocker.getMainHandItem().is(fr.surviepote.pala.PalaItems.INFERNAL_KNOCKER)
|
||||
&& entity.getType() == net.minecraft.world.entity.EntityTypes.WITHER) {
|
||||
net.minecraft.world.phys.Vec3 push = entity.position()
|
||||
.subtract(knocker.position()).normalize().scale(3.0);
|
||||
entity.push(push.x, 0.5, push.z);
|
||||
}
|
||||
if (entity instanceof ServerPlayer victim
|
||||
&& source.is(net.minecraft.world.damagesource.DamageTypes.LIGHTNING_BOLT)) {
|
||||
net.minecraft.world.item.ItemStack head =
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "pala:item/infernal_knocker"
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@
|
||||
"item.pala.amethyst_mixed_coal": "Amethyst Mixed Coal",
|
||||
"item.pala.amethyst_stick": "Amethyst Stick",
|
||||
"item.pala.compressed_amethyst": "Compressed Amethyst",
|
||||
"item.pala.infernal_knocker": "Infernal Knocker",
|
||||
"item.pala.cave_hammer": "Marteau des cavernes",
|
||||
"item.pala.magma_amulet": "Amulette de feu",
|
||||
"enchantment.pala.experience_bottler": "Experience Bottler",
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/handheld",
|
||||
"textures": {
|
||||
"layer0": "pala:item/infernal_knocker"
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 205 B |
Reference in New Issue
Block a user