Attributes on items

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Nov 12, 2023
2
0
1
I was just wondering why this doesn't throw an error but it doesn't work when executed
Code:
set {_attackBonus} to line 3 of lore of {_forgegem}
set line 1 of lore of {_forgesword} to "&cAttack: %{_attackBonus}%"
set {_intAttackBonus} to {_attackBonus} parsed as number
set {_forgesword}'s attack damage attribute to {_intAttackBonus}
remove {_forgeswordOld} from player
give player {_forgesword}
 
as for why it doesn't throw an error, no idea, but there is no way to set an items attribute modifiers on the docs that i can see, you would need to edit the item nbt using skbee and add the attribute modifier yourself
 
as for why it doesn't throw an error, no idea, but there is no way to set an items attribute modifiers on the docs that i can see, you would need to edit the item nbt using skbee and add the attribute modifier yourself
how would i do that? sorry to ask but every way i can find throws an error