Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
## Bugfixes
- Rectify buggy implementation of Advanced Barriers.
- typo: `condition` field (previously `conditions`) in `PredicateBarrierBlock`
- fix: Don't cache registry accesses

## Changes
- Operator items can now only be placed in creative mode
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Contribution Guide
Hello, contributor! There are a few things you need to know before contributing to Barricade.

## JDK
You will need the [JetBrains Runtime](https://github.com/JetBrains/JetBrainsRuntime) or a JDK with DCEVM support.
If you use IntelliJ, you can download the JBR through the GUI. You can change the JDK in IntelliJ in File → Project Structure → Project → SDK.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ This mod may also change barrier and light block rendering, to be friendlier to

You can enable/disable the above by applying/removing the Barricade Rendering resource pack.

## Contribution
Please read the `CONTRIBUTING.md` document before contributing or if you have any issues building the mod.

## Client-side Only

This mod is able to run on clients without having it on the server. When run like this, the mod will only apply the
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package net.modgarden.barricade.gradle

object Versions {
const val MOD = "2.0.7"
const val MOD = "2.1.0"

const val MINECRAFT = "1.21.1"
const val PARCHMENT_MINECRAFT = "1.21"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
{
"variants": {
"face=ceiling,facing=east,powered=false": {
"model": "barricade:block/creative_only_button",
"x": 180,
"y": 270
},
"face=ceiling,facing=east,powered=true": {
"model": "barricade:block/creative_only_button_pressed",
"x": 180,
"y": 270
},
"face=ceiling,facing=north,powered=false": {
"model": "barricade:block/creative_only_button",
"x": 180,
"y": 180
},
"face=ceiling,facing=north,powered=true": {
"model": "barricade:block/creative_only_button_pressed",
"x": 180,
"y": 180
},
"face=ceiling,facing=south,powered=false": {
"model": "barricade:block/creative_only_button",
"x": 180
},
"face=ceiling,facing=south,powered=true": {
"model": "barricade:block/creative_only_button_pressed",
"x": 180
},
"face=ceiling,facing=west,powered=false": {
"model": "barricade:block/creative_only_button",
"x": 180,
"y": 90
},
"face=ceiling,facing=west,powered=true": {
"model": "barricade:block/creative_only_button_pressed",
"x": 180,
"y": 90
},
"face=floor,facing=east,powered=false": {
"model": "barricade:block/creative_only_button",
"y": 90
},
"face=floor,facing=east,powered=true": {
"model": "barricade:block/creative_only_button_pressed",
"y": 90
},
"face=floor,facing=north,powered=false": {
"model": "barricade:block/creative_only_button"
},
"face=floor,facing=north,powered=true": {
"model": "barricade:block/creative_only_button_pressed"
},
"face=floor,facing=south,powered=false": {
"model": "barricade:block/creative_only_button",
"y": 180
},
"face=floor,facing=south,powered=true": {
"model": "barricade:block/creative_only_button_pressed",
"y": 180
},
"face=floor,facing=west,powered=false": {
"model": "barricade:block/creative_only_button",
"y": 270
},
"face=floor,facing=west,powered=true": {
"model": "barricade:block/creative_only_button_pressed",
"y": 270
},
"face=wall,facing=east,powered=false": {
"model": "barricade:block/creative_only_button",
"uvlock": true,
"x": 90,
"y": 90
},
"face=wall,facing=east,powered=true": {
"model": "barricade:block/creative_only_button_pressed",
"uvlock": true,
"x": 90,
"y": 90
},
"face=wall,facing=north,powered=false": {
"model": "barricade:block/creative_only_button",
"uvlock": true,
"x": 90
},
"face=wall,facing=north,powered=true": {
"model": "barricade:block/creative_only_button_pressed",
"uvlock": true,
"x": 90
},
"face=wall,facing=south,powered=false": {
"model": "barricade:block/creative_only_button",
"uvlock": true,
"x": 90,
"y": 180
},
"face=wall,facing=south,powered=true": {
"model": "barricade:block/creative_only_button_pressed",
"uvlock": true,
"x": 90,
"y": 180
},
"face=wall,facing=west,powered=false": {
"model": "barricade:block/creative_only_button",
"uvlock": true,
"x": 90,
"y": 270
},
"face=wall,facing=west,powered=true": {
"model": "barricade:block/creative_only_button_pressed",
"uvlock": true,
"x": 90,
"y": 270
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
"variants": {
"face=ceiling,facing=east,powered=false": {
"model": "minecraft:block/lever_on",
"x": 180,
"y": 270
},
"face=ceiling,facing=east,powered=true": {
"model": "minecraft:block/lever",
"x": 180,
"y": 270
},
"face=ceiling,facing=north,powered=false": {
"model": "minecraft:block/lever_on",
"x": 180,
"y": 180
},
"face=ceiling,facing=north,powered=true": {
"model": "minecraft:block/lever",
"x": 180,
"y": 180
},
"face=ceiling,facing=south,powered=false": {
"model": "minecraft:block/lever_on",
"x": 180
},
"face=ceiling,facing=south,powered=true": {
"model": "minecraft:block/lever",
"x": 180
},
"face=ceiling,facing=west,powered=false": {
"model": "minecraft:block/lever_on",
"x": 180,
"y": 90
},
"face=ceiling,facing=west,powered=true": {
"model": "minecraft:block/lever",
"x": 180,
"y": 90
},
"face=floor,facing=east,powered=false": {
"model": "minecraft:block/lever_on",
"y": 90
},
"face=floor,facing=east,powered=true": {
"model": "minecraft:block/lever",
"y": 90
},
"face=floor,facing=north,powered=false": {
"model": "minecraft:block/lever_on"
},
"face=floor,facing=north,powered=true": {
"model": "minecraft:block/lever"
},
"face=floor,facing=south,powered=false": {
"model": "minecraft:block/lever_on",
"y": 180
},
"face=floor,facing=south,powered=true": {
"model": "minecraft:block/lever",
"y": 180
},
"face=floor,facing=west,powered=false": {
"model": "minecraft:block/lever_on",
"y": 270
},
"face=floor,facing=west,powered=true": {
"model": "minecraft:block/lever",
"y": 270
},
"face=wall,facing=east,powered=false": {
"model": "minecraft:block/lever_on",
"x": 90,
"y": 90
},
"face=wall,facing=east,powered=true": {
"model": "minecraft:block/lever",
"x": 90,
"y": 90
},
"face=wall,facing=north,powered=false": {
"model": "minecraft:block/lever_on",
"x": 90
},
"face=wall,facing=north,powered=true": {
"model": "minecraft:block/lever",
"x": 90
},
"face=wall,facing=south,powered=false": {
"model": "minecraft:block/lever_on",
"x": 90,
"y": 180
},
"face=wall,facing=south,powered=true": {
"model": "minecraft:block/lever",
"x": 90,
"y": 180
},
"face=wall,facing=west,powered=false": {
"model": "minecraft:block/lever_on",
"x": 90,
"y": 270
},
"face=wall,facing=west,powered=true": {
"model": "minecraft:block/lever",
"x": 90,
"y": 270
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/button",
"textures": {
"texture": "minecraft:block/stone"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/button_inventory",
"textures": {
"texture": "minecraft:block/stone"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/button_pressed",
"textures": {
"texture": "minecraft:block/stone"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"parent": "barricade:block/creative_only_button_inventory"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "minecraft:block/lever"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"values": [
"minecraft:barrier",
"#barricade:directional_barriers",
"#barricade:predicate_barriers"
]
}
Comment thread
sylv256 marked this conversation as resolved.
"values": [
"minecraft:barrier",
"#barricade:directional_barriers",
"#barricade:predicate_barriers"
]
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"values": [
"barricade:advanced_barrier",
"barricade:down_barrier",
"barricade:up_barrier",
"barricade:north_barrier",
"barricade:south_barrier",
"barricade:east_barrier",
"barricade:west_barrier",
"barricade:horizontal_barrier",
"barricade:vertical_barrier"
]
}
"values": [
"barricade:advanced_barrier",
"barricade:down_barrier",
"barricade:up_barrier",
"barricade:north_barrier",
"barricade:south_barrier",
"barricade:east_barrier",
"barricade:west_barrier",
"barricade:horizontal_barrier",
"barricade:vertical_barrier"
]
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"values": [
"barricade:advanced_barrier",
"barricade:player_barrier",
"barricade:mob_barrier",
"barricade:passive_barrier",
"barricade:hostile_barrier"
]
}
"values": [
"barricade:advanced_barrier",
"barricade:player_barrier",
"barricade:mob_barrier",
"barricade:passive_barrier",
"barricade:hostile_barrier"
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"values": [
"#barricade:entity_barriers",
"barricade:creative_only_barrier"
]
}
"values": [
"#barricade:entity_barriers",
"barricade:creative_only_barrier"
]
}
Loading