Skip to content

GitLab

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

Closed
Open
Created Jan 05, 2024 by Ayphil@Ayphil

attribute mechanic not working as intended ?

Summary

So, whenever I use the attribute mechanic to add attack speed, for example, if I disconnect with the buff to my attack speed, it stays forever.

Steps to reproduce

1- Create an enchantement that uses the attribute mechanic, like so :

FAST:
  Display: '§9Fast'
  MinLevel: 1
  MaxLevel: 3
  ItemType: WEAPON
  ValidSlots:
  - HAND
  Options:
    ShowInLore: FALSE
    LevelAsPower: FALSE
  Skills:
  - attribute{attribute=GENERIC_ATTACK_SPEED;a='4+0.2*<skill.var.enchant-level>';duration=10} @self ~onTimer:10 

2- Give yourself a sword with the enchant on it.

3- Disconnect while holding it. When you log back, the modified attribute is now the base attribute of the player (I checked with /attribute username minecraft:generic.attack_speed base get)

Edited Jan 05, 2024 by Ayphil
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking