Skip to content

Commit

Permalink
Port to 1.20.6
Browse files Browse the repository at this point in the history
  • Loading branch information
shermanflima committed Feb 14, 2025
1 parent 249040a commit 0e89e08
Show file tree
Hide file tree
Showing 48 changed files with 139 additions and 59 deletions.
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ parchment_mappings_version=2024.06.16
# Environment Properties
# You can find the latest versions here: https://projects.neoforged.net/neoforged/neoforge
# The Minecraft version must agree with the Neo version to get a valid artifact
minecraft_version=1.21
minecraft_version=1.20.6
# The Minecraft version range can use any release version of Minecraft as bounds.
# Snapshots, pre-releases, and release candidates are not guaranteed to sort properly
# as they do not follow standard versioning conventions.
minecraft_version_range=[1.21]
minecraft_version_range=[1.20.6]
# The Neo version must agree with the Minecraft version to get a valid artifact
neo_version=21.0.167
neo_version=20.6.125
# The Neo version range can use any version of Neo as bounds
neo_version_range=[21.0.167,)
neo_version_range=[20.6.125,)
# The loader version range can only use the major version of FML as bounds
loader_version_range=[1,)

Expand All @@ -34,7 +34,7 @@ mod_name=Infinity Ores
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=MIT
# The mod version. See https://semver.org/
mod_version=1.21-1.0.1
mod_version=1.20.6-1.0.1
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_obsidian": {
"conditions": {
"items": [
{
"items": "minecraft:obsidian"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "infinityores:tool"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_obsidian"
]
],
"rewards": {
"recipes": [
"infinityores:tool"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
"functions": [
{
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops",
"function": "minecraft:apply_bonus"
"formula": "minecraft:uniform_bonus_count",
"function": "minecraft:apply_bonus",
"parameters": {
"bonusMultiplier": 1
}
}
],
"rolls": 1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
Expand All @@ -32,8 +32,11 @@
"functions": [
{
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops",
"function": "minecraft:apply_bonus"
"formula": "minecraft:uniform_bonus_count",
"function": "minecraft:apply_bonus",
"parameters": {
"bonusMultiplier": 1
}
}
],
"rolls": 1.0
Expand All @@ -50,7 +53,7 @@
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
Expand All @@ -32,8 +32,11 @@
"functions": [
{
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops",
"function": "minecraft:apply_bonus"
"formula": "minecraft:uniform_bonus_count",
"function": "minecraft:apply_bonus",
"parameters": {
"bonusMultiplier": 1
}
}
],
"rolls": 1.0
Expand All @@ -50,7 +53,7 @@
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
Expand All @@ -32,8 +32,11 @@
"functions": [
{
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops",
"function": "minecraft:apply_bonus"
"formula": "minecraft:uniform_bonus_count",
"function": "minecraft:apply_bonus",
"parameters": {
"bonusMultiplier": 1
}
}
],
"rolls": 1.0
Expand All @@ -50,7 +53,7 @@
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
Expand All @@ -32,8 +32,11 @@
"functions": [
{
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops",
"function": "minecraft:apply_bonus"
"formula": "minecraft:uniform_bonus_count",
"function": "minecraft:apply_bonus",
"parameters": {
"bonusMultiplier": 1
}
}
],
"rolls": 1.0
Expand All @@ -50,7 +53,7 @@
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
Expand All @@ -32,8 +32,11 @@
"functions": [
{
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops",
"function": "minecraft:apply_bonus"
"formula": "minecraft:uniform_bonus_count",
"function": "minecraft:apply_bonus",
"parameters": {
"bonusMultiplier": 1
}
}
],
"rolls": 1.0
Expand All @@ -50,7 +53,7 @@
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
Expand All @@ -32,8 +32,11 @@
"functions": [
{
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops",
"function": "minecraft:apply_bonus"
"formula": "minecraft:uniform_bonus_count",
"function": "minecraft:apply_bonus",
"parameters": {
"bonusMultiplier": 1
}
}
],
"rolls": 1.0
Expand All @@ -50,7 +53,7 @@
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
Expand All @@ -32,8 +32,11 @@
"functions": [
{
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops",
"function": "minecraft:apply_bonus"
"formula": "minecraft:uniform_bonus_count",
"function": "minecraft:apply_bonus",
"parameters": {
"bonusMultiplier": 1
}
}
],
"rolls": 1.0
Expand All @@ -50,7 +53,7 @@
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
Expand All @@ -32,8 +32,11 @@
"functions": [
{
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops",
"function": "minecraft:apply_bonus"
"formula": "minecraft:uniform_bonus_count",
"function": "minecraft:apply_bonus",
"parameters": {
"bonusMultiplier": 1
}
}
],
"rolls": 1.0
Expand All @@ -50,7 +53,7 @@
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
Expand Down
21 changes: 21 additions & 0 deletions src/generated/resources/data/infinityores/recipes/tool.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"D": {
"item": "minecraft:diamond"
},
"O": {
"item": "minecraft:obsidian"
}
},
"pattern": [
"D D",
" O ",
" O "
],
"result": {
"count": 1,
"id": "infinityores:tool"
}
}
Loading

0 comments on commit 0e89e08

Please sign in to comment.