Skip to content

Commit c787ae8

Browse files
committed
Merge branch '1.16.x' into feat/tunnels-api
2 parents 16e5234 + a1a92c6 commit c787ae8

35 files changed

+597
-325
lines changed

.github/changelog.json

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,33 @@
11
{
22
"resolve": "commits",
3-
"sort": "asc"
3+
"sort": "asc",
4+
"template": ".github/changelog.tmpl",
5+
"groupings": [
6+
{
7+
"name": "Fixes",
8+
"patterns": [
9+
"(?i)\\bbug\\b",
10+
"(?i)\\bfix\\b"
11+
]
12+
},
13+
{
14+
"name": "Features",
15+
"patterns": [
16+
"^(?i)feat:\\b",
17+
"^(?i)add:\\b"
18+
]
19+
},
20+
{
21+
"name": "Cleanup",
22+
"patterns": [
23+
"(?i)\\brefactor:\\b"
24+
]
25+
},
26+
{
27+
"name": "Other",
28+
"patterns": [
29+
".?"
30+
]
31+
}
32+
]
433
}

.github/changelog.tmpl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## {{.Version}}
2+
3+
{{range .Grouped -}}
4+
### {{ .Name }}
5+
6+
{{range .Items -}}
7+
* {{.Title}}{{if .IsPull}} ([contributed]({{.PullURL}}) by [{{.Author}}]({{.AuthorURL}})){{end}} \[[{{.CommitHashShort}}]({{.CommitURL}})\]
8+
{{end}}
9+
{{end}}
10+
11+
*For more details, see [{{.PreviousVersion}}..{{.Version}}]({{.CompareURL}})*

.github/workflows/ci-tests.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: push
55
jobs:
66
vars:
77
name: Get Variables
8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-20.04
99
outputs:
1010
release_type: ${{steps.cf_release_type.outputs.value }}
1111
mod_version: ${{steps.mod_version.outputs.value }}
@@ -29,23 +29,25 @@ jobs:
2929

3030
jar:
3131
name: Publish JAR
32-
runs-on: ubuntu-latest
32+
runs-on: ubuntu-20.04
3333
needs: [vars]
3434
steps:
3535
- name: Checkout
3636
uses: actions/checkout@v2
3737

38-
- name: Set up JDK 1.8
38+
- name: Set up JDK 8
3939
uses: actions/setup-java@v1
4040
with:
41-
java-version: 1.8
41+
java-version: "8.0.282"
4242

4343
- name: Cache Gradle packages
4444
uses: actions/cache@v2
4545
with:
46-
path: ~/.gradle/caches
47-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
48-
restore-keys: ${{ runner.os }}-gradle
46+
path: |
47+
~/.gradle/caches
48+
~/.gradle/wrapper
49+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
50+
restore-keys: ${{ runner.os }}-gradle-
4951

5052
- name: Grant execute permission for gradlew
5153
run: chmod +x gradlew

.github/workflows/tagged-release.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
vars:
1111
name: Get Variables
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-20.04
1313
outputs:
1414
release_type: ${{steps.cf_release_type.outputs.value }}
1515
cf_project: ${{steps.cf_project.outputs.value }}
@@ -49,7 +49,7 @@ jobs:
4949

5050
changelog:
5151
name: Generate Changelog (tags)
52-
runs-on: ubuntu-latest
52+
runs-on: ubuntu-20.04
5353
steps:
5454
- name: Checkout
5555
uses: actions/checkout@v2
@@ -98,7 +98,7 @@ jobs:
9898

9999
jar:
100100
name: Publish JAR
101-
runs-on: ubuntu-latest
101+
runs-on: ubuntu-20.04
102102
needs: [vars, changelog]
103103
steps:
104104
- name: Download Changelog Results
@@ -113,14 +113,16 @@ jobs:
113113
- name: Set up JDK 1.8
114114
uses: actions/setup-java@v1
115115
with:
116-
java-version: 1.8
116+
java-version: "8.0.282"
117117

118118
- name: Cache Gradle packages
119119
uses: actions/cache@v2
120120
with:
121-
path: ~/.gradle/caches
122-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
123-
restore-keys: ${{ runner.os }}-gradle
121+
path: |
122+
~/.gradle/caches
123+
~/.gradle/wrapper
124+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
125+
restore-keys: ${{ runner.os }}-gradle-
124126

125127
- name: Grant execute permission for gradlew
126128
run: chmod +x gradlew
@@ -139,7 +141,7 @@ jobs:
139141

140142
view:
141143
name: View Changelog Output
142-
runs-on: ubuntu-latest
144+
runs-on: ubuntu-20.04
143145
needs: [changelog]
144146
steps:
145147
- name: Download Build Results
@@ -151,7 +153,7 @@ jobs:
151153

152154
release:
153155
name: Make GitHub Release
154-
runs-on: ubuntu-latest
156+
runs-on: ubuntu-20.04
155157
needs: [changelog, vars, jar]
156158
steps:
157159
- name: Download Build Results

README.md

Lines changed: 1 addition & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -30,72 +30,9 @@ By default, you spawn in the center of the room. You can change this by shift-ri
3030

3131
Make sure not to obstruct the spawn location, there is currently no mechanic to automatically search for a better spawn location. You don't want to have to break the blocks you spawn in.
3232

33-
#### Recovery
34-
35-
If you accidentally deleted your Compact Machines block with all your stuff still inside the Machine it can be recovered using the ```/compactmachines machines view``` command.
36-
37-
It allows browsing through all existing Compact Machines and provides a button to give yourself a Compact Machine Block linked to the viewed machine. Be aware: this breaks already existing links, i.e. if the machine should already exist somewhere it is being disconnected from the room.
38-
39-
This command only works for server operators.
40-
41-
42-
#### Technical aspects
43-
44-
- [Compact Machines 3 Technical Details](https://github.com/CompactMods/CompactMachines/wiki/Technical-Details-(CM3))
45-
46-
## Tunnels
47-
48-
Use these inside your Compact Machine room to create connections to the outside faces of your Compact Machine blocks. You can place them by right-clicking one of the wall blocks inside your Compact Machine with a Tunnel Tool.
49-
50-
By right-clicking them again you can cycle through the outside faces it is connected to - The One Probe helps with that by showing the face as well.
51-
52-
No face can be connected to twice, which means you can place a total of six tunnels anywhere in your Machine.
53-
54-
### Redstone Tunnels
55-
56-
They are a separate system, meaning you can place another 6 of them, but they only transfer redstone signals. They are also not bidirectional, i.e. you have to specify whether it is an input or output tunnel. You can change their mode by hitting the colored indicator square in the top right corner.
57-
58-
#### Compatibility
59-
60-
Tunnels are basically proxy blocks utilizing Forge Capabilities to provide a connection between the two blocks. This means that TileEntities using capabilities to talk to each other will work out of the box, this includes e.g. items, fluids and forge energy.
61-
62-
Other systems, usually multiblock-structures like cables and pipes, most of the time require custom implementations to work properly.
63-
64-
This is why e.g. EnderIO conduits and Applied Energistics connections do not work. This might change in the future when they either switch to a fully capability-based system or when this mod adds compatibility layers itself. Both are lots of work, so don't expect this to happen.
65-
66-
Since this is asked very frequently:
67-
- Refined Storage is supported directly since they are using capabilities.
68-
- There is a AE2 addon mod called
69-
[ME Capability Adapter](https://minecraft.curseforge.com/projects/capability-adapter)
70-
that adds a capability proxy block.
71-
7233
## Miniaturization Crafting
73-
See the [Compact Crafting] mod instead.
74-
75-
#### Setup
76-
77-
You will require 4 Miniaturization Field Projectors placed in a cross shape creating an odd-sized cube structure. Right click a Field Project to let it tell you where you need to place the next projector - missing locations will be highlighted in the world.
78-
79-
You might have to dig out the floor or place the projectors on pedestals.
80-
81-
Once you placed the projectors correctly and no blocks are obstructing the miniaturization
82-
field, the field should visualize.
83-
84-
Watch this (outdated) youtube video for a basic crafting example:
85-
86-
[![Watch video on youtube](https://img.youtube.com/vi/p-F8ScV3z4U/0.jpg)](https://www.youtube.com/watch?v=p-F8ScV3z4U)
87-
88-
You can disable the field projection by applying a redstone signal to any of the projectors.
89-
90-
91-
#### Creating custom recipes
92-
If you're looking for the Miniaturization Crafting system, take a look at [Compact Crafting] instead.
93-
94-
95-
## World Gen
34+
See the [Compact Crafting] mod instead. The crafting mechanic was split in 1.16 due to the dimension and worldgen changes.
9635

97-
"Broken" Compact Machines sometimes generate in the overworld. Harvest their blocks to use for your own machines.
9836

99-
This can be disabled in the config files.
10037

10138
[Compact Crafting]: https://github.com/robotgryphon/CompactCrafting

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ forge_version=35.1.13
88
mappings_version=20201028-1.16.3
99

1010
mod_id=compactmachines
11-
mod_version=4.0.0-alpha.6
11+
mod_version=4.0.0-alpha.7
1212

1313
# Dependencies and Libs
1414
jei_version=7.6.0.58

src/main/java/com/robotgryphon/compactmachines/block/BlockBaseTunnel.java

Lines changed: 0 additions & 93 deletions
This file was deleted.

src/main/java/com/robotgryphon/compactmachines/block/BlockCompactMachine.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,16 +159,14 @@ public ItemStack getPickBlock(BlockState state, RayTraceResult target, IBlockRea
159159
Block given = CompactMachineUtil.getMachineBlockBySize(this.size);
160160
ItemStack stack = new ItemStack(given, 1);
161161

162-
CompoundNBT nbt = stack.getOrCreateTag();
162+
CompoundNBT nbt = stack.getOrCreateChildTag("cm");
163163
nbt.putString("size", this.size.getName());
164164

165165
CompactMachineTile tileEntity = (CompactMachineTile) world.getTileEntity(pos);
166166
if (tileEntity != null) {
167167
nbt.putInt("coords", tileEntity.machineId);
168168
}
169169

170-
stack.setTag(nbt);
171-
172170
return stack;
173171
}
174172

src/main/java/com/robotgryphon/compactmachines/block/IMetaBlockName.java

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)