pala M-hunter-4: knocker 4 degats + canne peche paladium

This commit is contained in:
Anaïs Saraiva
2026-10-19 08:19:08 +02:00
parent d24d863a64
commit 4da821104d
12 changed files with 68 additions and 3 deletions
@@ -137,7 +137,22 @@ public final class PalaItems {
// 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-hunter-4 (wiki niv.9 VERIFIE : 4 degats + knockback, non enchantable) : Item
// simple (sans composant enchantable -> non enchantable) + attribut +3 degats
// mainhand (1 base + 3 = 4 EXACT) ; le push x3 wither reste dans PalaJobEvents.
// M-hunter-4 (wiki niv.4 VERIFIE : craft 2 sticks pala + 1 lingot pala + 2 ficelles,
// "peche plus vite" NON QUANTIFIE -> ECART : durabilite 384 (6x vanilla, valeur
// gameplay), sans bonus invente ; gate craft chasseur 4 non applicable (pas de
// gates craft). Textures legacy cast/uncast.
public static final Item PALADIUM_FISHING_ROD = register("paladium_fishing_rod", id -> new net.minecraft.world.item.FishingRodItem(new Item.Properties().setId(id).stacksTo(1).durability(384)));
public static final Item INFERNAL_KNOCKER = register("infernal_knocker", id -> new Item(new Item.Properties().setId(id).stacksTo(1).component(DataComponents.ATTRIBUTE_MODIFIERS,
net.minecraft.world.item.component.ItemAttributeModifiers.builder().add(
net.minecraft.world.entity.ai.attributes.Attributes.ATTACK_DAMAGE,
new net.minecraft.world.entity.ai.attributes.AttributeModifier(
net.minecraft.resources.Identifier.fromNamespaceAndPath("pala", "infernal_knocker"),
3.0,
net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation.ADD_VALUE),
net.minecraft.world.entity.EquipmentSlotGroup.MAINHAND).build())));
// M-spawner-1 (wiki pillage ID 4795) : chercheur de spawners — scan 9 chunks,
// message presence + coords du plus proche, gate chasseur 10. Durabilite 140
// minutes wiki => 140 usages (1/scan, ECART). Sans craft (image non OCR, ECART).
@@ -83,6 +83,7 @@ public final class PalaTabs {
output.accept(PalaItems.MAGMA_AMULET);
output.accept(PalaItems.CAVE_HAMMER);
output.accept(PalaItems.INFERNAL_KNOCKER);
output.accept(PalaItems.PALADIUM_FISHING_ROD);
output.accept(PalaItems.SPAWNER_FINDER);
output.accept(PalaItems.DYNAMITE);
output.accept(PalaItems.NINJA_DYNAMITE);
@@ -92,8 +92,8 @@ 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).
// M-hunter-2/4 (wiki niv.9) : infernal knocker — knockback amplifie sur wither
// quand tenu en main (x3 direction du coup ; 4 degats via attribut M-hunter-4).
if (killer instanceof ServerPlayer knocker
&& knocker.getMainHandItem().is(fr.surviepote.pala.PalaItems.INFERNAL_KNOCKER)
&& entity.getType() == net.minecraft.world.entity.EntityTypes.WITHER) {
@@ -0,0 +1,6 @@
{
"model": {
"type": "minecraft:model",
"model": "pala:item/paladium_fishing_rod"
}
}
@@ -9,6 +9,7 @@
"item.pala.big_dynamite": "Big Dynamite",
"item.pala.spawner_finder": "Chercheur de spawners",
"item.pala.infernal_knocker": "Infernal Knocker",
"item.pala.paladium_fishing_rod": "Paladium Fishing Rod",
"item.pala.cave_hammer": "Marteau des cavernes",
"item.pala.magma_amulet": "Amulette de feu",
"enchantment.pala.experience_bottler": "Experience Bottler",
@@ -0,0 +1,14 @@
{
"parent": "minecraft:item/handheld_rod",
"textures": {
"layer0": "pala:item/paladium_fishing_rod"
},
"overrides": [
{
"predicate": {
"minecraft:cast": 1.0
},
"model": "pala:item/paladium_fishing_rod_cast"
}
]
}
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/handheld_rod",
"textures": {
"layer0": "pala:item/paladium_fishing_rod_cast"
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

@@ -0,0 +1,15 @@
{
"type": "minecraft:crafting_shapeless",
"category": "equipment",
"ingredients": [
"pala:paladium_stick",
"pala:paladium_stick",
"pala:paladium_ingot",
"minecraft:string",
"minecraft:string"
],
"result": {
"id": "pala:paladium_fishing_rod",
"count": 1
}
}