-
Notifications
You must be signed in to change notification settings - Fork 19
Enhance Building with Packetmine and more finegrained material control #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 30 commits
e5ac786
7b99509
bbdbd4d
aa57f9b
ada6fa2
d7cd202
c59b824
b267a79
38a5fc0
67c6f26
e7c7990
8ebfb17
d3eda36
2ec256d
ad9b456
3df3485
bc883f8
f398a32
8a0cb5b
e9db1aa
a358fca
93c5831
240533e
d1d6568
7c8f3f3
4492a04
0aeaece
49a5965
03ba095
df00a6d
8221847
1443cb5
68c8eec
c946eca
182485e
5bd4985
64206d5
38a86e5
c97d0cd
2e35391
5f7a85f
a5096a2
50ae6d7
a018c9e
4db79c6
f878a53
d847675
77101de
e0a95b2
06c6a1b
0aa3806
c930981
c56cf10
0f15b30
ae3ae44
800cd68
2faee16
439e414
5de8935
7f7040c
ab4917b
f651714
99b40c9
7e820d4
dcd8a13
adc8a42
61af38e
d309ca1
ef54193
eb5e2f7
f26320b
aa8f794
1938a2f
2683c5b
e07c829
22abb0f
11147d2
1b60759
cd1231d
6715b8b
40ba329
6689f03
b6e7131
d58efae
1288503
f396c1e
d586e2a
e47a99f
d9408e3
3166c0c
43f85c4
bed22da
56844cf
61d6528
cd0cd7f
01df8aa
7e5bcf6
e1760ba
647cd42
5a8588b
f8371e3
40f56ab
26b2d68
f12aab3
36e0057
df89d64
023d6e6
6a51aca
52428ee
6d40644
339f00d
95fbfcc
0c021c6
a6737f5
a491145
f3b4776
5fd5a05
341acb7
295d0f0
bb4f6cb
2c65434
3feb026
10bd793
2ab4142
6d1ef93
ffd345f
57570c0
e325869
2585445
7dd5283
79799aa
14c8cd1
25c3b8d
3c6694f
624e9ca
f1776a5
dc7a2bf
d0d6452
bc54d80
0ecb949
2918f96
c269194
140a17f
fcc8860
7e804e3
48cb6bf
46405bc
df00f71
1b253dd
af1b01f
1679832
e1ab355
a5fd6f3
248c690
69d3616
fa9a42c
441a581
196c979
e82bb80
4800ed2
5a2cf1f
b4a0e13
97c60d2
1f63a8b
afee12a
b05a988
941b822
280e92e
943d942
f492c5a
d7a1715
c3ade02
7b0c246
165de50
fe14b56
837f5a9
e0c55e7
bb99955
ff6b87b
de62f07
e19e5af
48db547
40022f9
0a6e7de
9483f60
01a095f
ae73453
b5bc2b4
441d4b9
1b70a1a
771469d
52843b6
2427e33
56a2abf
c663685
e5d64c4
b02a452
3b445f2
b5d57bb
2da4cef
5e266e3
7928d32
41f69ef
a0cca20
314409f
05afa47
0d57201
bacff64
f471659
157e466
5bc4afd
a5dc330
a9663e8
7f78b68
c28e38b
ae45467
674db53
e463725
2f28e0a
7ac8925
3515c29
4b6f410
37786be
d6601c4
232c217
98561c2
d8de058
49d6e9f
445f360
be7fd72
b55cade
19d0cc7
2dad5ca
5d060fb
84f1513
7a102e9
9df5ac4
eedafd9
c2f2ec1
6bf0c26
1285ae0
10bf9cd
52b051a
ab92486
30e1beb
8c3324d
3253c5c
46df050
adfbb46
8734884
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| /* | ||
| * Copyright 2025 Lambda | ||
| * | ||
| * This program is free software: you can redistribute it and/or modify | ||
| * it under the terms of the GNU General Public License as published by | ||
| * the Free Software Foundation, either version 3 of the License, or | ||
| * (at your option) any later version. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU General Public License | ||
| * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| */ | ||
|
|
||
| package com.lambda.config.groups | ||
|
|
||
| import com.lambda.config.Configurable | ||
| import com.lambda.interaction.request.Priority | ||
| import com.lambda.interaction.request.breaking.BreakConfig | ||
| import com.lambda.util.BlockUtils.allSigns | ||
|
|
||
| class BreakSettings( | ||
| c: Configurable, | ||
| priority: Priority = 0, | ||
| vis: () -> Boolean = { true } | ||
| ) : BreakConfig(priority) { | ||
| override val breakMode by c.setting("Break Mode", BreakMode.Vanilla) { vis() } | ||
| override val breakThreshold by c.setting("Break Threshold", 1.0f, 0.1f..1.0f, 0.02f, "The break amount at which the block is considered broken") { vis() } | ||
| override val doubleBreak by c.setting("Double Break", false, "Allows breaking two blocks at once") { vis() } | ||
| override val breakDelay by c.setting("Break Delay", 5, 0..5, 1, "The delay between breaking blocks", " ticks") { vis() } | ||
| override val swing by c.setting("Swing Mode", SwingMode.Constant, "The times at which to swing the players hand") { vis() } | ||
| override val swingType by c.setting("Swing Type", SwingType.Vanilla, "The style of swing") | ||
| override val sounds by c.setting("Sounds", true, "Plays the breaking sounds") { vis() } | ||
| override val particles by c.setting("Particles", true, "Renders the breaking particles") { vis() } | ||
| override val breakingTexture by c.setting("Breaking Overlay", true, "Overlays the breaking texture at its different stages") { vis() } | ||
| override val rotateForBreak by c.setting("Rotate For Break", true, "Rotate towards block while breaking") { vis() } | ||
| override val ignoredBlocks by c.setting("Ignored Blocks", allSigns, "Blocks that wont be broken") { vis() } | ||
| override val breakConfirmation by c.setting("Break Confirmation", BreakConfirmationMode.BreakThenAwait, "The style of confirmation used when breaking") { vis() } | ||
| override val breaksPerTick by c.setting("Instant Breaks Per Tick", 5, 1..30, 1, "Maximum instant block breaks per tick") { vis() } | ||
| override val breakWeakBlocks by c.setting("Break Weak Blocks", false, "Break blocks that dont have structural integrity (e.g: grass)") { vis() } | ||
| override val forceSilkTouch by c.setting("Force Silk Touch", false, "Force silk touch when breaking blocks") { vis() } | ||
| override val forceFortunePickaxe by c.setting("Force Fortune Pickaxe", false, "Force fortune pickaxe when breaking blocks") { vis() } | ||
| override val minFortuneLevel by c.setting("Min Fortune Level", 1, 1..3, 1, "The minimum fortune level to use") { vis() && forceFortunePickaxe } | ||
|
||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -24,9 +24,28 @@ class InventorySettings( | |||||||||
| c: Configurable, | ||||||||||
| vis: () -> Boolean = { true }, | ||||||||||
| ) : InventoryConfig { | ||||||||||
| override val disposables by c.setting("Disposables", ItemUtils.defaultDisposables, "Items that will be ignored when checking for a free slot", vis) | ||||||||||
| override val accessEnderChest by c.setting("Access Ender Chest", false, "Allow access to the player's ender chest", vis) | ||||||||||
| override val swapWithDisposables by c.setting("Swap With Disposables", true, "Swap items with disposable ones", vis) | ||||||||||
| override val providerPriority by c.setting("Provider Priority", InventoryConfig.Priority.WithMinItems, "What container to prefer when retrieving the item from", vis) | ||||||||||
| override val storePriority by c.setting("Store Priority", InventoryConfig.Priority.WithMinItems, "What container to prefer when storing the item to", vis) | ||||||||||
| val page by c.setting("Inventory Page", Page.Container, "The page to open when the module is enabled", vis) | ||||||||||
|
|
||||||||||
| override val disposables by c.setting("Disposables", ItemUtils.defaultDisposables, "Items that will be included when checking for a free slot / are allowed to be droped when inventory is full") { vis() && page == Page.Container} | ||||||||||
|
||||||||||
| override val disposables by c.setting("Disposables", ItemUtils.defaultDisposables, "Items that will be included when checking for a free slot / are allowed to be droped when inventory is full") { vis() && page == Page.Container} | |
| override val disposables by c.setting("Disposables", ItemUtils.defaultDisposables, "Items that will be included when checking for a free slot / are allowed to be dropped when inventory is full") { vis() && page == Page.Container} |
Outdated
Copilot
AI
May 31, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The word 'droped' is misspelled; it should be 'dropped'.
| override val disposables by c.setting("Disposables", ItemUtils.defaultDisposables, "Items that will be included when checking for a free slot / are allowed to be droped when inventory is full") { vis() && page == Page.Container} | |
| override val disposables by c.setting("Disposables", ItemUtils.defaultDisposables, "Items that will be included when checking for a free slot / are allowed to be dropped when inventory is full") { vis() && page == Page.Container} |
Uh oh!
There was an error while loading. Please reload this page.