Compatibility
Minecraft: Java Edition
1.21.1–1.21.5
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Creators
Details
Licensed MIT
Published 2 weeks ago
Updated 3 weeks ago
PortalTransform Recipe
- Portal Transmutation - When players hurl items into portals, they undergo elemental conversion with possible byproducts. Full datapack extensibility! Design custom transmutation chains through JSON configurations.
This JSON file should be placed in the following directory: /data
/fantasytools
/recipe
/
{
"type": "fantasytools:portal_transform",
"input": {
"item": "minecraft:diamond",
},
"result": {
"id": "minecraft:emerald"
},
// Optional: Dimension constraints
// "current_dimension": "minecraft:overworld",
// "target_dimension": "minecraft:the_nether",
"byproducts": [
{
"byproduct": { "id": "minecraft:lapis_lazuli" },
"chance": 0.9,
"counts": {
"min": 1,
"max": 3
}
}
]
}
ServerEvents.recipes((event) => {
event.recipes.fantasytools.portal_transform(
'minecraft:paper',
'minecraft:iron_ingot',
// Optional: Dimension constraints
'the_nether',
'overworld',
[
Byproduct.of('minecraft:redstone', 0.9, 1, 3)
]
).id("paper_to_iron");
})