-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start adding Rusty No Tresspass Block
Doing in GH Codespaces, so it is not complete
- Loading branch information
1 parent
e1153c0
commit 0fe796e
Showing
11 changed files
with
108 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for more information: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
# https://containers.dev/guide/dependabot | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "devcontainers" | ||
directory: "/" | ||
schedule: | ||
interval: weekly |
25 changes: 25 additions & 0 deletions
25
fabric/src/main/java/org/eu/awesomekalin/jta/mod/blocks/DoNotTresspass.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,25 @@ | ||
package org.eu.awesomekalin.jta.mod.blocks; | ||
|
||
import java.util.List; | ||
|
||
import org.mtr.mapping.holder.DirectionProperty; | ||
import org.mtr.mapping.mapper.BlockExtension; | ||
import org.mtr.mapping.mapper.BlockHelper; | ||
import org.mtr.mapping.mapper.DirectionHelper; | ||
import org.mtr.mapping.tool.HolderBase; | ||
|
||
public class DoNotTresspass extends BlockExtension { | ||
public static final DirectionProperty FACING = DirectionHelper.FACING; | ||
|
||
public DoNotTresspass() { | ||
super(BlockHelper.createBlockSettings(false).strength(4.0f).nonOpaque()); | ||
} | ||
|
||
@Override | ||
public void addBlockProperties(List<HolderBase<?>> properties) { | ||
// TODO Auto-generated method stub | ||
super.addBlockProperties(properties); | ||
properties.add(FACING); | ||
properties.add(HALF); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
fabric/src/main/java/org/eu/awesomekalin/jta/mod/tools/IBlock.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,7 @@ | ||
package org.eu.awesomekalin.jta.mod.tools; | ||
|
||
import org.mtr.mapping.holder.*; | ||
|
||
public interface IBlock { | ||
EnumProperty<DoubleBlockHalf> HALF = EnumProperty.of("half", DoubleBlockHalf.class); | ||
} |
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
23 changes: 23 additions & 0 deletions
23
fabric/src/main/resources/assets/jta/models/block/rusty_no_tresspass_bottom.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,23 @@ | ||
{ | ||
"credit": "Made with Blockbench", | ||
"texture_size": [256, 128], | ||
"textures": { | ||
"0": "jta:block/rusty_do_not_tresspass", | ||
"particle": "jta:block/rusty_do_not_tresspass" | ||
}, | ||
"elements": [ | ||
{ | ||
"from": [7.5, 0, 7.5], | ||
"to": [8.5, 16, 8.5], | ||
"rotation": {"angle": 0, "axis": "y", "origin": [7, 0, 5]}, | ||
"faces": { | ||
"north": {"uv": [0, 0, 1, 16], "texture": "#0"}, | ||
"east": {"uv": [7, 0, 8, 16], "texture": "#0"}, | ||
"south": {"uv": [1, 0, 2, 16], "texture": "#0"}, | ||
"west": {"uv": [6, 0, 7, 16], "texture": "#0"}, | ||
"up": {"uv": [2.125, 0, 3.125, 1], "texture": "#0"}, | ||
"down": {"uv": [5, 0, 6, 1], "texture": "#0"} | ||
} | ||
} | ||
] | ||
} |
36 changes: 36 additions & 0 deletions
36
fabric/src/main/resources/assets/jta/models/block/rusty_no_tresspass_top.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,36 @@ | ||
{ | ||
"credit": "Made with Blockbench", | ||
"texture_size": [256, 128], | ||
"textures": { | ||
"2": "jta:block/rusty_do_not_tresspass", | ||
"particle": "jta:block/rusty_do_not_tresspass" | ||
}, | ||
"elements": [ | ||
{ | ||
"from": [7.5, 0, 7.5], | ||
"to": [8.5, 16, 8.5], | ||
"rotation": {"angle": 0, "axis": "y", "origin": [7, 0, 5]}, | ||
"faces": { | ||
"north": {"uv": [0, 0, 0.5, 16], "texture": "#2"}, | ||
"east": {"uv": [7.5, 0, 8, 16], "texture": "#2"}, | ||
"south": {"uv": [0.5, 0, 1, 16], "texture": "#2"}, | ||
"west": {"uv": [7, 0, 7.5, 16], "texture": "#2"}, | ||
"up": {"uv": [1.0625, 0, 1.5625, 1], "texture": "#2"}, | ||
"down": {"uv": [6.4375, 0, 6.9375, 1], "texture": "#2"} | ||
} | ||
}, | ||
{ | ||
"from": [2, 8, 7.4], | ||
"to": [14, 14, 7.4], | ||
"rotation": {"angle": 0, "axis": "y", "origin": [6.5, 10, 7.4]}, | ||
"faces": { | ||
"north": {"uv": [8, 0, 16, 8.625], "texture": "#2"}, | ||
"east": {"uv": [0, 0, 0, 0.75], "texture": "#missing"}, | ||
"south": {"uv": [8, 0, 8.875, 0.75], "texture": "#2"}, | ||
"west": {"uv": [0, 0, 0, 0.75], "texture": "#missing"}, | ||
"up": {"uv": [0, 0, 0.875, 0], "texture": "#missing"}, | ||
"down": {"uv": [0, 0, 0.875, 0], "texture": "#missing"} | ||
} | ||
} | ||
] | ||
} |
Binary file added
BIN
+61.3 KB
fabric/src/main/resources/assets/jta/textures/block/rusty_do_not_tresspass.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
+33.3 KB
fabric/src/main/resources/assets/jta/textures/block/rusty_no_tresspass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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