Skip to content

Commit

Permalink
Let modifier recipes decide whether to check the total level or just …
Browse files Browse the repository at this point in the history
…the recipe level

Modifiers such as pathing, bouncy, etc. don't want to be added to a tool that starts with it as a trait.
While implementing this feature, discovered that most modifiers were accidently checking the total level instead of the recipe level (causing wrong behavior for things that are also traits like smite). The default for the new behavior has been set to recipe modifiers only to restore the 1.18 behavior
  • Loading branch information
KnightMiner committed May 17, 2024
1 parent 0a33800 commit a6fb00a
Show file tree
Hide file tree
Showing 41 changed files with 149 additions and 195 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"item": "minecraft:leather"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"item": "minecraft:prismarine_bricks"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"tag": "forge:raw_materials"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"tag": "minecraft:planks"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"tag": "forge:ingots/iron"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"amount_needed": 4,
Expand Down Expand Up @@ -29,12 +30,6 @@
"abilities": 1
},
"tools": {
"type": "forge:difference",
"base": {
"tag": "tconstruct:modifiable/armor/boots"
},
"subtracted": {
"item": "tconstruct:slime_boots"
}
"tag": "tconstruct:modifiable/armor/boots"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"tag": "forge:ingots/manyullyn"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"item": "minecraft:sticky_piston"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"tag": "forge:ingots/cobalt"
Expand All @@ -15,20 +16,14 @@
"abilities": 1
},
"tools": {
"type": "forge:difference",
"base": {
"type": "forge:intersection",
"children": [
{
"tag": "tconstruct:modifiable/durability"
},
{
"tag": "tconstruct:modifiable/interactable"
}
]
},
"subtracted": {
"item": "tconstruct:flint_and_brick"
}
"type": "forge:intersection",
"children": [
{
"tag": "tconstruct:modifiable/durability"
},
{
"tag": "tconstruct:modifiable/interactable"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"tag": "forge:string"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"item": "minecraft:glowstone"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"item": "minecraft:piston"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"tag": "minecraft:planks"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"type": "tconstruct:material",
Expand All @@ -20,24 +21,13 @@
"abilities": 1
},
"tools": {
"type": "forge:difference",
"base": {
"type": "forge:intersection",
"children": [
{
"tag": "tconstruct:modifiable/durability"
},
{
"tag": "tconstruct:modifiable/interactable"
}
]
},
"subtracted": [
"type": "forge:intersection",
"children": [
{
"item": "tconstruct:pickadze"
"tag": "tconstruct:modifiable/durability"
},
{
"item": "tconstruct:excavator"
"tag": "tconstruct:modifiable/interactable"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"item": "tconstruct:silky_cloth"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"tag": "forge:feathers"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"type": "tconstruct:material",
Expand All @@ -20,24 +21,13 @@
"abilities": 1
},
"tools": {
"type": "forge:difference",
"base": {
"type": "forge:intersection",
"children": [
{
"tag": "tconstruct:modifiable/durability"
},
{
"tag": "tconstruct:modifiable/interactable"
}
]
},
"subtracted": [
"type": "forge:intersection",
"children": [
{
"item": "tconstruct:hand_axe"
"tag": "tconstruct:modifiable/durability"
},
{
"item": "tconstruct:broad_axe"
"tag": "tconstruct:modifiable/interactable"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"type": "tconstruct:material",
Expand All @@ -20,27 +21,13 @@
"abilities": 1
},
"tools": {
"type": "forge:difference",
"base": {
"type": "forge:intersection",
"children": [
{
"tag": "tconstruct:modifiable/durability"
},
{
"tag": "tconstruct:modifiable/interactable"
}
]
},
"subtracted": [
{
"item": "tconstruct:mattock"
},
"type": "forge:intersection",
"children": [
{
"item": "tconstruct:kama"
"tag": "tconstruct:modifiable/durability"
},
{
"item": "tconstruct:scythe"
"tag": "tconstruct:modifiable/interactable"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"item": "minecraft:shulker_shell"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"tag": "forge:ender_pearls"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"conditions": [
{
"type": "forge:mod_loaded",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "tconstruct:modifier",
"allow_crystal": true,
"check_trait_level": true,
"inputs": [
{
"tag": "forge:ingots/gold"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
"abilities": 1
},
"tools": {
"type": "forge:difference",
"base": {
"tag": "tconstruct:modifiable/armor/boots"
},
"subtracted": {
"item": "tconstruct:slime_boots"
}
"tag": "tconstruct:modifiable/armor/boots"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,14 @@
"abilities": 1
},
"tools": {
"type": "forge:difference",
"base": {
"type": "forge:intersection",
"children": [
{
"tag": "tconstruct:modifiable/durability"
},
{
"tag": "tconstruct:modifiable/interactable"
}
]
},
"subtracted": {
"item": "tconstruct:flint_and_brick"
}
"type": "forge:intersection",
"children": [
{
"tag": "tconstruct:modifiable/durability"
},
{
"tag": "tconstruct:modifiable/interactable"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,13 @@
"abilities": 1
},
"tools": {
"type": "forge:difference",
"base": {
"type": "forge:intersection",
"children": [
{
"tag": "tconstruct:modifiable/durability"
},
{
"tag": "tconstruct:modifiable/interactable"
}
]
},
"subtracted": [
"type": "forge:intersection",
"children": [
{
"item": "tconstruct:pickadze"
"tag": "tconstruct:modifiable/durability"
},
{
"item": "tconstruct:excavator"
"tag": "tconstruct:modifiable/interactable"
}
]
}
Expand Down

0 comments on commit a6fb00a

Please sign in to comment.