Hello everyone,
I am working on a Skript plugin and I need some assistance. I am trying to create a command /box item <type> <level> <amount> <name> <material>, which generates items with enchantments and custom names.
Here’s what I need the command to do:
The command should also assign enchantments like Sharpness, Efficiency, or Protection to the item and assign different enchantment levels based on the amount. The items should be added to the player's inventory with custom names that include stars (☆1, ☆2, etc.).
Unfortunately, I am having trouble with a few parts, such as creating the items correctly, adding enchantments, and handling the gradient text in the item names.
Could someone help me with this or point out what I am doing wrong?
Thank you in advance!
I am working on a Skript plugin and I need some assistance. I am trying to create a command /box item <type> <level> <amount> <name> <material>, which generates items with enchantments and custom names.
Here’s what I need the command to do:
- <type> can be: sword, axe, pickaxe, helmet, chestplate, leggings, boots.
- <level> refers to the enchantment level (e.g., sharpness 2 for a sword, efficiency 2 for a pickaxe, etc.).
- <amount> specifies how many items with different enchantment levels will be generated (e.g., if level is 3 and amount is 4, the player should get 4 items with protection 3, protection 4, protection 5, protection 6).
- <name> is the name of the item, which will be displayed in the player's inventory.
- <material> is the type of material for the item (e.g., diamond, iron, wood).
The command should also assign enchantments like Sharpness, Efficiency, or Protection to the item and assign different enchantment levels based on the amount. The items should be added to the player's inventory with custom names that include stars (☆1, ☆2, etc.).
Unfortunately, I am having trouble with a few parts, such as creating the items correctly, adding enchantments, and handling the gradient text in the item names.
Could someone help me with this or point out what I am doing wrong?
Thank you in advance!