Bug Closed · Resolved

BlockBreak mechanic consuming item durability

#2174 opened by Unknown 5 years ago

Unknownreported this bug

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. [Legacy attachment omitted]

This is the vid with STONE excluded. [Legacy attachment omitted]

Unknowncommented

Closing this due to inactivity and major version releases since. If this issue is still relevant, please re-open the issue with a modern-version server log, example configurations being used to test, and step-by-step info to reproduce the issue.

Sign in to join the discussion.