Skip to content

Commit

Permalink
drastically delayed door data dump
Browse files Browse the repository at this point in the history
  • Loading branch information
Cart3r1234 committed Jan 9, 2025
1 parent e1ae194 commit 68734fa
Show file tree
Hide file tree
Showing 31 changed files with 277 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void neighborChanged(BlockState state, Level world, BlockPos pos, Block b
});

world.setBlock(pos, state.setValue(POWERED, powered).setValue(STATE, State.UNLOCKED), Block.UPDATE_CLIENTS);
world.scheduleTick(pos, this, 15);
world.scheduleTick(pos, this, 5);
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/assets/portalcubed/emissives.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"block/portal_1_floor_button_active": "block/button_emissives",
"item/portal_1_floor_button": "block/button_emissives",

"item/white_octopus_chamber_door": "item/chamber_door_emissive",
"item/white_octopus_chamber_door": "item/octopus_chamber_door_emissive",
"block/white_octopus_chamber_door_top_right_open": "block/chamber_door_emissive",
"block/white_octopus_chamber_door_top_right_unlocked": "block/chamber_door_emissive",
"block/white_octopus_chamber_door_top_right": "block/chamber_door_emissive",
Expand Down Expand Up @@ -64,6 +64,7 @@
"block/white_chamber_door_bottom_left_open": "block/chamber_door_emissive",
"block/white_chamber_door_bottom_left_unlocked": "block/chamber_door_emissive",
"block/gray_chamber_door_top_right_open": "block/chamber_door_emissive",
"block/gray_chamber_door_top_right_unlocked": "block/chamber_door_emissive",
"block/gray_chamber_door_top_right": "block/chamber_door_emissive",
"block/gray_chamber_door_bottom_right_open": "block/chamber_door_emissive",
"block/gray_chamber_door_bottom_right_unlocked": "block/chamber_door_emissive",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"elements": [
{
"from": [0, 0, 8],
"to": [8, 0.01, 16],
"to": [8, 0.05, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 8]},
"faces": {
"up": {"uv": [0, 0, 8, 8], "texture": "#signage_bottom_left"},
"down": {"uv": [0, 0, 8, 8], "texture": "#0", "cullface": "down"}
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"elements": [
{
"from": [8, 0, 8],
"to": [16, 0.01, 16],
"to": [16, 0.05, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]},
"faces": {
"up": {"uv": [0, 0, 8, 8], "texture": "#signage_bottom_right"},
"down": {"uv": [0, 0, 8, 8], "texture": "#0", "cullface": "down"}
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"elements": [
{
"from": [0, 0, 0],
"to": [8, 0.01, 8],
"to": [8, 0.05, 8],
"faces": {
"up": {"uv": [0, 0, 8, 8], "texture": "#signage_top_left"},
"down": {"uv": [0, 0, 8, 8], "texture": "#0", "cullface": "down"}
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"elements": [
{
"from": [8, 0, 0],
"to": [16, 0.01, 8],
"to": [16, 0.05, 8],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 0]},
"faces": {
"up": {"uv": [0, 0, 8, 8], "texture": "#signage_top_right"},
"down": {"uv": [0, 0, 8, 8], "texture": "#0", "cullface": "down"}
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@
"from": [-0.01, -0.01, -0.01],
"to": [6.01, 16.01, 16.01],
"faces": {
"east": {"uv": [0, 8, 4, 12], "texture": "#0"},
"west": {"uv": [4, 8, 8, 12], "texture": "#0"}
"east": {"uv": [0, 0, 4, 4], "texture": "#0"},
"west": {"uv": [4, 0, 8, 4], "texture": "#0"}
}
},
{
"name": "cube inverted",
"from": [6, 16, 16],
"to": [0, 0, 0],
"faces": {
"east": {"uv": [4, 12, 8, 8], "texture": "#0"},
"west": {"uv": [0, 12, 4, 8], "texture": "#0"}
"east": {"uv": [4, 4, 8, 0], "texture": "#0"},
"west": {"uv": [0, 4, 4, 0], "texture": "#0"}
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"elements": [
{
"from": [0, 0, 8],
"to": [8, 0.01, 16],
"to": [8, 0.05, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 8]},
"faces": {
"up": {"uv": [0, 0, 8, 8], "texture": "#signage_bottom_left"},
"down": {"uv": [0, 0, 8, 8], "texture": "#0", "cullface": "down"}
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"elements": [
{
"from": [8, 0, 8],
"to": [16, 0.01, 16],
"to": [16, 0.05, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]},
"faces": {
"up": {"uv": [0, 0, 8, 8], "texture": "#signage_bottom_right"},
"down": {"uv": [0, 0, 8, 8], "texture": "#0", "cullface": "down"}
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"elements": [
{
"from": [0, 0, 0],
"to": [8, 0.01, 8],
"to": [8, 0.05, 8],
"faces": {
"up": {"uv": [0, 0, 8, 8], "texture": "#signage_top_left"},
"down": {"uv": [0, 0, 8, 8], "texture": "#0", "cullface": "down"}
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"elements": [
{
"from": [8, 0, 0],
"to": [16, 0.01, 8],
"to": [16, 0.05, 8],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 0]},
"faces": {
"up": {"uv": [0, 0, 8, 8], "texture": "#signage_top_right"},
"down": {"uv": [0, 0, 8, 8], "texture": "#0", "cullface": "down"}
}
}
]
}
}
16 changes: 8 additions & 8 deletions src/main/resources/assets/portalcubed/sounds.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"sounds": [
{
"name": "portalcubed:door/portal_1_chamber_door",
"volume": 0.8
"volume": 0.6
}
],
"subtitle": "subtitles.portalcubed.chamber_door_open"
Expand All @@ -129,7 +129,7 @@
"sounds": [
{
"name": "portalcubed:door/portal_1_chamber_door",
"volume": 0.8
"volume": 0.6
}
],
"subtitle": "subtitles.portalcubed.chamber_door_close"
Expand All @@ -138,7 +138,7 @@
"sounds": [
{
"name": "portalcubed:door/chamber_door_open",
"volume": 0.6
"volume": 0.5
}
],
"subtitle": "subtitles.portalcubed.chamber_door_open"
Expand All @@ -147,7 +147,7 @@
"sounds": [
{
"name": "portalcubed:door/chamber_door_unlock",
"volume": 0.6
"volume": 0.5
}
],
"subtitle": "subtitles.portalcubed.chamber_door_unlock"
Expand All @@ -156,7 +156,7 @@
"sounds": [
{
"name": "portalcubed:door/chamber_door_lock",
"volume": 0.6
"volume": 0.5
}
],
"subtitle": "subtitles.portalcubed.chamber_door_lock"
Expand All @@ -165,7 +165,7 @@
"sounds": [
{
"name": "portalcubed:door/chamber_door_close",
"volume": 0.6
"volume": 0.5
}
],
"subtitle": "subtitles.portalcubed.chamber_door_close"
Expand All @@ -174,7 +174,7 @@
"sounds": [
{
"name": "portalcubed:door/old_ap_chamber_door_open",
"volume": 0.8
"volume": 0.65
}
],
"subtitle": "subtitles.portalcubed.chamber_door_open"
Expand All @@ -183,7 +183,7 @@
"sounds": [
{
"name": "portalcubed:door/old_ap_chamber_door_close",
"volume": 0.8
"volume": 0.65
}
],
"subtitle": "subtitles.portalcubed.chamber_door_close"
Expand Down
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.
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.
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.
12 changes: 12 additions & 0 deletions src/main/resources/data/minecraft/tags/blocks/doors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"replace": false,
"values": [
"portalcubed:white_chamber_door",
"portalcubed:gray_chamber_door",
"portalcubed:white_octopus_chamber_door",
"portalcubed:gray_octopus_chamber_door",
"portalcubed:white_portal_1_chamber_door",
"portalcubed:metal_portal_1_chamber_door",
"portalcubed:old_ap_chamber_door"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"portalcubed:plywood_slab",
"portalcubed:plywood_stairs",
"portalcubed:plywood_wall",
"portalcubed:plywood_facade"
"portalcubed:plywood_facade",
"portalcubed:metal_portal_1_chamber_door"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@
"portalcubed:small_signage",
"portalcubed:aged_small_signage",

"portalcubed:white_chamber_door",
"portalcubed:gray_chamber_door",
"portalcubed:white_octopus_chamber_door",
"portalcubed:gray_octopus_chamber_door",
"portalcubed:white_portal_1_chamber_door",
"portalcubed:metal_portal_1_chamber_door",
"portalcubed:old_ap_chamber_door",

"portalcubed:floor_button",
"portalcubed:portal_1_floor_button",
"portalcubed:old_ap_floor_button",
Expand Down
12 changes: 12 additions & 0 deletions src/main/resources/data/minecraft/tags/items/doors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"replace": false,
"values": [
"portalcubed:white_chamber_door",
"portalcubed:gray_chamber_door",
"portalcubed:white_octopus_chamber_door",
"portalcubed:gray_octopus_chamber_door",
"portalcubed:white_portal_1_chamber_door",
"portalcubed:metal_portal_1_chamber_door",
"portalcubed:old_ap_chamber_door"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"conditions": [
{
"block": "portalcubed:gray_chamber_door",
"condition": "minecraft:block_state_property",
"properties": {
"half": "lower"
}
}
],
"name": "portalcubed:gray_chamber_door"
}
],
"rolls": 1.0
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"conditions": [
{
"block": "portalcubed:gray_octopus_chamber_door",
"condition": "minecraft:block_state_property",
"properties": {
"half": "lower"
}
}
],
"name": "portalcubed:gray_octopus_chamber_door"
}
],
"rolls": 1.0
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"conditions": [
{
"block": "portalcubed:metal_portal_1_chamber_door",
"condition": "minecraft:block_state_property",
"properties": {
"half": "lower"
}
}
],
"name": "portalcubed:metal_portal_1_chamber_door"
}
],
"rolls": 1.0
}
]
}
Loading

0 comments on commit 68734fa

Please sign in to comment.