Skip to content

Commit 488f320

Browse files
Merge pull request #60 from ForestOfLight/dev
v1.5.1
2 parents def074b + e6ddb21 commit 488f320

11 files changed

Lines changed: 471 additions & 417 deletions

File tree

Canopy [BP]/manifest.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"format_version": 2,
33
"header": {
4-
"name": "Canopy [BP] v1.5.0",
4+
"name": "Canopy [BP] v1.5.1",
55
"description": "Technical informatics & features addon by §aForestOfLight§r.",
66
"uuid": "7f6b23df-a583-476b-b0e4-87457e65f7c0",
7-
"version": [1, 5, 0],
7+
"version": [1, 5, 1],
88
"min_engine_version": [1, 21, 120]
99
},
1010
"modules": [
@@ -38,11 +38,13 @@
3838
},
3939
{
4040
"uuid": "bcf34368-ed0c-4cf7-938e-582cccf9950d",
41-
"version": [1, 5, 0]
41+
"version": [1, 5, 1]
4242
}
4343
],
4444
"metadata": {
4545
"authors": [ "ForestOfLight" ],
46-
"license": "MIT"
46+
"license": "MIT",
47+
"url": "https://github.com/ForestOfLight/Canopy",
48+
"product_type": "addon"
4749
}
4850
}

Canopy [BP]/scripts/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const PACK_VERSION = '1.5.0';
1+
const PACK_VERSION = '1.5.1';
22
const MC_VERSION = '1.21.120.4';
33

44
export { PACK_VERSION, MC_VERSION };

Canopy [BP]/scripts/src/commands/camera.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ function endCameraView(player) {
152152
}
153153

154154
function spectateAction(player) {
155+
if (world.isHardcore)
156+
return player.sendMessage({ translate: 'commands.camera.spectate.hardcore' });
155157
if (player.getDynamicProperty('isViewingCamera'))
156158
return player.sendMessage({ translate: 'commands.camera.spectate.viewing' });
157159
system.run(() => {

Canopy [BP]/scripts/src/commands/canopy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ import { forceShow } from "../../include/utils";
66
const cmd = new Command({
77
name: 'canopy',
88
description: { translate: 'commands.canopy' },
9-
usage: 'canopy <menu/rule/version> [true/false]',
9+
usage: 'canopy <menu/rule/version> [true/false/integer/float]',
1010
args: [
1111
{ type: 'string|array', name: 'ruleIDs' },
1212
{ type: 'boolean|float|integer', name: 'newValue' }
1313
],
1414
callback: canopyCommand,
1515
helpEntries: [
1616
{ usage: 'canopy menu', description: { translate: 'commands.canopy.menu' } },
17-
{ usage: 'canopy <rule> [true/false]', description: { translate: 'commands.canopy.single' } },
18-
{ usage: 'canopy <[rule1,rule2,...]> [true/false]', description: { translate: 'commands.canopy.multiple' } },
17+
{ usage: 'canopy <rule> [true/false/integer/float]', description: { translate: 'commands.canopy.single' } },
18+
{ usage: 'canopy <[rule1,rule2,...]> [true/false/integer/float]', description: { translate: 'commands.canopy.multiple' } },
1919
{ usage: 'canopy version', description: { translate: 'commands.canopy.version' } }
2020
],
2121
opOnly: true

Canopy [BP]/scripts/src/rules/flippinArrows.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function isFlippableOnPlace(block) {
7575
}
7676

7777
function isStair(block) {
78-
return block.permutation.getState('upside_down_bit') !== void 0;
78+
return block.permutation.getState('weirdo_direction') !== void 0;
7979
}
8080

8181
function isSlab(block) {

Canopy [BP]/scripts/src/rules/infodisplay/PeekInventory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class PeekInventory extends InfoDisplayElement {
99
constructor(player, displayLine) {
1010
const ruleData = { identifier: 'peekInventory',
1111
description: { translate: 'rules.infoDisplay.peekInventory' },
12-
contingentRules: ['lookingAt'],
12+
contingentRules: ['target'],
1313
globalContingentRules: ['allowPeekInventory']
1414
};
1515
super(ruleData, displayLine, false);

Canopy [BP]/scripts/src/rules/infodisplay/SignalStrength.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class SignalStrength extends InfoDisplayElement {
55
player;
66

77
constructor(player, displayLine) {
8-
const ruleData = { identifier: 'signalStrength', description: { translate: 'rules.infoDisplay.signalStrength' }, contingentRules: ['lookingAt'] };
8+
const ruleData = { identifier: 'signalStrength', description: { translate: 'rules.infoDisplay.signalStrength' }, contingentRules: ['target'] };
99
super(ruleData, displayLine, false);
1010
this.player = player;
1111
}

Canopy [RP]/manifest.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"format_version": 2,
33
"header": {
4-
"name": "Canopy [RP] v1.5.0",
4+
"name": "Canopy [RP] v1.5.1",
55
"description": "Technical informatics & features addon by §aForestOfLight§r.",
66
"uuid": "bcf34368-ed0c-4cf7-938e-582cccf9950d",
7-
"version": [1, 5, 0],
8-
"min_engine_version": [1, 21, 100]
7+
"version": [1, 5, 1],
8+
"min_engine_version": [1, 21, 120]
99
},
1010
"modules": [
1111
{
@@ -17,11 +17,13 @@
1717
"dependencies": [
1818
{
1919
"uuid": "7f6b23df-a583-476b-b0e4-87457e65f7c0",
20-
"version": [1, 5, 0]
20+
"version": [1, 5, 1]
2121
}
2222
],
2323
"metadata": {
2424
"authors": [ "ForestOfLight" ],
25-
"license": "MIT"
25+
"license": "MIT",
26+
"url": "https://github.com/ForestOfLight/Canopy",
27+
"product_type": "addon"
2628
}
2729
}

Canopy [RP]/texts/en_US.lang

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ commands.camera.spectate.viewing=§cYou cannot spectate while viewing a camera.
5454
commands.camera.spectate.gamemode=§cYou cannot change your gamemode while spectating.
5555
commands.camera.spectate.started=§aSpectating
5656
commands.camera.spectate.ended=§7Spectating ended
57+
commands.camera.spectate.hardcore=§cPrevented you from spectating. Spectating in hardcore mode has a soft-locking bug. This is a Mojang issue.
5758
commands.camera.invalidaction=§cInvalid camera action.
5859

5960
commands.canopy=Enable or disable a rule.
@@ -65,8 +66,8 @@ commands.canopy.menu.busy=§8Close your chat window to access the form.
6566
commands.canopy.menu.timeout=§8Form timed out after %s ticks.
6667
commands.canopy.menu.canceled=§8Form canceled. Rules were not updated.
6768
commands.canopy.menu.submit=§aApply
68-
commands.canopy.single=Enables or disables a single rule.
69-
commands.canopy.multiple=Enables or disables multiple rules.
69+
commands.canopy.single=Modifies the value of a single rule.
70+
commands.canopy.multiple=Modifies the value of multiple rules.
7071
commands.canopy.infodisplayRule=§cThe rule '%1' is part of the InfoDisplay, and must be toggled using %2info. Use %2help for more information.
7172

7273
commands.changedimension=Teleports entities to the specified dimension.

0 commit comments

Comments
 (0)