-
Notifications
You must be signed in to change notification settings - Fork 147
This commit also adds edified fences as well as the sign textures #528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
37b89d8
Mess with the fabric json again
Falkory220 4cc7423
Merge pull request #1 from gamma-delta/1.20
Falkory220 a7cbe54
Trying to get armour back
Falkory220 f284c1f
Revert "Trying to get armour back"
Falkory220 6f657b3
Added Sign Textures but i aint implementing them cause theyre evil in…
Falkory220 835c096
Gate
Falkory220 b61396b
2 new staffs idk why they dont work propperly yet tho
Falkory220 4fca7dd
Can now cast
Falkory220 dec69f9
Merge pull request #3 from gamma-delta/1.20
Falkory220 7ccb4aa
Merge branch '1.20' into 1.20.1
object-Object 2b8b73e
Fix the PR i think?
Falkory220 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
80 changes: 80 additions & 0 deletions
80
Common/src/generated/resources/assets/hexcasting/blockstates/edified_fence_gate.json
This file contains hidden or 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,80 @@ | ||
| { | ||
| "variants": { | ||
| "facing=east,in_wall=false,open=false": { | ||
| "model": "hexcasting:block/edified_fence_gate", | ||
| "uvlock": true, | ||
| "y": 270 | ||
| }, | ||
| "facing=east,in_wall=false,open=true": { | ||
| "model": "hexcasting:block/edified_fence_gate_open", | ||
| "uvlock": true, | ||
| "y": 270 | ||
| }, | ||
| "facing=east,in_wall=true,open=false": { | ||
| "model": "hexcasting:block/edified_fence_gate_wall", | ||
| "uvlock": true, | ||
| "y": 270 | ||
| }, | ||
| "facing=east,in_wall=true,open=true": { | ||
| "model": "hexcasting:block/edified_fence_gate_wall_open", | ||
| "uvlock": true, | ||
| "y": 270 | ||
| }, | ||
| "facing=north,in_wall=false,open=false": { | ||
| "model": "hexcasting:block/edified_fence_gate", | ||
| "uvlock": true, | ||
| "y": 180 | ||
| }, | ||
| "facing=north,in_wall=false,open=true": { | ||
| "model": "hexcasting:block/edified_fence_gate_open", | ||
| "uvlock": true, | ||
| "y": 180 | ||
| }, | ||
| "facing=north,in_wall=true,open=false": { | ||
| "model": "hexcasting:block/edified_fence_gate_wall", | ||
| "uvlock": true, | ||
| "y": 180 | ||
| }, | ||
| "facing=north,in_wall=true,open=true": { | ||
| "model": "hexcasting:block/edified_fence_gate_wall_open", | ||
| "uvlock": true, | ||
| "y": 180 | ||
| }, | ||
| "facing=south,in_wall=false,open=false": { | ||
| "model": "hexcasting:block/edified_fence_gate", | ||
| "uvlock": true | ||
| }, | ||
| "facing=south,in_wall=false,open=true": { | ||
| "model": "hexcasting:block/edified_fence_gate_open", | ||
| "uvlock": true | ||
| }, | ||
| "facing=south,in_wall=true,open=false": { | ||
| "model": "hexcasting:block/edified_fence_gate_wall", | ||
| "uvlock": true | ||
| }, | ||
| "facing=south,in_wall=true,open=true": { | ||
| "model": "hexcasting:block/edified_fence_gate_wall_open", | ||
| "uvlock": true | ||
| }, | ||
| "facing=west,in_wall=false,open=false": { | ||
| "model": "hexcasting:block/edified_fence_gate", | ||
| "uvlock": true, | ||
| "y": 90 | ||
| }, | ||
| "facing=west,in_wall=false,open=true": { | ||
| "model": "hexcasting:block/edified_fence_gate_open", | ||
| "uvlock": true, | ||
| "y": 90 | ||
| }, | ||
| "facing=west,in_wall=true,open=false": { | ||
| "model": "hexcasting:block/edified_fence_gate_wall", | ||
| "uvlock": true, | ||
| "y": 90 | ||
| }, | ||
| "facing=west,in_wall=true,open=true": { | ||
| "model": "hexcasting:block/edified_fence_gate_wall_open", | ||
| "uvlock": true, | ||
| "y": 90 | ||
| } | ||
| } | ||
| } |
6 changes: 6 additions & 0 deletions
6
Common/src/generated/resources/assets/hexcasting/models/block/edified_fence_gate.json
This file contains hidden or 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,6 @@ | ||
| { | ||
| "parent": "minecraft:block/template_fence_gate", | ||
| "textures": { | ||
| "texture": "hexcasting:block/edified_planks" | ||
| } | ||
| } |
6 changes: 6 additions & 0 deletions
6
Common/src/generated/resources/assets/hexcasting/models/block/edified_fence_gate_open.json
This file contains hidden or 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,6 @@ | ||
| { | ||
| "parent": "minecraft:block/template_fence_gate_open", | ||
| "textures": { | ||
| "texture": "hexcasting:block/edified_planks" | ||
| } | ||
| } |
6 changes: 6 additions & 0 deletions
6
Common/src/generated/resources/assets/hexcasting/models/block/edified_fence_gate_wall.json
This file contains hidden or 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,6 @@ | ||
| { | ||
| "parent": "minecraft:block/template_fence_gate_wall", | ||
| "textures": { | ||
| "texture": "hexcasting:block/edified_planks" | ||
| } | ||
| } |
6 changes: 6 additions & 0 deletions
6
.../src/generated/resources/assets/hexcasting/models/block/edified_fence_gate_wall_open.json
This file contains hidden or 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,6 @@ | ||
| { | ||
| "parent": "minecraft:block/template_fence_gate_wall_open", | ||
| "textures": { | ||
| "texture": "hexcasting:block/edified_planks" | ||
| } | ||
| } |
3 changes: 3 additions & 0 deletions
3
Common/src/generated/resources/assets/hexcasting/models/item/edified_fence_gate.json
This file contains hidden or 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": "hexcasting:block/edified_fence_gate" | ||
| } |
6 changes: 6 additions & 0 deletions
6
Common/src/generated/resources/assets/hexcasting/models/item/staff/bamboo.json
This file contains hidden or 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,6 @@ | ||
| { | ||
| "parent": "minecraft:item/handheld_rod", | ||
| "textures": { | ||
| "layer0": "hexcasting:item/staff/bamboo" | ||
| } | ||
| } |
6 changes: 6 additions & 0 deletions
6
Common/src/generated/resources/assets/hexcasting/models/item/staff/cherry.json
This file contains hidden or 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,6 @@ | ||
| { | ||
| "parent": "minecraft:item/handheld_rod", | ||
| "textures": { | ||
| "layer0": "hexcasting:item/staff/cherry" | ||
| } | ||
| } |
16 changes: 16 additions & 0 deletions
16
Common/src/generated/resources/assets/hexcasting/models/staff/bamboo.json
This file contains hidden or 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,16 @@ | ||
| { | ||
| "overrides": [ | ||
| { | ||
| "model": "hexcasting:item/bamboo_staff", | ||
| "predicate": { | ||
| "hexcasting:funny_level": 0.0 | ||
| } | ||
| }, | ||
| { | ||
| "model": "hexcasting:item/cherry_staff", | ||
| "predicate": { | ||
| "hexcasting:funny_level": 2.0 | ||
| } | ||
| } | ||
| ] | ||
| } |
16 changes: 16 additions & 0 deletions
16
Common/src/generated/resources/assets/hexcasting/models/staff/cherry.json
This file contains hidden or 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,16 @@ | ||
| { | ||
| "overrides": [ | ||
| { | ||
| "model": "hexcasting:item/cherry_staff", | ||
| "predicate": { | ||
| "hexcasting:funny_level": 0.0 | ||
| } | ||
| }, | ||
| { | ||
| "model": "hexcasting:item/cherry_staff", | ||
| "predicate": { | ||
| "hexcasting:funny_level": 2.0 | ||
| } | ||
| } | ||
| ] | ||
| } |
30 changes: 30 additions & 0 deletions
30
Common/src/main/java/at/petrak/hexcasting/common/blocks/decoration/BlockHexFence.java
This file contains hidden or 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,30 @@ | ||
| package at.petrak.hexcasting.common.blocks.decoration; | ||
|
|
||
| import at.petrak.hexcasting.annotations.SoftImplement; | ||
| import net.minecraft.core.BlockPos; | ||
| import net.minecraft.core.Direction; | ||
| import net.minecraft.world.level.BlockGetter; | ||
| import net.minecraft.world.level.block.FenceBlock; | ||
| import net.minecraft.world.level.block.state.BlockState; | ||
|
|
||
| public class BlockHexFence extends FenceBlock { | ||
|
|
||
| public BlockHexFence(Properties $$0) { | ||
| super($$0); | ||
| } | ||
|
|
||
| @SoftImplement("forge") | ||
| public boolean isFlammable(BlockState state, BlockGetter level, BlockPos pos, Direction direction) { | ||
| return true; | ||
| } | ||
|
|
||
| @SoftImplement("forge") | ||
| public int getFlammability(BlockState state, BlockGetter level, BlockPos pos, Direction direction) { | ||
| return 20; | ||
| } | ||
|
|
||
| @SoftImplement("forge") | ||
| public int getFireSpreadSpeed(BlockState state, BlockGetter level, BlockPos pos, Direction direction) { | ||
| return 5; | ||
| } | ||
| } |
32 changes: 32 additions & 0 deletions
32
Common/src/main/java/at/petrak/hexcasting/common/blocks/decoration/BlockHexFenceGate.java
This file contains hidden or 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,32 @@ | ||
| package at.petrak.hexcasting.common.blocks.decoration; | ||
|
|
||
| import at.petrak.hexcasting.annotations.SoftImplement; | ||
| import at.petrak.hexcasting.common.lib.HexBlockSetTypes; | ||
| import net.minecraft.core.BlockPos; | ||
| import net.minecraft.core.Direction; | ||
| import net.minecraft.world.level.BlockGetter; | ||
| import net.minecraft.world.level.block.FenceGateBlock; | ||
| import net.minecraft.world.level.block.state.BlockState; | ||
| import net.minecraft.world.level.block.state.properties.WoodType; | ||
|
|
||
| public class BlockHexFenceGate extends FenceGateBlock { | ||
|
|
||
| public BlockHexFenceGate(Properties $$0) { | ||
| super($$0, WoodType.DARK_OAK); | ||
| } | ||
|
|
||
| @SoftImplement("forge") | ||
| public boolean isFlammable(BlockState state, BlockGetter level, BlockPos pos, Direction direction) { | ||
| return true; | ||
| } | ||
|
|
||
| @SoftImplement("forge") | ||
| public int getFlammability(BlockState state, BlockGetter level, BlockPos pos, Direction direction) { | ||
| return 20; | ||
| } | ||
|
|
||
| @SoftImplement("forge") | ||
| public int getFireSpreadSpeed(BlockState state, BlockGetter level, BlockPos pos, Direction direction) { | ||
| return 5; | ||
| } | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
6 changes: 6 additions & 0 deletions
6
Common/src/main/resources/assets/hexcasting/models/block/edified_fence_inventory.json
This file contains hidden or 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,6 @@ | ||
| { | ||
| "parent": "minecraft:block/fence_inventory", | ||
| "textures": { | ||
| "texture": "hexcasting:block/edified_planks" | ||
| } | ||
| } |
Binary file added
BIN
+638 Bytes
Common/src/main/resources/assets/hexcasting/textures/entity/signs/edified.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+974 Bytes
.../src/main/resources/assets/hexcasting/textures/entity/signs/hanging/edified.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+325 Bytes
Common/src/main/resources/assets/hexcasting/textures/item/edified_sign.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+364 Bytes
Common/src/main/resources/assets/hexcasting/textures/item/hanging_edified_sign.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+373 Bytes
Common/src/main/resources/assets/hexcasting/textures/item/staff/bamboo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions
33
...ed/resources/data/hexcasting/advancements/recipes/building_blocks/edified_fence_gate.json
This file contains hidden or 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,33 @@ | ||
| { | ||
| "parent": "minecraft:recipes/root", | ||
| "criteria": { | ||
| "has_item": { | ||
| "conditions": { | ||
| "items": [ | ||
| { | ||
| "tag": "hexcasting:edified_planks" | ||
| } | ||
| ] | ||
| }, | ||
| "trigger": "minecraft:inventory_changed" | ||
| }, | ||
| "has_the_recipe": { | ||
| "conditions": { | ||
| "recipe": "hexcasting:edified_fence_gate" | ||
| }, | ||
| "trigger": "minecraft:recipe_unlocked" | ||
| } | ||
| }, | ||
| "requirements": [ | ||
| [ | ||
| "has_item", | ||
| "has_the_recipe" | ||
| ] | ||
| ], | ||
| "rewards": { | ||
| "recipes": [ | ||
| "hexcasting:edified_fence_gate" | ||
| ] | ||
| }, | ||
| "sends_telemetry_event": false | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.