Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
804b695
🚧 Major source reorganization, and new UI
SnaveSutit Jan 19, 2025
51d2032
🚧 Major source reorganization, and new UI
SnaveSutit Jan 19, 2025
842093f
🚧 Add export page to blueprint settings
SnaveSutit Jan 19, 2025
f4ad83c
🚧 Step 1 of source restructure: Folder names and basic file organization
SnaveSutit Feb 12, 2025
6039b4e
🚧 Restructure: `tools` folder
SnaveSutit Feb 12, 2025
7995fbb
🔧 Add `paths` to tsconfig, and update important imports to use them
SnaveSutit Feb 12, 2025
dabc0a2
🔧 Enforce folder and file naming conventions
SnaveSutit Feb 12, 2025
40e0b5a
🚧 Finish repo restructure
SnaveSutit Feb 13, 2025
01f9f33
🐛 Plugin build is invalid
SnaveSutit Feb 13, 2025
8a6799a
🐛 `EVENTS` is not defined due to recursive import
SnaveSutit Feb 13, 2025
7c7129a
🔧 Add `@events` alias, and remove `THREE` imports
SnaveSutit Feb 13, 2025
810265a
✨ Rework Node config system (no UI changes)
SnaveSutit Feb 13, 2025
ae179cb
🩹 ESLint is killing me with these random `three` imports
SnaveSutit Feb 13, 2025
0a5e194
🚧 Begin work on Display Panel
SnaveSutit Feb 13, 2025
8c72ff7
🩹 Svelte components produce duplicate style elements when compiling
SnaveSutit Feb 13, 2025
d45ba08
🩹 Svelte panels mounting to wrong element
SnaveSutit Feb 13, 2025
e520ba5
🎨 Fix lang formatting
SnaveSutit Feb 13, 2025
a4b6656
✨ Fully functional Serializable Config
SnaveSutit Feb 17, 2025
af09863
✅ Serializable Config Tests
SnaveSutit Feb 17, 2025
51721a8
🧑‍💻 Temporarily disable Blueprint loading popup
SnaveSutit Feb 17, 2025
2ba2898
🩹 `visibility` Property for ResizableOutliner Element is type 'string'
SnaveSutit Feb 17, 2025
0b2f42d
🚸 Minor patch for panel title text wrapping
SnaveSutit Feb 17, 2025
cb658cf
🔧 Add tests folder to `tsconfig.json`
SnaveSutit Feb 17, 2025
15a41a4
🔧 Patch ESLint naming convention rule for Enum Members
SnaveSutit Feb 17, 2025
85de808
✨ Add `forceUpdate` function to `Valuable` class
SnaveSutit Feb 17, 2025
0bf241b
✨ Add `ObjectProperty` class to `moddingTools.ts`
SnaveSutit Feb 17, 2025
c62c609
🎨 No more Vanilla prefix for display entity elements!
SnaveSutit Feb 17, 2025
f205903
🐛 Update group deselection logic for Blockbench 4.12.0
SnaveSutit Feb 17, 2025
c0af375
🎨 Rename `GenericDisplayConfig` -> `CommonDisplayConfig`
SnaveSutit Feb 17, 2025
38401a9
♻️ Update `fontManager.ts` to handle new node configs
SnaveSutit Feb 17, 2025
abd98c0
🚧 Implement basic Display Panel node config functionality.
SnaveSutit Feb 17, 2025
3cefa6e
🔇 Remove misc unused / unneeded logs
SnaveSutit Feb 17, 2025
6a3aec9
🔇 Remove logs from ObjectProperty
SnaveSutit Feb 17, 2025
c187120
🚚 `blockbenchTypeMods.d.ts` -> `blockbenchTypes.d.ts`
SnaveSutit Feb 19, 2025
97679ab
🚚 Move icons into `src/assets/icons`
SnaveSutit Feb 19, 2025
ad8d78c
🔧 Add recommended extensions for VSCode
SnaveSutit Feb 19, 2025
9ce0b02
🎨 Massively improve README
SnaveSutit Feb 19, 2025
a9204c4
⬆️ Update Envbench
SnaveSutit Feb 19, 2025
00aac70
⬆️ Update Svelte
SnaveSutit Feb 19, 2025
38ce054
✨ Visualization of Structure groups
SnaveSutit Feb 19, 2025
dc215fb
🩹 Add null check for Display Panel when selecting a new node
SnaveSutit Feb 19, 2025
40f2ff4
🩹 Fix downloads badge link
SnaveSutit Feb 19, 2025
1aa625b
➖ Remove `download` library
SnaveSutit Feb 25, 2025
d286172
🩹 Add patch for deepslate that strips unneeded parts of the library f…
SnaveSutit Feb 25, 2025
2e5f85d
🩹 Reduce imported YAML file size
SnaveSutit Feb 25, 2025
0657d0d
⬆️ Upgrade Dependencies
SnaveSutit Feb 25, 2025
a00a3c9
✨ Add node config property display configuration
SnaveSutit Feb 26, 2025
b2aee51
🎨 Format TODO.md
SnaveSutit Feb 26, 2025
46f0ea0
🩹 Fix rebase issues when updating to origin
SnaveSutit Feb 26, 2025
ff94158
🩹 Fix imports in `datapack-compiler/index.ts`
SnaveSutit Feb 26, 2025
553cc3b
✨ Rename `Valuable` to `Syncable` and a couple other store API tweaks
SnaveSutit Mar 3, 2025
38ba33f
💬 Tweaked, and added new unexpected error flavor quotes
SnaveSutit Mar 3, 2025
5ca1e93
✨ Node config improvements
SnaveSutit Mar 3, 2025
faa5924
🚧 More Display Panel progress
SnaveSutit Mar 3, 2025
b721e42
💬 Update TODO
SnaveSutit Mar 3, 2025
43bef3c
😭 Begin fixing the mess of conflicts
SnaveSutit Jul 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
😭 Begin fixing the mess of conflicts
  • Loading branch information
SnaveSutit committed Jul 11, 2025
commit 43bef3c95d0d4e78c5ea41fef84f7cac8a4faf28
Binary file modified .yarn/install-state.gz
Binary file not shown.
3 changes: 1 addition & 2 deletions eslint.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-expect-error
import checkFile from 'eslint-plugin-check-file'
import svelteEslint from 'eslint-plugin-svelte'
import svelteParser from 'svelte-eslint-parser'
Expand Down Expand Up @@ -64,7 +63,7 @@ const CUSTOM_RULES: ConfigWithExtends['rules'] = {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-floating-promises': ['error', { ignoreVoid: true }],
'@typescript-eslint/array-type': ['warn', { default: 'array-simple' }],
'@typescript-eslint/consistent-indexed-object-style': ['warn', 'record'],
'@typescript-eslint/consistent-indexed-object-style': ['warn', 'interface'],
'@typescript-eslint/consistent-generic-constructors': 'warn',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@
"mc-build": "^3.5.1",
"request-progress": "^3.0.0",
"svelte-ace": "^1.0.21",
"svelte-dnd-action": "^0.9.38"
"svelte-dnd-action": "^0.9.38",
"svelte-multiselect": "^11.1.1"
},
"packageManager": "yarn@4.6.0+sha512.5383cc12567a95f1d668fbe762dfe0075c595b4bfff433be478dbbe24e05251a8e8c3eb992a986667c1d53b6c3a9c85b8398c35a960587fbd9fa3a0915406728"
}
1 change: 1 addition & 0 deletions src/assets/vanillaAssetOverrides/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
17 changes: 8 additions & 9 deletions src/blockbench-additions/model-formats/ajblueprint/dfu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ function updateModelToOld1_0(model: any) {
}

if (
model.animations &&
model.animations.find((a: any) =>
model.animations?.find((a: any) =>
Object.keys(a.animators as Record<string, any>).find(name => name === 'effects')
)
) {
Expand Down Expand Up @@ -197,7 +196,7 @@ function updateModelToOld1_4(model: any) {
}

// region v0.3.10
// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-unused-vars
// eslint-disable-next-line @typescript-eslint/naming-convention
function updateModelTo0_3_10(model: any) {
console.log('Processing model for AJ 0.3.10', JSON.parse(JSON.stringify(model)))
}
Expand All @@ -218,7 +217,7 @@ function updateModelTo1_0pre1(model: any) {
meta: {
format: 'animated_java_blueprint',
format_version: '0.5.0',
uuid: model.meta.uuid || guid(),
uuid: model.meta.uuid ?? guid(),
last_used_export_namespace: model.animated_java.settings.project_namespace,
},
project_settings: {
Expand Down Expand Up @@ -258,9 +257,9 @@ function updateModelTo1_0pre1(model: any) {
variants: {
default: {
name: 'default',
display_name: defaultVariant.name || 'Default',
uuid: defaultVariant.uuid || guid(),
texture_map: defaultVariant.textureMap || {},
display_name: defaultVariant.name ?? 'Default',
uuid: defaultVariant.uuid ?? guid(),
texture_map: defaultVariant.textureMap ?? {},
// @ts-ignore
excluded_bones: [],
},
Expand Down Expand Up @@ -413,14 +412,14 @@ function updateModelTo1_0pre6(model: any): IBlueprintFormatJSON {
delete defaultVariant.excluded_bones
}

for (const variant of model?.variants?.list || []) {
for (const variant of model?.variants?.list ?? []) {
if (variant?.excluded_bones) {
variant.excluded_nodes = variant.excluded_bones
delete variant.excluded_bones
}
}

for (const animation of model?.animations || []) {
for (const animation of model?.animations ?? []) {
if (animation?.excluded_bones) {
animation.excluded_nodes = animation.excluded_bones
delete animation.excluded_bones
Expand Down
8 changes: 4 additions & 4 deletions src/blockbench-additions/model-formats/ajblueprint/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import EVENTS from '@aj/util/events'
import * as blueprintSettings from '../../../blueprintSettings'
import { PACKAGE } from '../../../constants'
import { injectSvelteCompomponent } from '../../../util/injectSvelteComponent'
import { toSafeFunctionName } from '../../../util/minecraftUtil'
import { sanitizePathName } from '../../../util/minecraftUtil'
import { addProjectToRecentProjects } from '../../../util/misc'
import { Syncable } from '../../../util/stores'
import { translate } from '../../../util/translation'
Expand Down Expand Up @@ -99,7 +99,7 @@ export function convertToBlueprint() {
}
for (const animation of Blockbench.Animation.all) {
animation.createUniqueName(Blockbench.Animation.all.filter(a => a !== animation))
animation.name = toSafeFunctionName(animation.name)
animation.name = sanitizePathName(animation.name)
}
for (const cube of Cube.all) {
cube.setUVMode(false)
Expand Down Expand Up @@ -274,7 +274,7 @@ export const BLUEPRINT_CODEC = new Blockbench.Codec('animated_java_blueprint', {
parseGroups(model.outliner)

for (const group of Group.all) {
group.name = toSafeFunctionName(group.name)
group.name = sanitizePathName(group.name)
}
}

Expand Down Expand Up @@ -346,7 +346,7 @@ export const BLUEPRINT_CODEC = new Blockbench.Codec('animated_java_blueprint', {

// region > compile
compile(options) {
if (!options) options = {}
options ??= {}
console.log(`Compiling Animated Java Blueprint from ${Project!.name}...`)
if (!Project) throw new Error('No project to compile.')

Expand Down
3 changes: 1 addition & 2 deletions src/blockbench-additions/outliner-elements/itemDisplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { getCurrentVersion } from '@aj/systems/minecraft-temp/versionManager'
import { CommonDisplayConfig, ItemDisplayConfig, type Serialized } from '@aj/systems/node-configs'
import EVENTS from '@events'
import { PACKAGE } from '../../constants'
import { VANILLA_ITEM_DISPLAY_CONFIG_ACTION } from '../../ui/dialogs/item-display-config'
import {
createAction,
createBlockbenchMod,
Expand Down Expand Up @@ -47,7 +46,7 @@ export class ItemDisplay extends ResizableOutlinerElement {

public menu = new Menu([
...Outliner.control_menu_group,
VANILLA_ITEM_DISPLAY_CONFIG_ACTION,
ITEM_DISPLAY_CONFIG_ACTION,
'_',
'rename',
'delete',
Expand Down
2 changes: 1 addition & 1 deletion src/blockbench-additions/outliner-elements/util.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { sanitizePathName } from '../util/minecraftUtil'
import { sanitizePathName } from '@aj/util/minecraftUtil'
import { BlockDisplay } from './blockDisplay'
import { ItemDisplay } from './itemDisplay'
import { TextDisplay } from './textDisplay'
Expand Down
97 changes: 0 additions & 97 deletions src/components/keyframePanels/commandsKeyframePanel.svelte

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<script lang="ts">
import MultiSelect, { type ObjectOption } from 'svelte-multiselect'
import { Valuable } from '../../util/stores'
import { Syncable } from '../../util/stores'
import { translate } from '../../util/translation'
import BaseDialogItem from './baseDialogItem.svelte'

type StringOption = ObjectOption & { value: string }

export let label: string
export let tooltip: string = ''
export let tooltip = ''
export let options: StringOption[]
export let defaultValue: StringOption[]
export let value: Valuable<string[]>
export let value: Syncable<string[]>

let selected: StringOption[] = $value
.filter(v => options.find(o => o.value == v))
.map(v => options.find(o => o.value == v)!)

let warning_text = ''
let warningText = ''

if (selected.length === 0) {
selected = defaultValue
Expand All @@ -31,11 +31,11 @@
// FIXME - This warning is unique to the targeted minecraft version setting.
// Since the only use of this component is in the targeted minecraft version setting, this is fine... for now.
if (selected.length > 1) {
warning_text = translate(
warningText = translate(
'dialog.blueprint_settings.target_minecraft_versions.warning.multiple_versions'
)
} else {
warning_text = ''
warningText = ''
}
}

Expand All @@ -48,7 +48,7 @@
}
</script>

<BaseDialogItem {label} {tooltip} {onReset} let:id {warning_text}>
<BaseDialogItem {label} {tooltip} {onReset} let:id {warningText}>
<div class="dialog_bar form_bar multi-select-container">
<label class="name_space_left" for={id}>{label}</label>
<MultiSelect
Expand Down
4 changes: 2 additions & 2 deletions src/svelte-components/dialog-items/vector2d.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
}
}
function stop() {
removeEventListeners(document, 'mousemove touchmove', move, null)
removeEventListeners(document, 'mouseup touchend', stop, null)
removeEventListeners(document, 'mousemove touchmove', move, undefined)
removeEventListeners(document, 'mouseup touchend', stop, undefined)
}
addEventListeners(document as unknown as any, 'mousemove touchmove', move)
addEventListeners(document as unknown as any, 'mouseup touchend', stop)
Expand Down
4 changes: 2 additions & 2 deletions src/svelte-components/dialog-items/vector3d.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
}
}
function stop() {
removeEventListeners(document, 'mousemove touchmove', move, null)
removeEventListeners(document, 'mouseup touchend', stop, null)
removeEventListeners(document, 'mousemove touchmove', move, undefined)
removeEventListeners(document, 'mouseup touchend', stop, undefined)
}
addEventListeners(document as unknown as any, 'mousemove touchmove', move)
addEventListeners(document as unknown as any, 'mouseup touchend', stop)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
}
}
function stop() {
removeEventListeners(document, 'mousemove touchmove', move, null)
removeEventListeners(document, 'mouseup touchend', stop, null)
removeEventListeners(document, 'mousemove touchmove', move, undefined)
removeEventListeners(document, 'mouseup touchend', stop, undefined)
}
addEventListeners(document as unknown as any, 'mousemove touchmove', move)
addEventListeners(document as unknown as any, 'mouseup touchend', stop)
Expand Down
4 changes: 2 additions & 2 deletions src/svelte-components/sidebar-dialog-items/vector2d.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
}
}
function stop() {
removeEventListeners(document, 'mousemove touchmove', move, null)
removeEventListeners(document, 'mouseup touchend', stop, null)
removeEventListeners(document, 'mousemove touchmove', move, undefined)
removeEventListeners(document, 'mouseup touchend', stop, undefined)
}
addEventListeners(document as unknown as any, 'mousemove touchmove', move)
addEventListeners(document as unknown as any, 'mouseup touchend', stop)
Expand Down
Loading