Compatibility
Minecraft: Java Edition
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
A simple mod aimed at adding Technical Machine (TM) items to the Cobblemon mod. It adds one item, with the ID of timstms:tm
, which has one data component on it by the ID of timstms:move_name
.
Obtaining a TM
Commands
In order to obtain a TM via commands, you can modify the following command:
/give timinc timstms:tm[timstms:move_name="tackle"]
You can change the timinc
portion to the username of the user you're giving the item to, or any player selector offered by Minecraft. You can change the tackle
portion to the name of the move you're adding to the TM.
Crafting Recipes
In order to obtain a TM via a Crafting Table crafting recipe, you can modify the following example:
{
"type": "minecraft:crafting_shaped",
"pattern": [
"AAA",
"A A",
"AAA"
],
"key": {
"A": {
"item": "minecraft:stick"
}
},
"result": {
"id": "timstms:tm",
"components": {
"timstms:move_name": "tackle"
}
}
}
You can change the tackle
portion to the name of the move you're adding to the TM. You can change the recipe to whatever you'd like, the result is the part I'm showing off.
Loot Tables
In order to obtain a TM via a loot table, you can modify the following example and add it to your :
{
"type": "minecraft:item",
"name": "timstms:tm",
"weight": 5,
"functions": [
{
"function": "minecraft:set_components",
"components": {
"timstms:move_name": "tackle"
}
}
]
}
Using a TM
In order to use a TM, simply interact (right-click) with it in hand on one of your Pokemon who can learn the move via TM. If it has space in its current move set, it will be added to the current move set at the end, if not, it will be added to the learned ("benched") moves.