Skip to content

Commit

Permalink
Fix grammer errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wifi-left committed Mar 29, 2024
1 parent 48ad946 commit 87e239a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ErrorMessages.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const ERROR_MESSAGES = {
NOT_ENOUGHT_ARGUMENTS: "# SyntaxError: Not enough command arguments.",
UNKNOWN_ARGUMENTS: "# SyntaxError: Unknown command arguments.",
UNSUPPORTED:"## Unsupport transformation",
UNSUPPORTED:"## WARNING: Unsupport transformation",
WARNING_MAY_CAUSE_PROBLEM: "## WARNING: The transformation may cause problem. You might need to modify it by yourself."
}
module.exports = { ERROR_MESSAGES }
6 changes: 5 additions & 1 deletion debug/test_result.mcfunction
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
##
## Datapack Upgrader v1.0.0 by wifi_left
## If you encounter a problem, make an issue on https://github.com/wifi-left/Datapack-Upgrader
##
# execute store result block 1 1 1 Items[0].tag.display.Name byte 1 if data entity @s {"Inventory":[{id:"minecraft:emerald",Count:1b,tag:{Enchantments:[{id:"minecraft:sharpness",lvl:1}]}}]}
## WARNING: The transformation may cause problem. You might need to modify it by yourself.
data modify block ~ ~ ~ Items[0].components."minecraft:enchantments".levels set from block ~ ~ ~ Items[1].components."minecraft:enchantments".levels
## Unsupport transformation
## WARNING: Unsupport transformation
data merge block ~ ~ ~ {Items:[{tag:{display:{Name:'"1"'}}}]}

6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const pathLib = require('path')

console.warn("###")
console.warn("### Datapack Upgrader v" + package.version + " by " + package.author)
console.warn("### If you encounter a problem, make a issue on " + package.homepage)
console.warn("### If you encounter a problem, make an issue on " + package.homepage)
console.warn("### ")
const { NBTools, getNbtContent, getNbtType, warpKey } = require("./NBTool.js");
var OutputFile = null;
Expand Down Expand Up @@ -90,6 +90,10 @@ while (i < argvs.length) {
writeDebugLine(error);
continue;
}
writeLine("##")
writeLine("## Datapack Upgrader v" + package.version + " by " + package.author)
writeLine("## If you encounter a problem, make an issue on " + package.homepage)
writeLine("## ")
let arrs = content.replace("\r", "").split("\n");
for (let j = 0; j < arrs.length; j++)
writeLine(transformCommand(arrs[j].trim()));
Expand Down

0 comments on commit 87e239a

Please sign in to comment.