Custom Items and custom crafting recipes

  • 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 comminuty!

    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!

Status
Not open for further replies.

LuckyMunch

New Member
Feb 24, 2021
6
0
1
23
I was wondering, how can I create a custom item and then creating a crafting recipe for that custom item?
 
Code:
on load:
    register new shaped/shapeless recipe for <number of item> <item> named "<name of resulting recipe>" with lore "<lore (optional)>" using <top-left slot>, <top-middle slot>, <top-right slot>, <middle-left slot>, <middle-middle slot>, <middle-right slot>, <bottom-left slot>, <bottom-middle slot>, <bottom-right slot>

To use the above code, you must have the Skript addon: skQuery

Change the different <top-left slots> etc. to the items needed to craft. Shapeless means that player's won't have to place items in a SPECIFIC spot to craft the custom item. Shaped means they WILL have to place materials in a specific formation to craft the custom item.

Here's a good video explaining it better:
[doublepost=1619313807,1619312800][/doublepost]You'd have to code what you want your custom item to do. But here's a kickstart:

Code:
on right click holding a fire charge:
    if the event-item's name = "&6Fireball &7(Right Click)":
        shoot a fireball from player at target-block
 
  • Like
Reactions: Epo___
Status
Not open for further replies.