BlockBreak mechanic consuming item durability
Closed
BlockBreak mechanic consuming item durability
Summary
Describe the bug encountered in detail.
Steps to reproduce
Provide a full set of steps used to reproduce the bug, including links to SEPARATE Pastebin pastes for each relevant configuration file.
Current behavior A pickaxe created with MythicMobs item system never lose durability.
Intended correct behavior The pickaxe must lose durability for using it
Server log file
https://paste.denizenscript.com/View/87423
Proposed fixes The bug occurs with the usage of
- breakblock{forcesync=true;doEffect=true;doDrops=true;useTool=true}
BlockBreak: TargetConditions:
- blocktype{type=AIR,BEDROCK,CAVE_AIR,OBSIDIAN,CRYING_OBSIDIAN} false Skills:
- breakblock{forcesync=true;doEffect=true;doDrops=true;useTool=true}
MythicMobs Item
PicoTNT: Id: WOOD_PICKAXE Display: '&6Pico de &4T&fN&4T' Options: Unbreakable: false Skills:
- skill{skill=PicoTNT} @targetlocation ~onBlockBreak
- skill{skill=EfectoExplosivo} @targetlocation ~onBlockBreak
- ConsumeUsedDurability @Trigger ~onSwing
Skills
PicoTNT: Skills:
- skill{s=BlockBreak} @BlocksInRadius{r=1;shape=cube}
EfectoExplosivo: Cooldown: 0.5 Skills:
- effect:explosion
BlockBreak: TargetConditions:
- blocktype{type=AIR,BEDROCK,CAVE_AIR,OBSIDIAN,CRYING_OBSIDIAN} false Skills:
- breakblock{forcesync=true;doEffect=true;doDrops=true;useTool=true}
This pickaxe, no matter the material, is inmortal, it only starts losing durability if a block included in the Condition is mined. for example, I added STONE in the
type=AIR,BEDROCK,CAVE_AIR,OBSIDIAN,CRYING_OBSIDIAN,STONE and the pickaxe loses durability but if I mine anything else the pickaxe will never lose durability.
This is the vid with STONE excluded.
added Enhancement label
added Awaiting user response Bug Plugin Out of Date labels and removed Enhancement label