-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #438 from MuteTiefling/e9e-tweaks
E9E tweaks
- Loading branch information
Showing
26 changed files
with
726 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
[Client] | ||
# When looking at an Entangled Block, should its bound block be highlighted? | ||
# Allowed values: true, false - Default: true | ||
renderBlockHighlight = true | ||
|
||
# Should the block rendered inside entangled blocks rotate? | ||
# Allowed values: true, false - Default: true | ||
rotateRenderedBlock = true | ||
|
||
[General] | ||
# Can entangled blocks be bound between different dimensions? Previously bound entangled blocks won't be affected. | ||
# Allowed values: true, false - Default: true | ||
allowDimensional = false | ||
|
||
# What is the max range in which entangled blocks can be bound? Only affects blocks in the same dimension. -1 for infinite range. Previously bound entangled blocks won't be affected. | ||
# Allowed range: -1 ~ 2147483647 - Default: -1 | ||
maxDistance = 128 | ||
maxDistance = 32 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
BlockEvents.rightClicked((event) => { | ||
const { entity, block, level, server } = event; | ||
if (!entity.isPlayer() || entity.isFake()) { | ||
return; | ||
} | ||
|
||
const dimension = String(level.getDimension()); | ||
if ( | ||
dimension == 'twilightforest:twilight_forest' && | ||
block.getId().match(/(minecraft:|comforts:).*(_bed|sleeping_bag|hammock_)/) | ||
) { | ||
// clear weather after 100 ticks | ||
server.scheduleInTicks(100, (schedule) => { | ||
let command = `/execute in minecraft:overworld run weather clear`; | ||
schedule.server.runCommandSilent(command); | ||
}); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.