@orusteam/solariscore 2.6.4 → 2.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/block/components/GrassBlockComponent.d.ts.map +1 -1
- package/dist/index.js +13 -7
- package/dist/utils/EntityUtil.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/tests/playerGroup/PlayerGroup.d.ts +0 -1
- package/dist/tests/playerGroup/PlayerGroup.d.ts.map +0 -1
- package/dist/tests/playerGroup/groupCommands.d.ts +0 -2
- package/dist/tests/playerGroup/groupCommands.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GrassBlockComponent.d.ts","sourceRoot":"","sources":["../../../src/block/components/GrassBlockComponent.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,6BAA6B,EAAE,oBAAoB,EAAE,yBAAyB,EAAW,MAAM,mBAAmB,CAAC;AAkCnI,qBAAa,mBAAoB,YAAW,oBAAoB;;IAK5D,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE,6BAA6B,EAAE,EAAE,MAAM,EAAE,EAAE,yBAAyB;
|
|
1
|
+
{"version":3,"file":"GrassBlockComponent.d.ts","sourceRoot":"","sources":["../../../src/block/components/GrassBlockComponent.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,6BAA6B,EAAE,oBAAoB,EAAE,yBAAyB,EAAW,MAAM,mBAAmB,CAAC;AAkCnI,qBAAa,mBAAoB,YAAW,oBAAoB;;IAK5D,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE,6BAA6B,EAAE,EAAE,MAAM,EAAE,EAAE,yBAAyB;CAW/F"}
|
package/dist/index.js
CHANGED
|
@@ -668,7 +668,11 @@ var DateUtil = class {
|
|
|
668
668
|
import { system as system2 } from "@minecraft/server";
|
|
669
669
|
var EntityUtil = class {
|
|
670
670
|
static applyCameraShake(entity, intensity, seconds, isRotational = false) {
|
|
671
|
-
system2.run(() =>
|
|
671
|
+
system2.run(() => {
|
|
672
|
+
if (entity.isValid) {
|
|
673
|
+
entity.runCommand(`camerashake add @s ${intensity} ${seconds} ${isRotational ? "rotational" : ""}`);
|
|
674
|
+
}
|
|
675
|
+
});
|
|
672
676
|
}
|
|
673
677
|
static getEquippedItem(entity, equipmentSlot) {
|
|
674
678
|
return entity.isValid ? entity.getComponent("minecraft:equippable")?.getEquipment(equipmentSlot) : void 0;
|
|
@@ -4405,12 +4409,14 @@ var GrassBlockComponent = class {
|
|
|
4405
4409
|
this.onRandomTick = this.onRandomTick.bind(this);
|
|
4406
4410
|
}
|
|
4407
4411
|
onRandomTick({ block }, { params }) {
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4412
|
+
if (block.dimension.isChunkLoaded(block.location)) {
|
|
4413
|
+
const aboveBlock = block.above();
|
|
4414
|
+
if (aboveBlock?.getLightLevel() === 0) {
|
|
4415
|
+
const { dead_block } = params;
|
|
4416
|
+
block.setType(dead_block);
|
|
4417
|
+
} else {
|
|
4418
|
+
trySpreadGrass(block, params);
|
|
4419
|
+
}
|
|
4414
4420
|
}
|
|
4415
4421
|
}
|
|
4416
4422
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityUtil.d.ts","sourceRoot":"","sources":["../../src/utils/EntityUtil.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,SAAS,EAAU,MAAM,mBAAmB,CAAC;AAI7E,qBAAa,UAAU;IACnB,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,GAAE,OAAe;
|
|
1
|
+
{"version":3,"file":"EntityUtil.d.ts","sourceRoot":"","sources":["../../src/utils/EntityUtil.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,SAAS,EAAU,MAAM,mBAAmB,CAAC;AAI7E,qBAAa,UAAU;IACnB,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,GAAE,OAAe;IAQzG,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,GAAG,SAAS,GAAG,SAAS;CAG9F"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=PlayerGroup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PlayerGroup.d.ts","sourceRoot":"","sources":["../../../src/tests/playerGroup/PlayerGroup.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"groupCommands.d.ts","sourceRoot":"","sources":["../../../src/tests/playerGroup/groupCommands.ts"],"names":[],"mappings":""}
|