Skip to content

Commit dfd2026

Browse files
committed
🚧 Add new blueprint settings, and improvements.
- Improved the fly in animation for info panels on home page.
1 parent a197a79 commit dfd2026

File tree

2 files changed

+58
-30
lines changed

2 files changed

+58
-30
lines changed

‎src/routes/+page.svelte

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
<img src="/img/animated_java_icon.svg" />
6262
<div>
6363
<h1>Welcome to Animated Java!</h1>
64+
<hr />
6465
<h3>
6566
A Blockbench plugin that makes complex animation a breeze in Minecraft: Java Edition.
6667
</h3>
@@ -70,14 +71,7 @@
7071

7172
<div class="panel-container">
7273
{#each PANELS as panel, i}
73-
<div
74-
class={`panel ${i % 2 == 0 ? 'left' : 'right'}-panel`}
75-
use:inView
76-
on:enter={(e) => {
77-
if (e.target.classList.contains('panel-fade-in')) return
78-
e.target.classList.add('panel-fade-in')
79-
}}
80-
>
74+
<div class={`panel ${i % 2 == 0 ? 'left' : 'right'}-panel`}>
8175
{#if i % 2 == 0}
8276
<img src={panel.image} alt={panel.title} />
8377
{/if}
@@ -92,14 +86,22 @@
9286
{#if i % 2 == 1}
9387
<img src={panel.image} alt={panel.title} />
9488
{/if}
89+
<div
90+
class="in-view"
91+
use:inView
92+
on:enter={(e) => {
93+
if (e.target.parentElement.classList.contains('panel-fade-in')) return
94+
e.target.parentElement.classList.add('panel-fade-in')
95+
}}
96+
/>
9597
</div>
9698
{/each}
9799
</div>
98100

99-
<div class="made-with-aj">
100-
<h2 class="section-title">Made with Animated Java!</h2>
101-
<hr />
102-
<div class="center-container">
101+
<div class="center-container">
102+
<div class="made-with-aj">
103+
<h2 class="section-title">Made with Animated Java!</h2>
104+
<hr />
103105
<Carousel></Carousel>
104106
</div>
105107
</div>
@@ -143,6 +145,14 @@
143145
display: none;
144146
} */
145147
148+
.in-view {
149+
position: absolute;
150+
top: 100%;
151+
left: 0;
152+
width: 100%;
153+
/* border: 1px solid red; */
154+
}
155+
146156
.section-title {
147157
display: flex;
148158
flex-direction: column;
@@ -181,7 +191,7 @@
181191
opacity: 0;
182192
transform: translateX(10%);
183193
}
184-
.panel > div {
194+
.panel > div:first-of-type {
185195
align-self: center;
186196
display: flex;
187197
flex-direction: column;
@@ -202,6 +212,7 @@
202212
}
203213
h2 {
204214
font-size: 1.5rem;
215+
margin-bottom: 0.25rem;
205216
}
206217
207218
.page {
@@ -249,13 +260,20 @@
249260
flex-direction: column;
250261
margin-top: 8rem;
251262
}
263+
.made-with-aj h2 {
264+
font-size: 2rem;
265+
margin: 0px;
266+
}
252267
hr {
253268
width: 100%;
254269
margin: 0rem 0 0.5rem 0;
255270
border: 1px solid rgb(var(--kd-color-brand));
256271
}
257272
258273
@media (max-width: 768px) {
274+
.in-view {
275+
top: 50%;
276+
}
259277
.panel img {
260278
width: 100%;
261279
}

‎src/routes/docs/[...4]the-blueprint-format/[...2]settings/+page.md

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,21 @@ The renderbox of the model. If this box goes off-screen in-game the model will s
3939

4040
If you are using a Paper plugin to load your rig, you should enable this setting. It will change the way the rig is exported to be compatible with the plugin.
4141

42-
### Export Resources
42+
### Resource Pack Export Mode
4343

44-
Whether or not to export the textures and models used in the rig. If you are not using a resource pack, you should disable this setting.
44+
What format to export the Resource Pack in.
4545

46-
### Export Data Pack
46+
- **Raw**: Exports the Resource Pack as a normal folder structure.
47+
- **Zip**: Exports the Resource Pack as a `.zip` file.
48+
- **None**: Does not export the Resource Pack.
4749

48-
Whether or not to export the rig as a Data Pack. If you are not using a Data Pack (If you have a custom implementation of Animated Java), you should disable this setting.
50+
### Data Pack Export Mode
51+
52+
What format to export the Data Pack in.
53+
54+
- **Raw**: Exports the Data Pack as a normal folder structure.
55+
- **Zip**: Exports the Data Pack as a `.zip` file.
56+
- **None**: Does not export the Data Pack.
4957

5058
## Resource Pack Settings
5159

@@ -73,14 +81,6 @@ If multiple blueprints export into the same resource pack, they will be automati
7381

7482
## Data Pack Settings
7583

76-
<!-- ### Use Advanced Settings
77-
78-
Whether or not to use the advanced settings for the data pack.
79-
80-
:::admonition type=warning
81-
Do not use this setting unless your workflow absolutely requires it. It is not recommended for most users, and will not be as well supported as the default settings.
82-
::: -->
83-
8484
### Data Pack
8585

8686
The data pack to export the rig into. The exported files will be placed in the `data/animated_java/<export_namespace>` folder of the selected data pack.
@@ -91,7 +91,7 @@ If multiple blueprints export into the same data pack, they will be automaticall
9191

9292
A list of commands that is run as the Rig Instance's root entity when it's first summoned.
9393

94-
### Interp Duration
94+
### Interpolation Duration
9595

9696
The duration of the interpolation between animation frames. This is used to smooth out the animation. A value between 1 and 3 is recommended for best results.
9797

@@ -105,8 +105,18 @@ Whether or not to use command storage to store animation data instead of functio
105105

106106
This reduces the number of files in the data pack, but increases the performance cost of playing animations by around 33%.
107107

108-
:::admonition type=danger
109-
This setting is experimental and may be removed in future versions.
108+
## Plugin Settings
110109

111-
The storage animation system **_does not_** support variant, or command keyframes.
112-
:::
110+
These settings are only visible if Plugin Mode is enabled.
111+
112+
### Baked Animations
113+
114+
Whether or not to bake the exported animations.
115+
116+
Baked animations have their frames pre-calculated and stored in the exported JSON file, reducing the complexity of rendering the model in-game.
117+
118+
Some Plugins may require this to be enabled to function correctly.
119+
120+
### JSON File
121+
122+
The path to the exported [JSON file]().

0 commit comments

Comments
 (0)