-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an inverted iron button, which needs to be pulled to activate
- Loading branch information
Showing
16 changed files
with
265 additions
and
9 deletions.
There are no files selected for viewing
118 changes: 118 additions & 0 deletions
118
src/generated/resources/assets/allomancy/blockstates/inverted_iron_button.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
{ | ||
"variants": { | ||
"face=ceiling,facing=east,powered=false": { | ||
"model": "allomancy:block/iron_button_pressed", | ||
"x": 180, | ||
"y": 270 | ||
}, | ||
"face=ceiling,facing=east,powered=true": { | ||
"model": "allomancy:block/iron_button", | ||
"x": 180, | ||
"y": 270 | ||
}, | ||
"face=ceiling,facing=north,powered=false": { | ||
"model": "allomancy:block/iron_button_pressed", | ||
"x": 180, | ||
"y": 180 | ||
}, | ||
"face=ceiling,facing=north,powered=true": { | ||
"model": "allomancy:block/iron_button", | ||
"x": 180, | ||
"y": 180 | ||
}, | ||
"face=ceiling,facing=south,powered=false": { | ||
"model": "allomancy:block/iron_button_pressed", | ||
"x": 180 | ||
}, | ||
"face=ceiling,facing=south,powered=true": { | ||
"model": "allomancy:block/iron_button", | ||
"x": 180 | ||
}, | ||
"face=ceiling,facing=west,powered=false": { | ||
"model": "allomancy:block/iron_button_pressed", | ||
"x": 180, | ||
"y": 90 | ||
}, | ||
"face=ceiling,facing=west,powered=true": { | ||
"model": "allomancy:block/iron_button", | ||
"x": 180, | ||
"y": 90 | ||
}, | ||
"face=floor,facing=east,powered=false": { | ||
"model": "allomancy:block/iron_button_pressed", | ||
"y": 90 | ||
}, | ||
"face=floor,facing=east,powered=true": { | ||
"model": "allomancy:block/iron_button", | ||
"y": 90 | ||
}, | ||
"face=floor,facing=north,powered=false": { | ||
"model": "allomancy:block/iron_button_pressed" | ||
}, | ||
"face=floor,facing=north,powered=true": { | ||
"model": "allomancy:block/iron_button" | ||
}, | ||
"face=floor,facing=south,powered=false": { | ||
"model": "allomancy:block/iron_button_pressed", | ||
"y": 180 | ||
}, | ||
"face=floor,facing=south,powered=true": { | ||
"model": "allomancy:block/iron_button", | ||
"y": 180 | ||
}, | ||
"face=floor,facing=west,powered=false": { | ||
"model": "allomancy:block/iron_button_pressed", | ||
"y": 270 | ||
}, | ||
"face=floor,facing=west,powered=true": { | ||
"model": "allomancy:block/iron_button", | ||
"y": 270 | ||
}, | ||
"face=wall,facing=east,powered=false": { | ||
"model": "allomancy:block/iron_button_pressed", | ||
"uvlock": true, | ||
"x": 90, | ||
"y": 90 | ||
}, | ||
"face=wall,facing=east,powered=true": { | ||
"model": "allomancy:block/iron_button", | ||
"uvlock": true, | ||
"x": 90, | ||
"y": 90 | ||
}, | ||
"face=wall,facing=north,powered=false": { | ||
"model": "allomancy:block/iron_button_pressed", | ||
"uvlock": true, | ||
"x": 90 | ||
}, | ||
"face=wall,facing=north,powered=true": { | ||
"model": "allomancy:block/iron_button", | ||
"uvlock": true, | ||
"x": 90 | ||
}, | ||
"face=wall,facing=south,powered=false": { | ||
"model": "allomancy:block/iron_button_pressed", | ||
"uvlock": true, | ||
"x": 90, | ||
"y": 180 | ||
}, | ||
"face=wall,facing=south,powered=true": { | ||
"model": "allomancy:block/iron_button", | ||
"uvlock": true, | ||
"x": 90, | ||
"y": 180 | ||
}, | ||
"face=wall,facing=west,powered=false": { | ||
"model": "allomancy:block/iron_button_pressed", | ||
"uvlock": true, | ||
"x": 90, | ||
"y": 270 | ||
}, | ||
"face=wall,facing=west,powered=true": { | ||
"model": "allomancy:block/iron_button", | ||
"uvlock": true, | ||
"x": 90, | ||
"y": 270 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/generated/resources/assets/allomancy/models/item/inverted_iron_button.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"parent": "allomancy:block/iron_button_inventory" | ||
} |
17 changes: 17 additions & 0 deletions
17
src/generated/resources/data/allomancy/loot_tables/blocks/inverted_iron_button.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "allomancy:inverted_iron_button" | ||
} | ||
], | ||
"name": "inverted_iron_button", | ||
"rolls": 1.0 | ||
} | ||
], | ||
"random_sequence": "allomancy:blocks/inverted_iron_button" | ||
} |
34 changes: 34 additions & 0 deletions
34
...ted/resources/data/minecraft/advancements/recipes/redstone/inverted_from_iron_button.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"parent": "minecraft:recipes/root", | ||
"criteria": { | ||
"has_iron_button": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": [ | ||
"allomancy:iron_button" | ||
] | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "minecraft:inverted_from_iron_button" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_the_recipe", | ||
"has_iron_button" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"minecraft:inverted_from_iron_button" | ||
] | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...ted/resources/data/minecraft/advancements/recipes/redstone/iron_button_from_inverted.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"parent": "minecraft:recipes/root", | ||
"criteria": { | ||
"has_inverted_iron_button": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": [ | ||
"allomancy:inverted_iron_button" | ||
] | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "minecraft:iron_button_from_inverted" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_the_recipe", | ||
"has_inverted_iron_button" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"minecraft:iron_button_from_inverted" | ||
] | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/generated/resources/data/minecraft/recipes/inverted_from_iron_button.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"type": "minecraft:crafting_shapeless", | ||
"category": "redstone", | ||
"ingredients": [ | ||
{ | ||
"item": "allomancy:iron_button" | ||
} | ||
], | ||
"result": { | ||
"item": "allomancy:inverted_iron_button" | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/generated/resources/data/minecraft/recipes/iron_button_from_inverted.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"type": "minecraft:crafting_shapeless", | ||
"category": "redstone", | ||
"ingredients": [ | ||
{ | ||
"item": "allomancy:inverted_iron_button" | ||
} | ||
], | ||
"result": { | ||
"item": "allomancy:iron_button" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters