Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MOW:Making New Items

From StateCraft Wiki

Below is an example of a 'crate packer' recipe, it takes an input of raw iron, and outputs iron ingots have a wait period of 2 seconds (2x 20 tick delays). This example recipe also requires a permission to craft, and has multiple stages to it!

    # ID of the recipe          
    ingot_smasher:
      # The crafting table used for this recipe
      base: "nexo:crate_packer"
      # The required item(s) for this recipe
      tool:
        # 'mc:' for mc items, 'nexo:' for nexo items! 
        # "mc:raw_iron"
        # "nexo:grape"
        - "mc:raw_iron"
      transformation:
        stages:
        # Your recipe can have multiple stages
          1:
            # Deletes the crafting table on use if true
            remove: false
            # Delay in ticks until the craft goes through
            delay: 20
            # Whether to batch items processed by reduce_item_inventory option (defaults true)
            batch_item_inventory: true
            # Number to reduce items in inventory by
            reduce_item_inventory: 0
            # Number to reduce items in hand by
            reduce_item_hand: 0
            # Permission required to craft the item
            permission: "recipes.blacksmith.iron"
            sounds:
              - sound: 'minecraft:entity.experience_orb.pickup'
                volume: 1.0
                pitch: 1.5
                delay: 15
              - sound: 'minecraft:block.anvil.use'
                volume: 1.0
                pitch: 1.69
                delay: 0
          2:
            delay: 20
            reduce_item_inventory: 1
            # Items to drop when the craft is finished
            # "item_id;amount;chance"
            # "mc:glass;1;100" is 100% chance to give 1 glass
            drops:
              - "mc:iron_ingot;1;100"