Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 141
    • Issues 141
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #513

Closed
Open
Created Aug 16, 2021 by hectozul@hectozul

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.

2021-08-16_13-12-40

This is the vid with STONE excluded.

2021-08-16_13-46-41

Edited Sep 24, 2021 by Ashijin
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking