Skip to content
Merged
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
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ You can also download the [IntelliJ IDEA][idea] IDE, which is what we recommend
- You can now begin making changes to the project. If you're using IntelliJ IDEA, you can run the game by clicking on the `runClient` button in the gradle window.
If you're not using IntelliJ IDEA, you can run the game by running `./gradlew runClient`.

### Editing the block animations

The texture files of the blocks that have various glow-like effects on them are generated procedurally by [a dedicated script](https://github.com/sjeulu/advanced-peripherals-util)
from the source textures in `./src/main/resources/`. Making updates to the source textures that don't involve changing the glowing parts of the blocks (which can be identified by
comparing the textures in `./src/main/resources/` with what you can see in the game and in `./src/generated/block-textures/`) requires regenerating the animations with the script
as per instructions in [its README](https://github.com/sjeulu/advanced-peripherals-util/blob/main/README.md).

If you're having trouble setting up a development environment, [ask the community via discord][discord] or [open an issue][new-issue].

## Developing Advanced Peripherals
Expand Down
17 changes: 17 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,23 @@ tasks.register('publishCurseForge', TaskPublishCurseForge, { task ->
}
})

tasks.register("copyBlockTextures", Copy) {
from 'src/generated/block-textures'
into "src/generated/resources/assets/${project.mod_id}/textures/block"
}

tasks.named("runData") {
finalizedBy("copyBlockTextures")
}

tasks.named("processResources") {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

tasks.withType(Jar).configureEach {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

githubRelease {
releaseAssets = jar.archiveFile

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/block_reader_down.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 4
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/block_reader_east.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 4
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/block_reader_north.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 4
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/block_reader_south.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
Binary file added src/generated/block-textures/block_reader_up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/block_reader_up.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 4
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/block_reader_west.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 4
}
}
Binary file added src/generated/block-textures/chat_box.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/chat_box.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 4
}
}
Binary file added src/generated/block-textures/chat_box_front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/chat_box_front.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": false,
"frametime": 2
}
}
Binary file added src/generated/block-textures/chat_box_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/chat_box_top.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 8
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/colony_integrator.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": false,
"frametime": 2
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/colony_integrator_top.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
Binary file added src/generated/block-textures/energy_detector.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/energy_detector.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/energy_detector_back.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/energy_detector_east.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": false,
"frametime": 2
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/energy_detector_front.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/energy_detector_top.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/environment_detector.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": false,
"frametime": 4
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
Binary file added src/generated/block-textures/geo_scanner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/geo_scanner.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
Binary file added src/generated/block-textures/geo_scanner_front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/geo_scanner_front.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 2
}
}
Binary file added src/generated/block-textures/geo_scanner_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/geo_scanner_top.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/inventory_manager.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/generated/block-textures/inventory_manager_top.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
Binary file added src/generated/block-textures/me_bridge.png
6 changes: 6 additions & 0 deletions src/generated/block-textures/me_bridge.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
Binary file added src/generated/block-textures/me_bridge_front.png
6 changes: 6 additions & 0 deletions src/generated/block-textures/me_bridge_front.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": false,
"frametime": 2
}
}
Binary file added src/generated/block-textures/me_bridge_top.png
6 changes: 6 additions & 0 deletions src/generated/block-textures/me_bridge_top.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
Binary file added src/generated/block-textures/nbt_storage.png
6 changes: 6 additions & 0 deletions src/generated/block-textures/nbt_storage.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
Binary file added src/generated/block-textures/nbt_storage_front.png
6 changes: 6 additions & 0 deletions src/generated/block-textures/nbt_storage_front.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": false,
"frametime": 2
}
}
Binary file added src/generated/block-textures/nbt_storage_top.png
6 changes: 6 additions & 0 deletions src/generated/block-textures/nbt_storage_top.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
6 changes: 6 additions & 0 deletions src/generated/block-textures/player_detector_front.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
6 changes: 6 additions & 0 deletions src/generated/block-textures/player_detector_side.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
6 changes: 6 additions & 0 deletions src/generated/block-textures/player_detector_top.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": false,
"frametime": 2
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 16
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading