Topic category: Help with Minecraft modding (Java Edition)
Greetings everyone.
Recently, my friend wrote a command that gives you a sword that can damage and bypass creative mode's invulnerability.
Here's the command: /give @s diamond_sword[damage_type="generic_kill",attribute_modifiers=[{id:"attack_damage",type:"attack_damage",amount:13,operation:"add_multiplied_base",slot:"mainhand",display:{type:"hidden"}}]]
I taking a closer look, this command changes the damage type of the sword into "generic_kill"(which bypasses the creative mode's invulnerability)
I was wondering if I could somehow turn this into a procedure that makes it so that my custom sword possesses the attributes of the command above.
I'll be delighted if you guys can help me.
Thanks.