Skip to content

Commit 11dafe2

Browse files
SnaveSutitgitbutler-client
authored andcommitted
✨ Update for Animated Java v1.12.0
1 parent 0afc61a commit 11dafe2

16 files changed

Lines changed: 262 additions & 7 deletions

File tree

‎src/docs/core-concepts/animations/en.md‎

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The **Effects** row of the Timeline holds keyframes that change the rig instead
4141

4242
- **Variant** keyframes apply one or more [Variants](/docs/core-concepts/variants), in order. Later Variants override earlier ones on the nodes they change.
4343
- **Texture Slots** keyframes switch [Texture Slots](/docs/core-concepts/texture-slots) to any of their textures. Requires Minecraft 1.21.4 or newer.
44-
- **Function** keyframes run commands `as` and `at` the root entity. They support [MC-Build](https://mcbuild.dev) syntax.
44+
- **Function** keyframes run commands `as` and `at` the root entity, and can [repeat](#repeating-function-keyframes). They support [MC-Build](https://mcbuild.dev) syntax.
4545

4646
When several happen on the same frame, they run in that order: Variants, then Texture Slots, then the Function.
4747

@@ -55,7 +55,22 @@ Sound keyframes only play in the editor. To play a sound in-game, use a Function
5555

5656
[Locators](/docs/nodes/locators) and [Interactions](/docs/nodes/interactions) have their own **Function** keyframes. Their commands run at the node's position, and `as` its entity if it has one, so they're great for particles or sounds that follow a part of the rig.
5757

58-
They also support an **Execute Condition**, and a **Repeat** option that runs the commands again every **Frequency** ticks until the node's next keyframe.
58+
They also support an **Execute Condition**, and can [repeat](#repeating-function-keyframes).
59+
60+
### Repeating Function Keyframes
61+
62+
Turn on **Repeat** in the **Keyframe** panel to run a Function keyframe's commands more than once:
63+
64+
- **Frequency**: the ticks between runs, counted from the keyframe's own frame. A keyframe on frame 3 with a Frequency of 5 runs on frames 3, 8, 13, and so on. `1` runs every tick.
65+
- **Duration**: how many ticks to keep repeating, counted from the keyframe. A run that lands on the last tick still happens. Leave it at `0` to repeat until the next Function keyframe in the same row, or the end of the animation.
66+
67+
The next Function keyframe in the same row always stops the repeats, even if the Duration isn't over yet.
68+
69+
![A repeating Function keyframe in the Keyframe panel and the Timeline](/images/docs/core-concepts/animations/example1.png)
70+
71+
In the Timeline, a bar under the keyframe marks every run, with a yellow stop where the next keyframe cuts it short. The Keyframe panel shows how many times the keyframe runs, and warns you when it's cut short or runs past the end of the animation.
72+
73+
On a looping animation, a repeating keyframe on the first frame skips the last frame, since Minecraft plays the last frame in the same tick as the first.
5974

6075
### Previewing Effects
6176

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
---
2+
title: Blueprint Collections
3+
description: Share export settings across many Blueprints, and export them all at once.
4+
---
5+
6+
# Blueprint Collections
7+
8+
## What is a Blueprint Collection?
9+
10+
A **Blueprint Collection** (`.bpcollection`) is a list of Blueprints that export into the same Resource Pack and Data Pack. It holds their shared export settings, so you set your target version and pack paths once, and every Blueprint in it uses them.
11+
12+
Collections are great for projects with lots of rigs, like a mob pack or a map with dozens of animated props. Instead of opening every Blueprint to change its version or export it, you open the collection and export them all with one click.
13+
14+
Collections only work in the desktop version of Blockbench.
15+
16+
## Creating a Collection
17+
18+
1. Go to **Animated Java <i class="minecraft-right-arrow"></i> Blueprint Collection <i class="minecraft-right-arrow"></i> New Collection**, or pick **Blueprint Collection** on Blockbench's start screen.
19+
2. Set the [Shared Settings](#shared-settings).
20+
3. Click **Add Blueprints** and pick the Blueprints you want in the collection.
21+
4. Save the collection with `Ctrl + S`.
22+
23+
Saving links each Blueprint to the collection. Open a collection later with **Blueprint Collection <i class="minecraft-right-arrow"></i> Open Collection**, or from Blockbench's recent projects.
24+
25+
## The Collection Tab
26+
27+
A collection opens in its own tab:
28+
29+
![A Blueprint Collection open in its own tab](/images/docs/core-concepts/blueprint-collections/example1.png)
30+
31+
- The **Shared Settings** panel on the left holds the settings every Blueprint in the collection uses.
32+
- The middle of the tab shows a card for each Blueprint, with a thumbnail, its name, and its Blueprint ID. A badge marks Blueprints that are open, have unsaved changes, or can't be found. Drag cards to reorder them.
33+
- The toolbar at the top has **Add Blueprints**, **Export (Debug)**, and **Export**.
34+
35+
Double-click a card to open its Blueprint. Right-click it to **Open** the Blueprint, **Change Blueprint ID**, **Locate…** a Blueprint that was moved, or **Remove from Collection**.
36+
37+
## Shared Settings
38+
39+
A collection owns these [Blueprint Settings](/docs/core-concepts/blueprints#blueprint-settings) for every Blueprint in it:
40+
41+
- [Target Minecraft Version](/docs/core-concepts/blueprints#target-minecraft-version)
42+
- [Resource Pack Export Format](/docs/core-concepts/blueprints#resource-pack-export-format) and [Resource Pack Folder / Zip](/docs/core-concepts/blueprints#resource-pack-folder--zip)
43+
- [Data Pack Export Format](/docs/core-concepts/blueprints#data-pack-export-format) and [Data Pack Folder / Zip](/docs/core-concepts/blueprints#data-pack-folder--zip)
44+
45+
They override each Blueprint's own values when it's opened, and again right before every export, even if you export the Blueprint on its own. In the Blueprint's settings, these fields are locked, and the [Collection](/docs/core-concepts/blueprints#collection) page shows where they come from.
46+
47+
Everything else, like the Blueprint ID or the [Rig](/docs/core-concepts/blueprints#rig) settings, stays per Blueprint.
48+
49+
:::tip
50+
Pack paths that start with `./` or `../` are relative to the collection file. Keep your collection next to your packs and you can move the whole project folder, or share it, without fixing paths.
51+
:::
52+
53+
## Exporting a Collection
54+
55+
Click **Export** or **Export (Debug)** in the collection tab, or use **Blueprint Collection <i class="minecraft-right-arrow"></i> Export Collection** while any Blueprint from the collection is open. Every Blueprint in it is exported, one after another. Blueprints that aren't open are opened for their export and closed again, so you don't need to open them first.
56+
57+
Before anything is written, Animated Java checks every Blueprint in the collection, so one broken Blueprint can't leave your packs half exported.
58+
59+
When the packs are set to **Zip**, every Blueprint goes into the same `.zip` file.
60+
61+
:::warning
62+
In **Zip** mode, always export with **Export Collection**. Exporting a single Blueprint from the collection on its own replaces the zip with just that rig.
63+
:::
64+
65+
### Removing Blueprints
66+
67+
When you remove a Blueprint from a collection, its rig stays in the packs until the next collection export, which deletes it. Rigs that were exported outside the collection are never touched.
68+
69+
## Limitations
70+
71+
A collection refuses to export, and tells you why, if:
72+
73+
- a Blueprint uses the **Plugin** [Target Environment](/docs/core-concepts/blueprints#target-environment), since it exports a JSON file instead of packs,
74+
- a Blueprint has never been saved, or can't be found,
75+
- two Blueprints in it share a [Blueprint ID](/docs/core-concepts/blueprints#blueprint-id),
76+
- the collection hasn't been saved yet.
77+
78+
A Blueprint can only be in one collection at a time. To move it, remove it from the old one first.
79+
80+
If a Blueprint's collection goes missing, or no longer lists it, Animated Java shows a warning when you open the Blueprint, and it exports with its own settings until you fix it.
81+
82+
## Related Reading
83+
84+
- [Blueprints](/docs/core-concepts/blueprints)
85+
- [Exporting](/docs/core-concepts/exporting)

‎src/docs/core-concepts/blueprints/en.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Blueprints saved by older versions of Animated Java are upgraded automatically w
1919

2020
Open Blueprint Settings from **Animated Java <i class="minecraft-right-arrow"></i> Blueprint Settings** in the menu bar. The dialog is split into pages, and some pages only appear for one [Target Environment](#target-environment). Changes save when you switch pages or close the dialog.
2121

22+
If the Blueprint is in a [Blueprint Collection](/docs/core-concepts/blueprint-collections), its Target Minecraft Version, pack export formats, and pack paths come from the collection, and are locked here. See [Collection](#collection).
23+
2224
### General
2325

2426
- #### Target Environment
@@ -69,6 +71,14 @@ Open Blueprint Settings from **Animated Java <i class="minecraft-right-arrow"></
6971

7072
The resolution of the UV editor. It should match the size of your largest texture. Animated Java warns you if it doesn't, or if it isn't square or a power of two.
7173

74+
### Collection
75+
76+
Only shown when the Blueprint is in a [Blueprint Collection](/docs/core-concepts/blueprint-collections).
77+
78+
Shows which collection the Blueprint belongs to and the settings it takes from it. Click **Open Collection** to open it in its own tab, or **Remove from Collection** to go back to the Blueprint's own settings.
79+
80+
If the collection file can't be found or doesn't list this Blueprint anymore, the page says why, and the Blueprint exports with its own settings until you fix the link.
81+
7282
### Resource Pack
7383

7484
Only shown when the Target Environment is **Datapack**.
@@ -150,6 +160,12 @@ Only shown when the Target Environment is **Datapack** and a Data Pack is export
150160

151161
Turning this off requires Minecraft 1.21.4 or newer. Older versions always stack.
152162

163+
- #### Bone Group Size
164+
165+
How many bones share a group when the rig applies an animation frame. Each bone checks its group first, then only the bones inside it, so rigs with lots of bones apply frames faster.
166+
167+
`0` (the default) picks a size for you: about the square root of the bone count, with no groups at all for rigs under 10 bones.
168+
153169
### Event Functions
154170

155171
Only shown when the Target Environment is **Datapack**.

‎src/docs/core-concepts/exporting/en.md‎

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ All of these live in the **Animated Java** menu.
4141

4242
Exports every open Blueprint, in normal or debug mode.
4343

44+
### Export Collection / Export Collection (Debug)
45+
46+
Under **Blueprint Collection**. Exports every Blueprint in the active Blueprint's [collection](/docs/core-concepts/blueprint-collections), in normal or debug mode.
47+
4448
### Extract
4549

4650
**Extract <i class="minecraft-right-arrow"></i> Confirm Extraction** deletes every file this Blueprint exported to its Resource Pack and Data Pack folders. Use it to remove a rig from your packs.
@@ -53,14 +57,31 @@ Animated Java refuses to export, and tells you why, if:
5357
- a cube is rotated in a way your target version doesn't allow (see [Rotation Limitations](/docs/nodes/cubes#rotation-limitations)),
5458
- the Resource Pack is set to **None** but the Blueprint has Cubes,
5559
- the Blueprint has textures but no Cubes, or Cubes but no textures,
56-
- an animation uses Texture Slot keyframes, or a bone uses a tint type, that the target version doesn't support.
60+
- an animation uses Texture Slot keyframes, or a bone uses a tint type, that the target version doesn't support,
61+
- a bone uses textures its item model can't draw (see [Item Model Atlases](#item-model-atlases)),
62+
- a [Permutation Set](/docs/guides/permutation-sets) has a problem, like a palette with a different number of colors than its key.
5763

5864
While it works, the export progress dialog shows each step and how far along it is.
5965

66+
### Item Model Atlases
67+
68+
Minecraft draws every item model from a single texture atlas, and textures outside it render as missing:
69+
70+
| Target Version | Item models can use |
71+
| ----------------- | --------------------------------------------------------- |
72+
| Before 1.21.11 | The `blocks` atlas. |
73+
| 1.21.11 and newer | The `items` or the `blocks` atlas, but only one per bone. |
74+
75+
Animated Java's own textures are always fine. This catches textures linked from a Resource Pack that aren't in a usable atlas, and bones that mix textures from both atlases.
76+
77+
If another Resource Pack adds the texture to an atlas, add that pack to your [Preview Resource Packs](/docs/core-concepts/blueprints#preview) so Animated Java can see it.
78+
6079
## Cleaning Up Old Files
6180

6281
When a pack is exported as a **Folder**, Animated Java records every file it writes in an `.ajmeta` file at the pack's root (`assets.ajmeta` in the Resource Pack, `data.ajmeta` in the Data Pack). On the next export, files from the previous export that are no longer needed are deleted, so renamed or removed animations don't leave stale functions behind.
6382

83+
Files that haven't changed since the last export are left alone, so re-exports stay quick and don't trip up file watchers, sync tools, or git diffs.
84+
6485
Don't delete these files. Without them, Animated Java can't tell which files it made.
6586

6687
## Plugin Exports

‎src/docs/function-api/utilities/en.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ Runs a command **as** the rig's root entity. Unlike the other utilities, this on
2929
execute as @e[tag=my_pack.my_rig.node.head] run function my_pack:my_rig/as_root {command: "say I am the root!"}
3030
```
3131

32+
The same function also lives at `animated_java:global/as_root`, so you can call it on an entity from any rig without knowing which Blueprint it came from:
33+
34+
```mcfunction
35+
#ARGS: {command: string}
36+
execute as @e[tag=aj.global.node.head] run function animated_java:global/as_root {command: "say I am the root!"}
37+
```
38+
3239
### move
3340

3441
Teleports the whole rig to the execution position and rotation, and moves its floating entities (Locators, Cameras, and Interactions) along with it.

‎src/docs/getting-started/installing/en.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Learn how to install the Animated Java plugin in Blockbench.
77

88
## What you'll need
99

10-
- [Blockbench](https://blockbench.net/) 5.1.4 or newer.
10+
- [Blockbench](https://blockbench.net/) 5.2.3 or newer.
1111
- [Minecraft: Java Edition](https://www.minecraft.net/en-us/download) 1.20.4 or newer.
1212

1313
## From the Plugin Manager

0 commit comments

Comments
 (0)