Basically, it's just a function that allows you to input 4 things and will return an item based on that.
The First Argument - Item (String)
The first argument is where you put your item, this is in a string format and is converted into an item. This is used to make it easier to make a command from this function.
The Second Argument - Name (String)
The second argument is where you put the name of the item. This set the name of the item that you are making. The character "_" is used as a space incase if you are making a command from this function.
The Third Argument - Lore (String)
The third argument is the lore of the item. This can be as long as you want it to be. The character "_" is used as a space and the character "|" is used to create a new line.
The Fourth Argument - Glow (Boolean)
The final argument is if you want the item to glow or not. Setting it to true will cause the item to glow, and putting false will cause the opposite.
Examples:
Both were created using the function.
Code:
The First Argument - Item (String)
The first argument is where you put your item, this is in a string format and is converted into an item. This is used to make it easier to make a command from this function.
The Second Argument - Name (String)
The second argument is where you put the name of the item. This set the name of the item that you are making. The character "_" is used as a space incase if you are making a command from this function.
The Third Argument - Lore (String)
The third argument is the lore of the item. This can be as long as you want it to be. The character "_" is used as a space and the character "|" is used to create a new line.
The Fourth Argument - Glow (Boolean)
The final argument is if you want the item to glow or not. Setting it to true will cause the item to glow, and putting false will cause the opposite.
Examples:
Both were created using the function.
Code:
Code:
function createItem(i: string, n: string, lore: string, g: boolean) :: item:
replace all "_" with " " in {_i}
if {_g} is true:
set {_item} to glowing {_i} parsed as item
else:
set {_item} to {_i} parsed as item
replace all "_" with " " in {_n}
set name of {_item} to colored {_n}
set {_l} to colored {_lore}
replace all "_" with " " in {_l}
replace all "|" with "%nl%" in {_l}
set lore of {_item} to {_l}
return {_item}