Skip to content

Commit

Permalink
Rework animations
Browse files Browse the repository at this point in the history
- Reworked animations to fix inconsistencies and add more variety
- Added mirrored versions
- Used new naming scheme for texture files
- Fixed warnings caused by this resource pack in the minecraft log
- Updated license
- Updated GitHub workflow
  • Loading branch information
Tschipcraft committed Sep 22, 2023
1 parent cddf389 commit aa0a982
Show file tree
Hide file tree
Showing 45 changed files with 203 additions and 132 deletions.
82 changes: 58 additions & 24 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,66 @@ on:
workflow_dispatch:
inputs:
tag:
description: 'version of the data pack'
description: 'Version of the resource pack'
required: true
default: 'v1.0'
default: '1.0'
mc_version:
description: 'Minecraft version(s) the resource pack works in'
required: true
default: '1.20'

jobs:
create_data_pack:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3.5.3
- name: Extract tag
id: tag_version
run: echo ::set-output name=TAG_VERSION::${GITHUB_REF#refs/tags/}
- name: Extract MC verson
id: mc_version
run: sh .github/workflows/get-mc-version.sh
run: echo "TAG_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Find and replace uninstall file name
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "${file_name}"
replace: ${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-datapack.zip
regex: false
include: "**uninstall.mcfunction"
- name: Find and replace data pack version
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "${version}"
replace: ${{ github.event.inputs.tag }}
regex: false

# Check for existence of datapack and/or resourcepack folders.
# Check for existence of datapack, mod and/or resourcepack folders.
- name: Check for data folder
id: check_datapack_folder
uses: andstor/file-existence-action@v1
uses: andstor/file-existence-action@v2
with:
files: "data"
- name: Check for assets folder
- name: Check for mod folders
id: check_mod_folder
uses: andstor/file-existence-action@v2
with:
files: "META-INF, net, fabric.mod.json, assets"
- name: Check for resource pack folder
id: check_assets_folder
uses: andstor/file-existence-action@v1
uses: andstor/file-existence-action@v2
with:
files: "assets"
files: "assets/minecraft"

- name: Create data pack zip file
uses: montudor/action-zip@v0.1.0
uses: montudor/action-zip@v1
if: steps.check_datapack_folder.outputs.files_exists == 'true'
with:
args: zip -qq datapack.zip -r data pack.mcmeta pack.png LICENSE README.md
- name: Create mod jar file
uses: montudor/action-zip@v1
if: steps.check_mod_folder.outputs.files_exists == 'true'
with:
args: zip -qq mod.zip -r data assets META-INF net fabric.mod.json pack.mcmeta pack.png LICENSE README.md
- name: Create asset pack zip file
uses: montudor/action-zip@v0.1.0
uses: montudor/action-zip@v1
if: steps.check_assets_folder.outputs.files_exists == 'true'
with:
args: zip -qq assetpack.zip -r assets pack.mcmeta pack.png LICENSE README.md
Expand All @@ -49,28 +73,38 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.inputs.tag }}
release_name: Release ${{ github.event.inputs.tag }}
tag_name: v${{ github.event.inputs.tag }}
release_name: Release v${{ github.event.inputs.tag }}
draft: false
prerelease: false

- name: Upload assetpack release asset
- name: Upload datapack release asset
uses: actions/upload-release-asset@v1
if: steps.check_assets_folder.outputs.files_exists == 'true'
if: steps.check_datapack_folder.outputs.files_exists == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./assetpack.zip
asset_name: ${{ github.event.repository.name }}-${{ github.event.inputs.tag }}-mc${{ steps.mc_version.outputs.MC_VERSION }}-resourcepack.zip
asset_path: ./datapack.zip
asset_name: ${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-datapack.zip
asset_content_type: application/zip
- name: Upload datapack release asset
- name: Upload mod release asset
uses: actions/upload-release-asset@v1
if: steps.check_datapack_folder.outputs.files_exists == 'true'
if: steps.check_mod_folder.outputs.files_exists == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./datapack.zip
asset_name: ${{ github.event.repository.name }}-${{ github.event.inputs.tag }}-mc${{ steps.mc_version.outputs.MC_VERSION }}-datapack.zip
asset_path: ./mod.zip
asset_name: ${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-mod.jar
asset_content_type: application/jar
- name: Upload assetpack release asset
uses: actions/upload-release-asset@v1
if: steps.check_assets_folder.outputs.files_exists == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./assetpack.zip
asset_name: ${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-resourcepack.zip
asset_content_type: application/zip
39 changes: 0 additions & 39 deletions .github/workflows/get-mc-version.sh

This file was deleted.

73 changes: 52 additions & 21 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,52 @@
MIT License

Copyright (c) 2023 Tschipcraft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Tschipcraft's Custom License for Minecraft Mods, Data Packs and Resource Packs
Version 1.0 - 2023

TL;DR - Not exhaustive, please read the whole license for detailed information:
- Don't steal, don't re-upload, don't spread misinformation.
- Monetized videos, livestreams with this or about this pack and inclusion in modpacks are allowed, as long as credit is given by linking back to official download locations.
- Only use parts or the entire pack in your project, if you ask me and I say yes.

Copyright © 2023 Tschipcraft

This license shall be included in all copies or substantial portions of this project.


Permitted Uses:

1. You are PERMITTED to freely use this project on singleplayer worlds and multiplayer worlds/servers in your Minecraft game.

2. You are PERMITTED to modify this project's code for personal use or on your own private servers.

3. You are PERMITTED to view this project's code, take reference, and learn from it.

4. You are PERMITTED to create content (e.g., videos, livestreams) covering and showcasing this project on websites such as YouTube, Twitch, Instagram, TikTok, etc., or on your own website, IF you provide a prominent link back to at least one of the official download locations ([GitHub](https://github.com/Tschipcraft/better_flame_particles), [CurseForge](https://www.curseforge.com/minecraft/texture-packs/better-flame-particles), [Modrinth](https://modrinth.com/resourcepack/better-flame-particles)) in the description or an easily accessible place. You may also monetize this content.

5. You are PERMITTED to include this project in your modpack, IF you link back to at least one of the official download locations ([GitHub](https://github.com/Tschipcraft/better_flame_particles), [CurseForge](https://www.curseforge.com/minecraft/texture-packs/better-flame-particles), [Modrinth](https://modrinth.com/resourcepack/better-flame-particles)), or by simply adding this project in the embedded or included mods sections directly on Modrinth and/or CurseForge.

6. You are PERMITTED to use parts or the whole project in your own project (Mod, Data Pack, Resource Pack, Map, Server, etc.), IF you obtain explicit permission from the creator (Tschipcraft) first. To request permission, please contact me via email at tschipcraft@gmail.com or message me directly on Planet Minecraft (https://www.planetminecraft.com/account/pms/new/tschipo), CurseForge (https://legacy.curseforge.com/private-messages/send?recipient=tschipcraft), or Discord (@tschipo) and include detailed information about your intentions.


Prohibited Uses:

1. You may NOT redistribute or re-upload this project, modified or unmodified.

2. You may NOT redistribute single parts, files, or standalones of this project.

3. You may NOT claim that this project was made by you.

4. You may NOT spread misinformation about this project, including but not limited to promising not implemented features or support for an unsupported Minecraft version.


Liability and Warranty:

This project is provided "as is," without warranty of any kind, expressed or implied. In no event shall the creator (Tschipcraft) be held liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the project or the use or other dealings in the project.

All works of Tschipcraft are of and owned by Tschipcraft.

By using this project, you agree to abide by the terms of this license. Any violation of the terms will result in the termination of the rights granted hereunder.

Exceptions to this license may be granted, if you have a special case, contact me via email at tschipcraft@gmail.com or message me directly on Planet Minecraft (https://www.planetminecraft.com/account/pms/new/tschipo), CurseForge (https://legacy.curseforge.com/private-messages/send?recipient=tschipcraft), or Discord (@tschipo) and include detailed information about your intentions.

This license shall be governed by and construed in accordance with the laws of Germany. Any legal action or proceeding arising under or in connection with this license shall be brought exclusively in the courts of Germany.

This license is subject to change. The latest version of this license will be available at https://github.com/Tschipcraft/better_flame_particles/blob/master/LICENSE, and your continued use of the project after changes happen, will constitute your acceptance of the changes.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@
</h1>
<p align="center">
<a href="https://github.com/Tschipcraft/better_flame_particles/stargazers"><img src="https://img.shields.io/github/stars/Tschipcraft/better_flame_particles?colorA=181712&colorB=fff5c6&style=for-the-badge"></a>
<a href="https://www.curseforge.com/minecraft/texture-packs/better-flame-particles"><img src="https://cf.way2muchnoise.eu/full_782814_downloads.svg?badge_style=for_the_badge"></a>
<a href="https://modrinth.com/resourcepack/better-flame-particles"><img src="https://img.shields.io/modrinth/dt/better-flame-particles?label=Modrinth&colorA=2d2d2d&colorB=44cc11&style=for-the-badge&logo=modrinth"></a>
<a href="https://www.curseforge.com/minecraft/texture-packs/better-flame-particles"><img src="https://img.shields.io/curseforge/dt/782814?logo=curseforge&label=CurseForge&colorA=181712&colorB=bd5216&style=for-the-badge"></a>
<a href="https://modrinth.com/resourcepack/better-flame-particles"><img src="https://img.shields.io/modrinth/dt/better-flame-particles?label=Modrinth&colorA=181712&colorB=44cc11&style=for-the-badge&logo=modrinth"></a>
<a href="https://github.com/Tschipcraft/better_flame_particles/releases/latest"><img src="https://img.shields.io/github/downloads/Tschipcraft/better_flame_particles/total?logo=github&colorA=181712&colorB=fff5c6&style=for-the-badge"></a>
</p>

> A resource pack for 1.14x-1.20x
> A resource pack for Minecraft 1.14x-1.20x
## Features

This resource pack changes the flame and soul flame particles to be animated.
_Witness mesmerizing animations as the flames dance and the soul flames flicker._

This resource pack changes the flame and soul flame particles to animated versions.


## Preview
Expand All @@ -26,7 +28,7 @@ This resource pack changes the flame and soul flame particles to be animated.

## Installation

Download the latest release from [here](https://github.com/Tschipcraft/better_flame_particles/releases/latest), put the resourcepack .zip file into your `resourcepacks` folder and activate it ingame.
Download the latest release from [here](https://github.com/Tschipcraft/better_flame_particles/releases/latest), put the resource pack .zip file into your `resourcepacks` folder and activate it ingame.

Also available on Modrinth and CurseForge.

Expand Down
9 changes: 6 additions & 3 deletions assets/minecraft/particles/flame.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"textures": [
"minecraft:flame",
"minecraft:flame_alt",
"minecraft:flame_alts"
"minecraft:flame_0",
"minecraft:flame_1",
"minecraft:flame_2",
"minecraft:flame_3",
"minecraft:flame_4",
"minecraft:flame_5"
]
}
9 changes: 6 additions & 3 deletions assets/minecraft/particles/soul_fire_flame.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"textures": [
"minecraft:soul_fire_flame",
"minecraft:soul_fire_flame_alt",
"minecraft:soul_fire_flame_alts"
"minecraft:soul_fire_flame_0",
"minecraft:soul_fire_flame_1",
"minecraft:soul_fire_flame_2",
"minecraft:soul_fire_flame_3",
"minecraft:soul_fire_flame_4",
"minecraft:soul_fire_flame_5"
]
}
Binary file removed assets/minecraft/textures/particle/flame.png
Binary file not shown.
6 changes: 0 additions & 6 deletions assets/minecraft/textures/particle/flame.png.mcmeta

This file was deleted.

Binary file added assets/minecraft/textures/particle/flame_0.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 assets/minecraft/textures/particle/flame_0.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"frametime": 4,
"frames": [5,4,3,2,1,0]
}
}
Binary file added assets/minecraft/textures/particle/flame_1.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 assets/minecraft/textures/particle/flame_1.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"frametime": 3,
"frames": [1,0,3,2]
}
}
Binary file added assets/minecraft/textures/particle/flame_2.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 assets/minecraft/textures/particle/flame_2.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"frametime": 4,
"frames": [3,2,1,0]
}
}
Binary file added assets/minecraft/textures/particle/flame_3.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 assets/minecraft/textures/particle/flame_3.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"frametime": 4,
"frames": [5,4,3,2,1,0]
}
}
Binary file added assets/minecraft/textures/particle/flame_4.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 assets/minecraft/textures/particle/flame_4.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"frametime": 4,
"frames": [1,0,3,2]
}
}
Binary file added assets/minecraft/textures/particle/flame_5.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 assets/minecraft/textures/particle/flame_5.png.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation": {
"frametime": 3,
"frames": [3,2,1,0]
}
}
Binary file removed assets/minecraft/textures/particle/flame_alt.png
Binary file not shown.
6 changes: 0 additions & 6 deletions assets/minecraft/textures/particle/flame_alt.png.mcmeta

This file was deleted.

Binary file removed assets/minecraft/textures/particle/flame_alts.png
Binary file not shown.
6 changes: 0 additions & 6 deletions assets/minecraft/textures/particle/flame_alts.png.mcmeta

This file was deleted.

Binary file removed assets/minecraft/textures/particle/soul_fire_flame.png
Binary file not shown.
6 changes: 0 additions & 6 deletions assets/minecraft/textures/particle/soul_fire_flame.png.mcmeta

This file was deleted.

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": {
"frametime": 4,
"frames": [5,4,3,2,1,0]
}
}
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": {
"frametime": 3,
"frames": [1,0,3,2]
}
}
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": {
"frametime": 4,
"frames": [3,2,1,0]
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit aa0a982

Please sign in to comment.