Skip to content

Commit e8a1a90

Browse files
release(0.1.1): update to 1.20
1 parent 37dfa31 commit e8a1a90

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

CHANGELOG.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,18 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased]
8+
## [0.1.1] - 2023-07-29
9+
Update to 1.20
910

1011
### Added
1112
- Quaternion to xyz conversion
1213

14+
### Changed
15+
- Now allows for {x,y,z} or [x,y,z] in conversion functions
16+
17+
### Fixed
18+
- Updated fields that were changed in 1.20
19+
1320
## [0.1.0] - 2023-02-11
1421
Initial release!
1522

README.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ MCAnim is a Minecraft datapack library that aims to make it easy to run certain
44

55
## Current features:
66

7-
- **Animation playing**\
8-
There are four ways to play animations: `generic`, `scale`, `translate` and `rotate`. Generic allows you to apply many animations including modifying duration at the same time. Called by running first the command `data modify storage mcanim:api/display_animations/generic animation set value {}`, and replacing the `{}` with your data. This supports setting the `duration` property, which decides the length of the animation, and any other property will be treated as an animation. Scale and translate do the same, but take x, y and z properties instead. Then run the function `mcanim:api/display_animations/<function>` as the entity you want to animate, to see it play.
7+
- **Animation playing**
8+
There are four ways to play animations: `generic`, `scale`, `translate` and `rotate`. Generic allows you to apply many animations including modifying duration at the same time. Called by running first the command `data modify storage mcanim:api/display_animation/generic animation set value {}`, and replacing the `{}` with your data. This supports setting the `duration` property, which decides the length of the animation, and any other property will be treated as an animation. Scale and translate do the same, but take x, y and z properties instead. Then run the function `mcanim:api/display_animation/<function>` as the entity you want to animate, to see it play.
99

10-
- **Rotation and quaternions**
11-
Rotation also takes x, y and z components in degrees, but as Minecraft uses quaternions for rotation, it automatically converts the angles given into quaternions. This can be done manually by setting the `mcanim:api/maths/xyz_to_quaternion target` to `{x, y, z}`, where you give each property the desired value. Then run `function mcanim:api/maths/xyz_to_quaternion`. The result will be in `mcanim:api/maths/xyz_to_quaternion output`
10+
- **Rotation and quaternions**
11+
Rotation also takes x, y and z components in degrees, but as Minecraft uses quaternions for rotation, it automatically converts the angles given into quaternions. This can be done manually by setting the `mcanim:api/maths/xyz_to_quaternion target` to `{x, y, z}` or `[x, y, z]`, where you give each property the desired value. Then run `function mcanim:api/maths/xyz_to_quaternion`. The result will be in `mcanim:api/maths/xyz_to_quaternion output`
1212

13-
Those are all of the features currently implemented, if you would like to suggest more or report a bug, please create an issue on the github page.
13+
The same feature exists the other way around, converting a quaternion to its x, y and z components.
14+
Similar to the above, set `mcanim:api/maths/quaternion_to_xyz target` to `[x, y, z, w]` or `{x, y, z, w}` (w is ignored, so optional). Then run `function mcanim:api/maths/quaternion_to_xyz`. As expected, the resulting array: `[x, y, z]` is found in `mcanim:api/maths/quaternion_to_xyz output`
15+
16+
Those are all of the features currently implemented, if you would like to suggest more or report a bug, please create an [issue on the github page](https://github.com/GearsDatapacks/mcanim/issues).

data/mcanim/functions/version.mcfunction

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ data modify storage mcanim:version name set value "McAnim"
22

33
data modify storage mcanim:version major set value 0
44
data modify storage mcanim:version minor set value 1
5-
data modify storage mcanim:version patch set value 0
5+
data modify storage mcanim:version patch set value 1
66

77
tellraw @a {"nbt":"name","storage":"mcanim:version","extra":[{"text":" v","extra":[{"nbt":"major","storage":"mcanim:version","extra":[{"text":"."},{"nbt":"minor","storage":"mcanim:version"},{"text":".","extra":[{"nbt":"patch","storage":"mcanim:version"}]}]}]}]}

0 commit comments

Comments
 (0)