-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50015c8
commit 6658a4d
Showing
57 changed files
with
259 additions
and
229 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
- Cleaned up GUI. | ||
- Added workbench items, allowing you to chip items without needing the workbench block. | ||
- Fixed crash on startup when Architectury API is not installed due to accessing protected TransparentBlock class. |
4 changes: 2 additions & 2 deletions
4
common/src/main/generated/resources/.cache/090418e8027c120589721b86514d627d1aeb9a8a
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// 1.20.4 2024-02-02T21:07:26.0496 Languages: en_us for mod: chipped | ||
01dde2a254719e4be15e0aa26019b70f9c4c92aa assets/chipped/lang/en_us.json | ||
// 1.20.4 2024-02-04T15:36:28.110901 Languages: en_us for mod: chipped | ||
0a4675b1ddd38ff844d2e8aa596b49f200edc562 assets/chipped/lang/en_us.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
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
2 changes: 1 addition & 1 deletion
2
common/src/main/generated/resources/assets/chipped/lang/en_us.json
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/assets/chipped/models/item/alchemy_book.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 @@ | ||
{"parent":"minecraft:item/generated","textures":{"layer0":"chipped:item/alchemy_book"}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/assets/chipped/models/item/multimeter.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 @@ | ||
{"parent":"minecraft:item/generated","textures":{"layer0":"chipped:item/multimeter"}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/assets/chipped/models/item/needles.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 @@ | ||
{"parent":"minecraft:item/generated","textures":{"layer0":"chipped:item/needles"}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/assets/chipped/models/item/saw.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 @@ | ||
{"parent":"minecraft:item/generated","textures":{"layer0":"chipped:item/saw"}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/assets/chipped/models/item/watering_can.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 @@ | ||
{"parent":"minecraft:item/generated","textures":{"layer0":"chipped:item/watering_can"}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/data/chipped/advancements/recipes/misc/alchemy_book.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 @@ | ||
{"parent":"minecraft:recipes/root","criteria":{"has_alchemy_book":{"conditions":{"items":[{"items":["chipped:alchemy_bench"]}]},"trigger":"minecraft:inventory_changed"},"has_the_recipe":{"conditions":{"recipe":"chipped:alchemy_book"},"trigger":"minecraft:recipe_unlocked"}},"requirements":[["has_the_recipe","has_alchemy_book"]],"rewards":{"recipes":["chipped:alchemy_book"]}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/data/chipped/advancements/recipes/misc/chisel.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 @@ | ||
{"parent":"minecraft:recipes/root","criteria":{"has_chisel":{"conditions":{"items":[{"items":["chipped:mason_table"]}]},"trigger":"minecraft:inventory_changed"},"has_the_recipe":{"conditions":{"recipe":"chipped:chisel"},"trigger":"minecraft:recipe_unlocked"}},"requirements":[["has_the_recipe","has_chisel"]],"rewards":{"recipes":["chipped:chisel"]}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/data/chipped/advancements/recipes/misc/multimeter.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 @@ | ||
{"parent":"minecraft:recipes/root","criteria":{"has_multimeter":{"conditions":{"items":[{"items":["chipped:tinkering_table"]}]},"trigger":"minecraft:inventory_changed"},"has_the_recipe":{"conditions":{"recipe":"chipped:multimeter"},"trigger":"minecraft:recipe_unlocked"}},"requirements":[["has_the_recipe","has_multimeter"]],"rewards":{"recipes":["chipped:multimeter"]}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/data/chipped/advancements/recipes/misc/needles.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 @@ | ||
{"parent":"minecraft:recipes/root","criteria":{"has_needles":{"conditions":{"items":[{"items":["chipped:loom_table"]}]},"trigger":"minecraft:inventory_changed"},"has_the_recipe":{"conditions":{"recipe":"chipped:needles"},"trigger":"minecraft:recipe_unlocked"}},"requirements":[["has_the_recipe","has_needles"]],"rewards":{"recipes":["chipped:needles"]}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/data/chipped/advancements/recipes/misc/saw.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 @@ | ||
{"parent":"minecraft:recipes/root","criteria":{"has_saw":{"conditions":{"items":[{"items":["chipped:carpenters_table"]}]},"trigger":"minecraft:inventory_changed"},"has_the_recipe":{"conditions":{"recipe":"chipped:saw"},"trigger":"minecraft:recipe_unlocked"}},"requirements":[["has_the_recipe","has_saw"]],"rewards":{"recipes":["chipped:saw"]}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/data/chipped/advancements/recipes/misc/watering_can.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 @@ | ||
{"parent":"minecraft:recipes/root","criteria":{"has_the_recipe":{"conditions":{"recipe":"chipped:watering_can"},"trigger":"minecraft:recipe_unlocked"},"has_watering_can":{"conditions":{"items":[{"items":["chipped:botanist_workbench"]}]},"trigger":"minecraft:inventory_changed"}},"requirements":[["has_the_recipe","has_watering_can"]],"rewards":{"recipes":["chipped:watering_can"]}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/data/chipped/recipes/alchemy_book.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 @@ | ||
{"type":"minecraft:crafting_shapeless","category":"misc","ingredients":[{"item":"chipped:alchemy_bench"},{"item":"minecraft:book"}],"result":{"item":"chipped:alchemy_book"}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/data/chipped/recipes/chisel.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 @@ | ||
{"type":"minecraft:crafting_shapeless","category":"misc","ingredients":[{"item":"chipped:mason_table"},{"item":"minecraft:iron_ingot"}],"result":{"item":"chipped:chisel"}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/data/chipped/recipes/multimeter.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 @@ | ||
{"type":"minecraft:crafting_shapeless","category":"misc","ingredients":[{"item":"chipped:tinkering_table"},{"item":"minecraft:redstone"}],"result":{"item":"chipped:multimeter"}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/data/chipped/recipes/needles.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 @@ | ||
{"type":"minecraft:crafting_shapeless","category":"misc","ingredients":[{"item":"chipped:loom_table"},{"item":"minecraft:stick"}],"result":{"item":"chipped:needles"}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/data/chipped/recipes/saw.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 @@ | ||
{"type":"minecraft:crafting_shapeless","category":"misc","ingredients":[{"item":"chipped:carpenters_table"},{"item":"minecraft:iron_ingot"}],"result":{"item":"chipped:saw"}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/data/chipped/recipes/watering_can.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 @@ | ||
{"type":"minecraft:crafting_shapeless","category":"misc","ingredients":[{"item":"chipped:botanist_workbench"},{"item":"minecraft:bucket"}],"result":{"item":"chipped:watering_can"}} |
1 change: 1 addition & 0 deletions
1
...generated/resources/data/minecraft/advancements/recipes/misc/workbench/alchemy_bench.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 @@ | ||
{"parent":"minecraft:recipes/root","criteria":{"has_alchemy_bench":{"conditions":{"items":[{"items":["minecraft:crafting_table"]}]},"trigger":"minecraft:inventory_changed"},"has_the_recipe":{"conditions":{"recipe":"minecraft:workbench/alchemy_bench"},"trigger":"minecraft:recipe_unlocked"}},"requirements":[["has_the_recipe","has_alchemy_bench"]],"rewards":{"recipes":["minecraft:workbench/alchemy_bench"]}} |
1 change: 1 addition & 0 deletions
1
...ated/resources/data/minecraft/advancements/recipes/misc/workbench/botanist_workbench.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 @@ | ||
{"parent":"minecraft:recipes/root","criteria":{"has_botanist_workbench":{"conditions":{"items":[{"items":["minecraft:crafting_table"]}]},"trigger":"minecraft:inventory_changed"},"has_the_recipe":{"conditions":{"recipe":"minecraft:workbench/botanist_workbench"},"trigger":"minecraft:recipe_unlocked"}},"requirements":[["has_the_recipe","has_botanist_workbench"]],"rewards":{"recipes":["minecraft:workbench/botanist_workbench"]}} |
1 change: 1 addition & 0 deletions
1
...erated/resources/data/minecraft/advancements/recipes/misc/workbench/carpenters_table.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 @@ | ||
{"parent":"minecraft:recipes/root","criteria":{"has_carpenters_table":{"conditions":{"items":[{"items":["minecraft:crafting_table"]}]},"trigger":"minecraft:inventory_changed"},"has_the_recipe":{"conditions":{"recipe":"minecraft:workbench/carpenters_table"},"trigger":"minecraft:recipe_unlocked"}},"requirements":[["has_the_recipe","has_carpenters_table"]],"rewards":{"recipes":["minecraft:workbench/carpenters_table"]}} |
1 change: 1 addition & 0 deletions
1
...n/generated/resources/data/minecraft/advancements/recipes/misc/workbench/glassblower.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 @@ | ||
{"parent":"minecraft:recipes/root","criteria":{"has_glassblower":{"conditions":{"items":[{"items":["minecraft:crafting_table"]}]},"trigger":"minecraft:inventory_changed"},"has_the_recipe":{"conditions":{"recipe":"minecraft:workbench/glassblower"},"trigger":"minecraft:recipe_unlocked"}},"requirements":[["has_the_recipe","has_glassblower"]],"rewards":{"recipes":["minecraft:workbench/glassblower"]}} |
1 change: 1 addition & 0 deletions
1
...in/generated/resources/data/minecraft/advancements/recipes/misc/workbench/loom_table.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 @@ | ||
{"parent":"minecraft:recipes/root","criteria":{"has_loom_table":{"conditions":{"items":[{"items":["minecraft:crafting_table"]}]},"trigger":"minecraft:inventory_changed"},"has_the_recipe":{"conditions":{"recipe":"minecraft:workbench/loom_table"},"trigger":"minecraft:recipe_unlocked"}},"requirements":[["has_the_recipe","has_loom_table"]],"rewards":{"recipes":["minecraft:workbench/loom_table"]}} |
1 change: 1 addition & 0 deletions
1
...n/generated/resources/data/minecraft/advancements/recipes/misc/workbench/mason_table.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 @@ | ||
{"parent":"minecraft:recipes/root","criteria":{"has_mason_table":{"conditions":{"items":[{"items":["minecraft:crafting_table"]}]},"trigger":"minecraft:inventory_changed"},"has_the_recipe":{"conditions":{"recipe":"minecraft:workbench/mason_table"},"trigger":"minecraft:recipe_unlocked"}},"requirements":[["has_the_recipe","has_mason_table"]],"rewards":{"recipes":["minecraft:workbench/mason_table"]}} |
1 change: 1 addition & 0 deletions
1
...nerated/resources/data/minecraft/advancements/recipes/misc/workbench/tinkering_table.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 @@ | ||
{"parent":"minecraft:recipes/root","criteria":{"has_the_recipe":{"conditions":{"recipe":"minecraft:workbench/tinkering_table"},"trigger":"minecraft:recipe_unlocked"},"has_tinkering_table":{"conditions":{"items":[{"items":["minecraft:crafting_table"]}]},"trigger":"minecraft:inventory_changed"}},"requirements":[["has_the_recipe","has_tinkering_table"]],"rewards":{"recipes":["minecraft:workbench/tinkering_table"]}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/data/minecraft/recipes/workbench/alchemy_bench.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 @@ | ||
{"type":"minecraft:crafting_shaped","category":"misc","key":{"#":{"item":"minecraft:crafting_table"},"B":{"item":"minecraft:brewing_stand"},"E":{"item":"minecraft:enchanting_table"},"S":{"tag":"minecraft:wooden_slabs"}},"pattern":[" B ","S#S","SES"],"result":{"item":"chipped:alchemy_bench"}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/data/minecraft/recipes/workbench/botanist_workbench.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 @@ | ||
{"type":"minecraft:crafting_shaped","category":"misc","key":{"#":{"item":"minecraft:crafting_table"},"/":{"item":"minecraft:stick"},"F":{"item":"minecraft:flower_pot"},"S":{"tag":"minecraft:wooden_slabs"}},"pattern":["FFF","S#S","/ /"],"result":{"item":"chipped:botanist_workbench"}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/data/minecraft/recipes/workbench/carpenters_table.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 @@ | ||
{"type":"minecraft:crafting_shaped","category":"misc","key":{"#":{"item":"minecraft:crafting_table"},"A":{"item":"minecraft:iron_axe"},"I":{"item":"minecraft:iron_ingot"},"P":{"tag":"minecraft:planks"}},"pattern":["A I","P#P","PPP"],"result":{"item":"chipped:carpenters_table"}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/data/minecraft/recipes/workbench/glassblower.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 @@ | ||
{"type":"minecraft:crafting_shaped","category":"misc","key":{"#":{"item":"minecraft:crafting_table"},"B":{"item":"minecraft:bricks"},"F":{"item":"minecraft:blast_furnace"},"G":{"item":"minecraft:glass"},"I":{"item":"minecraft:iron_ingot"}},"pattern":["IGI","B#B","BFB"],"result":{"item":"chipped:glassblower"}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/data/minecraft/recipes/workbench/loom_table.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 @@ | ||
{"type":"minecraft:crafting_shaped","category":"misc","key":{"#":{"item":"minecraft:crafting_table"},"/":{"item":"minecraft:stick"},"L":{"tag":"minecraft:logs"},"W":{"tag":"minecraft:wool"}},"pattern":["WWW","/#/","LLL"],"result":{"item":"chipped:loom_table"}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/data/minecraft/recipes/workbench/mason_table.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 @@ | ||
{"type":"minecraft:crafting_shaped","category":"misc","key":{"#":{"item":"minecraft:crafting_table"},"B":{"item":"minecraft:brick"},"I":{"item":"minecraft:iron_ingot"},"L":{"tag":"minecraft:logs"}},"pattern":["BBB","I#I","LLL"],"result":{"item":"chipped:mason_table"}} |
1 change: 1 addition & 0 deletions
1
common/src/main/generated/resources/data/minecraft/recipes/workbench/tinkering_table.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 @@ | ||
{"type":"minecraft:crafting_shaped","category":"misc","key":{"#":{"item":"minecraft:crafting_table"},"I":{"item":"minecraft:iron_ingot"},"L":{"tag":"minecraft:logs"},"R":{"item":"minecraft:redstone"},"T":{"item":"minecraft:redstone_torch"}},"pattern":["TRT","I#I","L L"],"result":{"item":"chipped:tinkering_table"}} |
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
23 changes: 23 additions & 0 deletions
23
common/src/main/java/earth/terrarium/chipped/common/items/WorkbenchItem.java
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,23 @@ | ||
package earth.terrarium.chipped.common.items; | ||
|
||
import earth.terrarium.chipped.common.menus.WorkbenchMenuProvider; | ||
import net.minecraft.world.InteractionHand; | ||
import net.minecraft.world.InteractionResultHolder; | ||
import net.minecraft.world.entity.player.Player; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraft.world.level.Level; | ||
|
||
public class WorkbenchItem extends Item { | ||
|
||
public WorkbenchItem(Properties properties) { | ||
super(properties); | ||
} | ||
|
||
@Override | ||
public InteractionResultHolder<ItemStack> use(Level level, Player player, InteractionHand usedHand) { | ||
var stack = player.getItemInHand(usedHand); | ||
player.openMenu(new WorkbenchMenuProvider(getName(stack))); | ||
return InteractionResultHolder.sidedSuccess(stack, level.isClientSide()); | ||
} | ||
} |
Oops, something went wrong.