Skip to content

Commit

Permalink
Fixed recipe conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
JackyyTV committed Oct 9, 2023
1 parent ddfd948 commit e823cf4
Show file tree
Hide file tree
Showing 11 changed files with 166 additions and 147 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'eclipse'
id 'idea'
id 'net.minecraftforge.gradle' version '[6.0,6.2)'
id 'net.minecraftforge.gradle' version '[6.0.14,6.2)'
}

import net.minecraftforge.gradle.common.tasks.SignJar
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ mod_name=Simple Sponge
mc_version=1.20.2
mc_version_range=[1.20.2,1.21)

forge_version=48.0.13
forge_version_range=[48,)
forge_version=48.0.20
forge_version_range=[48.0.17,)
loader_version_range=[48,)

mappings_channel=official
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
{
"type": "crafting_shaped",
"conditions": [
{
"type": "forge:or",
"values": [
{
"type": "simplesponge:openblocks_integration", "enabled": false
},
{
"type": "forge:and",
"values": [
{
"type": "simplesponge:openblocks_integration", "enabled": true
},
{
"type": "forge:not",
"value": {
"type": "forge:item_exists", "item": "openblocks:sponge_on_a_stick"
}
"forge:condition": {
"type": "forge:or",
"values": [
{
"type": "simplesponge:openblocks_integration",
"enabled": false
},
{
"type": "forge:and",
"values": [
{
"type": "simplesponge:openblocks_integration",
"enabled": true
},
{
"type": "forge:not",
"value": {
"type": "forge:item_exists",
"item": "openblocks:sponge_on_a_stick"
}
]
}
]
}
],
}
]
}
]
},
"pattern": [
"###",
"###",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"type": "crafting_shaped",
"conditions": [
{
"type": "simplesponge:energized_sponge_on_a_stick", "enabled": true
}
],
"forge:condition": {
"type": "simplesponge:energized_sponge_on_a_stick",
"enabled": true
},
"pattern": [
"R#R",
"GBG",
Expand Down
47 changes: 24 additions & 23 deletions src/main/resources/data/simplesponge/recipes/magmatic_sponge.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
{
"type": "crafting_shapeless",
"conditions": [
{
"type": "forge:or",
"values": [
{
"type": "simplesponge:openblocks_integration", "enabled": false
},
{
"type": "forge:and",
"values": [
{
"type": "simplesponge:openblocks_integration", "enabled": true
},
{
"type": "forge:not",
"value": {
"type": "forge:item_exists", "item": "openblocks:sponge"
}
"forge:condition": {
"type": "forge:or",
"values": [
{
"type": "simplesponge:openblocks_integration",
"enabled": false
},
{
"type": "forge:and",
"values": [
{
"type": "simplesponge:openblocks_integration",
"enabled": true
},
{
"type": "forge:not",
"value": {
"type": "forge:item_exists",
"item": "openblocks:sponge"
}
]
}
]
}
],
}
]
}
]
},
"ingredients": [
{
"item": "simplesponge:sponge"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
{
"type": "crafting_shapeless",
"conditions": [
{
"type": "forge:or",
"values": [
{
"type": "simplesponge:openblocks_integration", "enabled": false
},
{
"type": "forge:and",
"values": [
{
"type": "simplesponge:openblocks_integration", "enabled": true
},
{
"type": "forge:not",
"value": {
"type": "forge:item_exists", "item": "openblocks:sponge_on_a_stick"
}
"forge:condition": {
"type": "forge:or",
"values": [
{
"type": "simplesponge:openblocks_integration",
"enabled": false
},
{
"type": "forge:and",
"values": [
{
"type": "simplesponge:openblocks_integration",
"enabled": true
},
{
"type": "forge:not",
"value": {
"type": "forge:item_exists",
"item": "openblocks:sponge_on_a_stick"
}
]
}
]
}
],
}
]
}
]
},
"ingredients": [
{
"item": "simplesponge:sponge_on_a_stick"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"type": "crafting_shaped",
"conditions": [
{
"type": "simplesponge:openblocks_integration", "enabled": true
},
{
"type": "forge:item_exists", "item": "openblocks:sponge_on_a_stick"
}
],
"forge:condition": {
"type": "forge:and",
"values": [
{
"type": "simplesponge:openblocks_integration",
"enabled": true
},
{
"type": "forge:item_exists",
"item": "openblocks:sponge_on_a_stick"
}
]
},
"pattern": [
"###",
"###",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"type": "crafting_shapeless",
"conditions": [
{
"type": "simplesponge:openblocks_integration", "enabled": true
},
{
"type": "forge:item_exists", "item": "openblocks:sponge"
}
],
"forge:condition": {
"type": "forge:and",
"values": [
{
"type": "simplesponge:openblocks_integration",
"enabled": true
},
{
"type": "forge:item_exists",
"item": "openblocks:sponge"
}
]
},
"ingredients": [
{
"item": "openblocks:sponge"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"type": "crafting_shapeless",
"conditions": [
{
"type": "simplesponge:openblocks_integration", "enabled": true
},
{
"type": "forge:item_exists", "item": "openblocks:sponge_on_a_stick"
}
],
"forge:condition": {
"type": "forge:and",
"values": [
{
"type": "simplesponge:openblocks_integration",
"enabled": true
},
{
"type": "forge:item_exists",
"item": "openblocks:sponge_on_a_stick"
}
]
},
"ingredients": [
{
"item": "openblocks:sponge_on_a_stick"
Expand Down
47 changes: 24 additions & 23 deletions src/main/resources/data/simplesponge/recipes/sponge.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
{
"type": "crafting_shapeless",
"conditions": [
{
"type": "forge:or",
"values": [
{
"type": "simplesponge:openblocks_integration", "enabled": false
},
{
"type": "forge:and",
"values": [
{
"type": "simplesponge:openblocks_integration", "enabled": true
},
{
"type": "forge:not",
"value": {
"type": "forge:item_exists", "item": "openblocks:sponge"
}
"forge:condition": {
"type": "forge:or",
"values": [
{
"type": "simplesponge:openblocks_integration",
"enabled": false
},
{
"type": "forge:and",
"values": [
{
"type": "simplesponge:openblocks_integration",
"enabled": true
},
{
"type": "forge:not",
"value": {
"type": "forge:item_exists",
"item": "openblocks:sponge"
}
]
}
]
}
],
}
]
}
]
},
"ingredients": [
{
"tag": "minecraft:wool"
Expand Down
47 changes: 24 additions & 23 deletions src/main/resources/data/simplesponge/recipes/sponge_on_a_stick.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
{
"type": "crafting_shaped",
"conditions": [
{
"type": "forge:or",
"values": [
{
"type": "simplesponge:openblocks_integration", "enabled": false
},
{
"type": "forge:and",
"values": [
{
"type": "simplesponge:openblocks_integration", "enabled": true
},
{
"type": "forge:not",
"value": {
"type": "forge:item_exists", "item": "openblocks:sponge_on_a_stick"
}
"forge:condition": {
"type": "forge:or",
"values": [
{
"type": "simplesponge:openblocks_integration",
"enabled": false
},
{
"type": "forge:and",
"values": [
{
"type": "simplesponge:openblocks_integration",
"enabled": true
},
{
"type": "forge:not",
"value": {
"type": "forge:item_exists",
"item": "openblocks:sponge_on_a_stick"
}
]
}
]
}
],
}
]
}
]
},
"pattern": [
"#",
"S",
Expand Down

0 comments on commit e823cf4

Please sign in to comment.