Skip to content

Commit f11081c

Browse files
committed
🚧 Update to AJ 1.6.2
1 parent 1a49751 commit f11081c

File tree

19 files changed

+194
-114
lines changed

19 files changed

+194
-114
lines changed

src/routes/+layout.svelte

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,13 @@
7676
<slot />
7777

7878
<div class="footer" slot="main-bottom">
79-
<div class="header-wip-warning" style="margin-top: 16px;">
80-
⚠️ This website is a work in progress. Some pages may be incomplete or missing. ⚠️
81-
</div>
79+
{#if $page.url.pathname !== '/'}
80+
<div class="footer-wip-warning" style="margin-top: 16px;">
81+
⚠️ This site only contains the documentation for the latest release of Animated Java. ⚠️
82+
<br />
83+
Older versions may have different features or behavior.
84+
</div>
85+
{/if}
8286
<div class="footer-social">
8387
<div class="social-container">
8488
<Button title="Join our Discord Server!" href="/discord">
@@ -193,14 +197,15 @@
193197
align-items: center;
194198
}
195199
196-
.header-wip-warning {
197-
margin-bottom: 1rem;
200+
.footer-wip-warning {
201+
/* margin-bottom: 1rem; */
198202
text-align: center;
199203
}
200204
201205
.footer-social {
202206
display: flex;
203207
justify-content: center;
208+
margin-top: 2rem;
204209
margin-bottom: 2rem;
205210
}
206211
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: Cameras
3+
description: Cameras are used to control the player's view during an animation by forcing the player to spectate an animated item_display.
4+
---
5+
6+
# { $frontmatter.title }
7+
8+
{ $frontmatter.description }
9+
10+
Looking for how to interact with a Camera in-game? Check out [Interacting with Cameras](/docs/rigs/camera).
11+
12+
## Installing the Camera Plugin
13+
14+
Animated Java does not include camera functionality by default. To add camera functionality to your Data Pack, you will need to install the [Camera Plugin](https://www.blockbench.net/plugins/cameras).
15+
16+
## Creating a Camera
17+
18+
To create a camera, right click the Outliner and select `Add Camera`.
19+
20+
![add-camera-action](/img/steps/camera/1.png)
21+
22+
If this button isn't there, you can press `h` and then search for `Add Camera`.
23+
24+
## Animating Cameras
25+
26+
Cameras can be animated by adding keyframes to their position / rotation Timelines just like any other element.

src/routes/docs/[...4]the-blueprint-format/[...6]locators/+page.md renamed to src/routes/docs/[...3]the-blueprint-format/[...6]locators/+page.md

Lines changed: 3 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
22
title: Locators
3-
description: Locators are used to execute commands at a specific position / rotation relative to the Rig Instance.
3+
description: Locators are points in space that can be used to execute commands at specific positions / rotations relative to your Rig Instance.
44
---
55

66
# { $frontmatter.title }
77

88
{ $frontmatter.description }
99

10+
Looking for how to interact with a Locator in-game? Check out [Interacting with Locators](/docs/rigs/locators).
11+
1012
## Creating a Locator
1113

1214
To create a locator, locate the `Add Locator` button above the outliner.
@@ -86,53 +88,3 @@ When selecting a Locator in `Animate Mode`, you can add Command Keyframes to it'
8688
```
8789

8890
:::
89-
90-
## Excuting Commands as / at Locators Externally.
91-
92-
Sometimes you may want to execute commands at a specific locator's position / rotation from an external function. This can be done by getting the locator's information using the data entity's `data.locators.<locator_name>` NBT.
93-
94-
:::admonition type=info title=Example
95-
Execute at a specific locator's position
96-
97-
```rust title="foo/as_root.mcfunction"
98-
execute as <root> on passengers if entity @s[tag=aj.data] run \
99-
function foo:position with entity @s data.locators.<locator_name>
100-
```
101-
102-
```rust title="foo/position.mcfunction"
103-
$execute positioned $(posx) $(posy) $(posz) rotated $(roty) $(rotx) run ...
104-
```
105-
106-
:::
107-
108-
:::admonition type=info title=Example
109-
Execute as a specific locator's entity
110-
111-
Note that this method will only work if you have the Locator's `Use Entity` config option enabled.
112-
113-
```rust title="foo/as_root.mcfunction"
114-
execute as <root> on passengers if entity @s[tag=aj.data] run \
115-
function foo:select with entity @s data.locators.<locator_name>
116-
```
117-
118-
```rust title="foo/select.mcfunction"
119-
$execute as $(uuid) run ...
120-
```
121-
122-
:::
123-
124-
:::admonition type=info title=Example
125-
126-
Executing commands at all of a Rig Instance's locators that have an entity associated with them.
127-
128-
```rust title="foo/as_root.mcfunction"
129-
execute as <root> run \
130-
function animated_java:<export_namespace>/as_own_locator_entities \
131-
{command:'function foo:as_locator'}
132-
```
133-
134-
```rust title="foo/as_locator.mcfunction"
135-
say Hello, World!
136-
```
137-
138-
:::

0 commit comments

Comments
 (0)