Skip to content

Commit

Permalink
2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
smell-of-curry committed Feb 11, 2023
1 parent c48207e commit 89ecd94
Show file tree
Hide file tree
Showing 28 changed files with 4,254 additions and 516 deletions.
2 changes: 1 addition & 1 deletion entities/database.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"format_version": "1.17.10",
"minecraft:entity": {
"description": {
"identifier": "rubedo:database",
"identifier": "database:database",
"is_spawnable": false,
"is_summonable": true,
"is_experimental": false
Expand Down
42 changes: 24 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"dependencies": {
"@minecraft/server": "^1.1.0-beta.preview.1.19.50.24",
"@minecraft/server-ui": "^1.0.0-beta.preview.1.19.50.24",
"esbuild": "^0.15.9",
"fs-extra": "^10.1.0",
"i": "^0.3.7",
Expand All @@ -26,5 +24,9 @@
"bugs": {
"url": "https://github.com/smell-of-curry/rubedo/issues"
},
"homepage": "https://github.com/smell-of-curry/rubedo#readme"
"homepage": "https://github.com/smell-of-curry/rubedo#readme",
"devDependencies": {
"@minecraft/server": "^1.1.0-beta.1.19.60-stable",
"@minecraft/server-ui": "^1.0.0-beta.1.19.60-stable"
}
}
3,960 changes: 3,958 additions & 2 deletions scripts/index.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions scripts/index.js.map

Large diffs are not rendered by default.

24 changes: 23 additions & 1 deletion src/rubedo/config/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ import { BlockLocation } from "@minecraft/server";
*/
export const MAX_DATABASE_STRING_SIZE = 32000;

/*
|--------------------------------------------------------------------------
| Max Lore Array Size
|--------------------------------------------------------------------------
|
| Here is the max database lore size meaning when a save gets made
| it tests the size of that lore array is bigger than this then splits up
| the length. It's related to int32 NBT storage of lists.
|
*/
export const MAX_LORE_ARRAY_SIZE = 2000000;

/*
|--------------------------------------------------------------------------
| Entity Id
Expand All @@ -21,7 +33,7 @@ export const MAX_DATABASE_STRING_SIZE = 32000;
| of the database on its nameTag
|
*/
export const ENTITY_IDENTIFIER = "rubedo:database";
export const ENTITY_IDENTIFIER = "database:database";

/*
|--------------------------------------------------------------------------
Expand All @@ -43,3 +55,13 @@ export const ENTITY_LOCATION = new BlockLocation(0, -64, 0);
|
*/
export const INVENTORY_SIZE = 128;

/*
|--------------------------------------------------------------------------
| Back Up Name
|--------------------------------------------------------------------------
|
| The structure file name for the backed up data in this database
|
*/
export const BACKUP_NAME = "database:entities";
Loading

0 comments on commit 89ecd94

Please sign in to comment.