Skip to content

Commit

Permalink
fix(general): Refactor autogeneration code, change package attributes (
Browse files Browse the repository at this point in the history
…#35)

* fix(general): Refactor autogeneration code, change package attributes

- Fix some samples issues
- Add report an issue link
- Fix issues with array processing of items (work on a copy)
- Project generation will update .env files and others

* Remove unused elements

* fix(ci): Updates to workflow for publishing

* Update license and publisher notes
  • Loading branch information
mammerla authored Sep 9, 2024
1 parent ae8cf35 commit 0c7e42b
Show file tree
Hide file tree
Showing 112 changed files with 4,407 additions and 6,279 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Create Release
on:
workflow_dispatch:

permissions:
contents: read

jobs:
build-and-publish:
runs-on: windows-latest
Expand All @@ -16,7 +19,7 @@ jobs:
pull-requests: write
security-events: none
checks: none
id-token: none
id-token: write
issues: write
repository-projects: none
statuses: none
Expand Down Expand Up @@ -59,6 +62,7 @@ jobs:
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Deploy to GitHub Pages
if: success()
Expand Down
19 changes: 17 additions & 2 deletions app/jsnode/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
{
"name": "@minecraft/creator-tools",
"version": "0.2.9",
"version": "0.0.0-semantically-released",
"productName": "Minecraft Creator Tools",
"description": "Minecraft Creator Tools command line and libraries.",
"private": true,
"publisher": "mojang-studios",
"author": {
"name": "Mojang Studios"
},
"keywords": [
"minecraft",
"tools",
"bedrock",
"add-on",
"creator"
],
"bugs": {
"url": "https://aka.ms/mctbugs"
},
"license": "MIT",
"homepage": "https://aka.ms/mcthomepage",
"bin": {
"mct": "./cli/index.js"
},
Expand Down
34 changes: 34 additions & 0 deletions app/public/data/forms/entity_type_resource.form.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"fields": [
{
"id": "identifier",
"title": "Id",
"dataType": 2
},
{
"id": "materials",
"title": "Materials",
"dataType": 24
},
{
"id": "textures",
"title": "Textures",
"dataType": 24
},
{
"id": "geometry",
"title": "Geometry",
"dataType": 24
},
{
"id": "animations",
"title": "Animations",
"dataType": 24
},
{
"id": "render_controllers",
"title": "Render Controllers",
"dataType": 17
}
]
}
106 changes: 106 additions & 0 deletions app/public/data/forms/loot_table.form.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"fields": [
{
"id": "pools",
"description": "A set of loot table outcomes.",
"dataType": 15,
"defaultValue": false,
"newItemPrototype": {
"pool": 1,
"entries": []
},
"noun": "Pool",
"subForm": {
"fields": [
{
"id": "rolls",
"description": "How many times the pool will be rolled to select an entry.",
"dataType": 0
},
{
"id": "conditions",
"dataType": 15,
"defaultValue": false,
"newItemPrototype": {
"condition": "random_difficulty_change",
"default_chance": 0.5,
"peaceful": 0,
"hard": 6
},
"noun": "Condition",
"subForm": {
"fields": [
{
"id": "default_chance",
"description": "Default percent chance.",
"dataType": 3
},
{
"id": "peaceful",
"description": "Percent chance under peaceful mode.",
"dataType": 3
},
{
"id": "hard",
"description": "Percent chance under hard mode.",
"dataType": 3
},
{
"id": "condition",
"description": "How this condition is evaluated.",
"dataType": 5,
"choices": [
{
"id": "random_difficulty_chance",
"title": "Random Difficulty Chance"
},
{
"id": "default_chance",
"title": "Default Chance"
}
]
}
]
},
"description": "Conditions for this item to be considered."
},
{
"id": "entries",
"dataType": 15,
"defaultValue": false,
"newItemPrototype": {
"id": "newfield",
"dataType": 2
},
"description": "The sub-items within this form.",
"noun": "Choice",
"subForm": {
"fields": [
{
"id": "name",
"description": "Item in the loot table.",
"dataType": 2
},
{
"id": "type",
"description": "Type of choice.",
"dataType": 5,
"choices": [
{
"id": "item",
"title": "Item"
},
{
"id": "loot_table",
"title": "Loot Table"
}
]
}
]
}
}
]
}
}
]
}
15 changes: 15 additions & 0 deletions app/public/data/forms/spawn_rules_header.form.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"fields": [
{
"id": "identifier",
"title": "Id",
"dataType": 2
},
{
"id": "population_control",
"title": "Population group",
"description": "Specifies a group that this mob is connected with, of which only so many mobs in the group can be spawned",
"dataType": 2
}
]
}
29 changes: 20 additions & 9 deletions app/public/data/gallery.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,6 @@
"id": "customComponents",
"type": 0
},
{
"title": "Beautiful natural shapes for your building adventures",
"description": "Trees, trees, and more trees!",
"gitHubOwner": "scriptVillager",
"gitHubRepoName": "NaturalStructures",
"id": "naturalStructures",
"type": 1
},
{
"title": "Solid Cube Block with Textures",
"description": "The dice block is a simple solid cube.",
Expand Down Expand Up @@ -511,7 +503,15 @@
"id": "allay",
"type": 4,
"logoLocation": { "x": 5, "y": 5, "width": 5, "height": 5, "imageWidth": 32 },
"fileList": ["<BPE>allay", "<RPE>allay", "<RPME>allay", "<RPTE>allay/allay", "<RPAC>allay", "<RPA>allay"]
"fileList": [
"<BPE>allay",
"<RPE>allay",
"<RPME>allay",
"<RPTE>allay/allay",
"<RPAC>allay",
"<RPA>allay",
"<RPRC>allay"
]
},
{
"title": "Axolotl",
Expand Down Expand Up @@ -551,6 +551,8 @@
"<BPSR>cat",
"<RPE>cat",
"<RPME>cat",
"<RPRC>cat",
"<RPAC>cat",
"<RPA>cat",
"<RPTE>cat/allblackcat",
"<RPTE>cat/allblackcat_tame.tga",
Expand Down Expand Up @@ -597,6 +599,7 @@
"<BPSR>cow",
"<RPE>cow",
"<RPME>cow",
"<RPRC>cow",
"<RPA>cow",
"<RPTE>cow/cow",
"<RPTE>cow/brown_mooshroom",
Expand All @@ -617,6 +620,7 @@
"<BPLE>creeper",
"<BPSR>creeper",
"<RPE>creeper",
"<RPRC>creeper",
"<RPAC>creeper",
"<RPA>creeper",
"<RPME>creeper",
Expand All @@ -639,6 +643,7 @@
"<BPSR>enderman",
"<RPE>enderman",
"<RPME>enderman",
"<RPRC>enderman",
"<RPTE>enderman/enderman.tga",
"<RPAC>enderman",
"<RPA>enderman"
Expand All @@ -660,6 +665,7 @@
"<RPE>rabbit",
"<RPME>rabbit",
"<RPAC>rabbit",
"<RPRC>rabbit",
"<RPA>rabbit",
"<RPTE>rabbit/blackrabbit",
"<RPTE>rabbit/brown",
Expand All @@ -684,6 +690,7 @@
"<BPLE>pig",
"<BPSR>pig",
"<RPE>pig",
"<RPRC>pig",
"<RPA>pig",
"<RPME>pig",
"<RPTE>pig/pig",
Expand All @@ -707,6 +714,7 @@
"<RPE>sheep",
"<RPME>sheep",
"<RPTE>sheep/sheep.tga",
"<RPRC>sheep",
"<RPAC>sheep",
"<RPA>sheep"
]
Expand All @@ -726,6 +734,7 @@
"<BPSR>skeleton",
"<RPE>skeleton",
"<RPME>skeleton",
"<RPRC>skeleton",
"<RPAC>skeleton",
"<RPA>skeleton",
"<RPTE>skeleton/skeleton",
Expand All @@ -749,6 +758,7 @@
"<BPSR>wolf",
"<RPE>wolf",
"<RPME>wolf",
"<RPRC>wolf",
"<RPAC>wolf",
"<RPA>wolf",
"<RPTE>wolf/wolf",
Expand Down Expand Up @@ -801,6 +811,7 @@
"<BPLE>zombie",
"<BPSR>zombie",
"<RPE>zombie",
"<RPRC>zombie",
"<RPAC>zombie",
"<RPA>zombie",
"<RPME>zombie",
Expand Down
19 changes: 0 additions & 19 deletions app/src/UX/AddGitHubReference.css

This file was deleted.

Loading

0 comments on commit 0c7e42b

Please sign in to comment.