Loading...
Beta Modpages Unclaimed

Trading station

Basic items to item trading machines

0 Likes
2144 Downloads
Created by oierbravo_mc

Description

Trading Station

  • Item trading machine.
  • Made for modpacks. It doesn't add any recipe.

Dedicated wiki

1.21.1-1.x Version Requires Mechanicals Lib

Features

  • Basic station with no power requirements.
  • Powered station with RF power requirements.
  • Custom Trading recipe
  • Custom recipe requirements per recipe.
  • Indestructible variant for each station.
  • Configurable consumption & progress.
  • Mechanical (Create Addon) station available with companion mod.Link

Trading recipe

  • "type": "trading_station:trading"
  • result:Output item. Item components allowed.
  • ingredients: Required items.
  • processingTime: Required time in ticks.
  • recipeRequirements: Custom recipe requirements. WIKI

Example (One ingredient)

{
    "type": "trading_station:trading",
    "result": {
        "id": "minecraft:diamond",
        "count": 5
    },
    "ingredients": [
        {
            "ingredient": {
                "item": "minecraft:emerald"
            },
            "count": 5
        }
    ]
}

Example (Two ingredients)

{
  "type": "trading_station:trading",
  "result": {
    "id": "minecraft:gold_block",
    "count": 5
  },
  "ingredients": [
    {
      "ingredient": {
        "item": "minecraft:oak_log"
      },
      "count": 5
    },
    {
      "ingredient": {
        "item": "minecraft:birch_log"
      },
      "count": 10
    }
  ],
  "processingTime": 250
}

Example (Enchanted book)

{
    "type": "trading_station:trading",
    "result": {
        "id": "minecraft:enchanted_book",
        "count": 1,
        "components": {
            "minecraft:stored_enchantments": {
                "levels": {
                    "minecraft:density": 3
                }
            }
        }
    },
    "ingredients": [
        {
            "ingredient": {
                "item": "minecraft:diamond"
            },
            "count": 5
        }
    ],
    "processingTime": 100
}

Example (Machine Requirement)

{
    "type": "trading_station:trading",
    "result": {
        "id": "minecraft:emerald_block",
        "count": 1
    },
    "ingredients": [
        {
            "ingredient": {
                "item": "minecraft:diamond"
            },
            "count": 5
        }
    ],
    "processingTime": 100,
    "requirements": [
        {
            "value": [
                "powered",
                "mechanical"
            ],
            "type": "trading_station:machine_id"
        }
    ]
}

KubeJS

Some examples

// Processing time
event.recipes.trading_station.trading(Item.of('minecraft:gold_block', 5),[Item.of("5x minecraft:oak_log"),Item.of("10x minecraft:birch_log")]).processingTime(250);

//Enchanted book result
event.recipes.trading_station.trading(Item.of('minecraft:enchanted_book[stored_enchantments={levels:{"minecraft:unbreaking":3}}]', 1),[Item.of("minecraft:diamond", 5)]).processingTime(100);

//With machine requirement
event.recipes.trading_station.trading(Item.of('minecraft:emerald_block'),[Item.of("5x minecraft:diamond")]).processingTime(100).requirements(MachineId.of(["powered","mechanical"]));

Machine ID (binding)

MachineId.of(["powered","mechanical"])


AD Become Premium to remove Ads!

What means Verified?

  • Compatibility: The mod should be compatible with the latest version of Minecraft and be clearly labeled with its supported versions.
  • Functionality: The mod should work as advertised and not cause any game-breaking bugs or crashes.
  • Security: The mod should not contain any malicious code or attempts to steal personal information.
  • Performance: The mod should not cause a significant decrease in the game's performance, such as by causing lag or reducing frame rates.
  • Originality: The mod should be original and not a copy of someone else's work.
  • Up-to-date: The mod should be regularly updated to fix bugs, improve performance, and maintain compatibility with the latest version of Minecraft.
  • Support: The mod should have an active developer who provides support and troubleshooting assistance to users.
  • License: The mod should be released under a clear and open source license that allows others to use, modify, and redistribute the code.
  • Documentation: The mod should come with clear and detailed documentation on how to install and use it.

AD Become Premium to remove Ads!

How to Install

1

Download Forge & Java

Download Forge from the offical Site or here. If you dont have Java installed then install it now from here. After Downloading Forge you can run the file with Java.

2

Prepare

Lounch Minecraft and select your Forge istallation as Version this will create a Folder called Mods.

3

Add Mods

Type Win+R and type %appdata% and open the .minecraft Folder. There will you find your Folder called Mods. Place all Mods you want to play in this Folder

4

Enjoy

You are now Ready. Re-start your Game and start Playing.

More Mods like this

Mouse Tweaks

Enhances inventory management by adding various functions to the mouse buttons.

Bookshelf

An open source library for other mods!

Comforts (Fabric/Forge/Quilt)

Adds sleeping bags and hammocks for, respectively, portability and turning day to night, without setting new spawns. Comes in 16 different colors!

BetterFps

Performance Improvements

Supplementaries

Vanilla+ additions: Jars, signposts, faucets, weather vanes spring launchers, sconces, planters, lights, decoration and automation

RandomPatches (Forge)

A bunch of miscellaneous patches for Minecraft, including configurable connection timeouts, player speed limits and other bug fixes and improvements.

FancyMenu

Customize Minecraft's menus with ease!

Phosphor (Forge)

Performance improvements for Minecraft's lighting engine

Snad

Finally, sand that actually makes sugarcane grow faster.