Skip to content

Commit

Permalink
Start adding Rusty No Tresspass Block
Browse files Browse the repository at this point in the history
Doing in GH Codespaces, so it is not complete
  • Loading branch information
AwesomeKalin committed Jun 4, 2024
1 parent e1153c0 commit 0fe796e
Show file tree
Hide file tree
Showing 11 changed files with 108 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
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
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);
}
}
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);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"credit": "Made with Blockbench",
"texture_size": [256, 128],
"textures": {
"2": "jta:block/greek_platform_end"
"2": "jta:block/greek_platform_end",
"particle": "jta:block/greek_platform_end"
},
"elements": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"credit": "Made with Blockbench",
"texture_size": [256, 128],
"textures": {
"2": "jta:block/greek_platform_end"
"2": "jta:block/greek_platform_end",
"particle": "jta:block/greek_platform_end"
},
"elements": [
{
Expand Down
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"}
}
}
]
}
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"}
}
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
Empty file modified gradlew
100644 → 100755
Empty file.

0 comments on commit 0fe796e

Please sign in to comment.