Stacked Items In A Recipe

  • 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.

AgentGamerPro

Member
Sep 27, 2020
11
0
1
17
Im using SkBee to make custom crafting recipes. I want to grab stacked items (like the image shown below) in the crafting table to only make 1 of the item. How would i do this?



2021-10-30_14_18_34.png.51798d75ef47b595bef984ab787fc381.png




My Skript:
Code:
on load:
    
    # Coal Drill Lvl 1
    set {_loc} to location(184.5, 5.5, -252.5, world("Blocks"))
    set {_nbt} to nbt of block at {_loc}
    set {_item} to player head named "&eCoal Drill &8[&71&8]" with nbt "%{_nbt}%"
    set {_previousitem} to {_item}
    register new shaped recipe for {_item} using coal, coal, coal, coal, wooden pickaxe, coal, coal, coal, and coal with id "coal_drill_lvl_1"
    
    # Coal Drill Lvl 2
    set {_loc} to location(185.5, 5.5, -252.5, world("Blocks"))
    set {_nbt} to nbt of block at {_loc}
    set {_item} to player head named "&eCoal Drill &8[&72&8]" with nbt "%{_nbt}%"
    register new shaped recipe for {_item} using coal, coal, coal, coal, {_previousitem}, coal, coal, coal, and coal with id "coal_drill_lvl_2"
    set {_previousitem} to {_item}
 
Status
Not open for further replies.