Skip to content

Commit

Permalink
datapack -> data pack .-.
Browse files Browse the repository at this point in the history
  • Loading branch information
DEVTomatoCake committed Jan 16, 2024
1 parent 1fc1600 commit 11eea91
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 15 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ updates:
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Minecraft Datapack Analyzer
Allows you to analyze and generate stats for [Minecraft](https://minecraft.net) Java Edition data- and resourcepacks.
# Minecraft Pack Analyzer
Allows you to analyze and generate stats for [Minecraft](https://minecraft.net) Java Edition data and resource packs.

![](https://raw.githubusercontent.com/DEVTomatoCake/Pack-Analyzer/main/assets/images/showcase.png)

Expand Down
4 changes: 2 additions & 2 deletions assets/analyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,14 +422,14 @@ async function mainScan(hasData = false) {
(!rpMode && Object.values(dpExclusive.selectors).reduce((a, b) => a + b) != 0 ? "<strong>Selectors used:</strong><br>" : "") +
Object.keys(dpExclusive.selectors).filter(i => dpExclusive.selectors[i] > 0).sort((a, b) => dpExclusive.selectors[b] - dpExclusive.selectors[a])
.map(type => "<span class='indented'>@" + type + ": " + localize(dpExclusive.selectors[type]) + "</span><br>").join("") +
(!rpMode && Object.values(dpExclusive.folders).reduce((a, b) => a + b) != 0 ? "<strong>Datapack features used:</strong><br>" : "") +
(!rpMode && Object.values(dpExclusive.folders).reduce((a, b) => a + b) != 0 ? "<strong>Data pack features used:</strong><br>" : "") +
Object.keys(dpExclusive.folders).filter(i => dpExclusive.folders[i] > 0).sort((a, b) => dpExclusive.folders[b] - dpExclusive.folders[a])
.map(type => "<span class='indented'>" + type + ": " + localize(dpExclusive.folders[type]) + "</span><br>").join("") +
(!rpMode && Object.values(dpExclusive.tags).reduce((a, b) => a + b) != 0 ? "<strong>Tags used:</strong><br>" : "") +
Object.keys(dpExclusive.tags).filter(i => dpExclusive.tags[i] > 0).sort((a, b) => dpExclusive.tags[b] - dpExclusive.tags[a])
.map(type => "<span class='indented'>" + type + ": " + localize(dpExclusive.tags[type]) + "</span><br>").join("") +

(rpMode && Object.values(rpExclusive).reduce((a, b) => a + b) != 0 ? "<br><strong>Resourcepack features used:</strong><br>" : "") +
(rpMode && Object.values(rpExclusive).reduce((a, b) => a + b) != 0 ? "<br><strong>Resource pack features used:</strong><br>" : "") +
Object.keys(rpExclusive).filter(i => rpExclusive[i] > 0).sort((a, b) => rpExclusive[b] - rpExclusive[a])
.map(type => "<span class='indented'>" + type + ": " + localize(rpExclusive[type]) + "</span><br>").join("")

Expand Down
4 changes: 2 additions & 2 deletions assets/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,12 @@ function createImage() {
.forEach(type => ctx.fillText("@" + type + ": " + localize(dpExclusive.selectors[type]), x + 30, y++ * lineHeight, maxWidth))
}
if (!rpMode && Object.values(dpExclusive.folders).reduce((a, b) => a + b) != 0) {
ctx.fillText("Datapack features used:", x, y++ * lineHeight, maxWidth)
ctx.fillText("Data pack features used:", x, y++ * lineHeight, maxWidth)
Object.keys(dpExclusive.folders).filter(i => dpExclusive.folders[i] > 0).sort((a, b) => dpExclusive.folders[b] - dpExclusive.folders[a])
.forEach(type => ctx.fillText(type + ": " + localize(dpExclusive.folders[type]), x + 30, y++ * lineHeight, maxWidth))
}
if (rpMode && Object.values(rpExclusive).reduce((a, b) => a + b) != 0) {
ctx.fillText("Resourcepack features used:", x, y++ * lineHeight, maxWidth)
ctx.fillText("Resource pack features used:", x, y++ * lineHeight, maxWidth)
Object.keys(rpExclusive).filter(i => !isNaN(i) && rpExclusive[i] > 0).sort((a, b) => rpExclusive[b] - rpExclusive[a])
.forEach(type => ctx.fillText(type + ": " + localize(rpExclusive[type]), x + 30, y++ * lineHeight, maxWidth))
}
Expand Down
12 changes: 6 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Minecraft Datapack and Resourcepack Analyzer</title>
<meta name="description" content="A local, open source and offline-working tool to analyze your Minecraft Java datapacks and resourcepacks and generate stats from them.">
<title>Minecraft Data and Resource pack Analyzer</title>
<meta name="description" content="A local, open source and offline-working tool to analyze your Minecraft Java data and resource packs and generate stats from them.">
<meta name="theme-color" content="#216E4A">
<meta property="og:url" content="https://pack-analyzer.pages.dev/">
<meta property="og:image" content="https://pack-analyzer.pages.dev/assets/images/showcase1.png">
Expand All @@ -21,7 +21,7 @@
</head>
<body>
<header>
<h1>Minecraft Java Datapack and Resourcepack analyzer</h1>
<h1>Minecraft Java Data and Resource pack analyzer</h1>
<h2>Drop/paste a .zip or .mcfunction file, or select a folder below to analyze it!</h2>
<div>
<button type="button" onclick="selectFolder()">Select folder</button>
Expand All @@ -42,11 +42,11 @@ <h2>Drop/paste a .zip or .mcfunction file, or select a folder below to analyze i
<span>Select the pack type the site uses for analyzing files:</span>
<div>
<input type="radio" id="radiodp" name="packType" checked>
<label for="radiodp" title="Analyze datapacks">Datapack</label>
<label for="radiodp" title="Analyze data packs">Data pack</label>
</div>
<div>
<input type="radio" id="radiorp" name="packType">
<label for="radiorp" title="Analyze resourcepacks and shaderpacks">Resourcepack</label>
<label for="radiorp" title="Analyze resource and shader packs">Resource pack</label>
</div>
</div>
<br>
Expand All @@ -63,7 +63,7 @@ <h1 id="progress"></h1>
<h1>About</h1>

<p>
Made in HTML, plain JavaScript and CSS, this site allows you to get usage stats from your Minecraft datapacks and resourcepacks.
Made in HTML, plain JavaScript and CSS, this site allows you to get usage stats from your Minecraft data and resource packs.
It also allows analyzing of whole worlds and shaders.
<br>
Everything is done locally, no data ever gets sent to any server (except for anonymous Cloudflare statistics).
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Minecraft Datapack and Resourcepack Analyzer",
"name": "Minecraft Data and Resource pack Analyzer",
"short_name": "MC Pack Analyzer",
"icons": [
{
Expand Down Expand Up @@ -51,7 +51,7 @@
"scope": "/",
"theme_color": "#216E4A",
"lang": "en",
"description": "A tool which allows you to analyze Minecraft Java datapacks and resourcepacks, and generate stats and share from them.",
"description": "A tool which allows you to analyze Minecraft Java data and resource packs, and generate stats and share from them.",
"screenshots": [
{
"src": "/assets/images/showcase1.png",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pack-analyzer",
"version": "2.0.0",
"private": true,
"description": "Allows you to analyze and generate stats for [Minecraft](https://minecraft.net) Java Edition datapacks and resourcepacks.",
"description": "Allows you to analyze and generate stats for [Minecraft](https://minecraft.net) Java Edition data and resource packs.",
"main": "index.html",
"author": "TomatoCake",
"license": "CC BY-NC-SA 4.0 https://creativecommons.org/licenses/by-nc-sa/4.0",
Expand Down

0 comments on commit 11eea91

Please sign in to comment.