File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed
kotlin/net/pdevita/creeperheal2/utils Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -11,20 +11,27 @@ for the original idea and name!
11
11
# Setup/Installation
12
12
13
13
Download the latest release and place it in your plugins folder. The config.yml is generated the first
14
- time the plugin is run with the server. You can also look at it
14
+ time the plugin is run on the server. You can also look at it
15
15
[ here] ( https://github.com/pmdevita/CreeperHeal2/blob/master/src/main/resources/config.yml ) .
16
16
17
17
New versions of Minecraft past the currently supported version do work, with the exception that newly
18
18
added blocks may not repair properly.
19
19
20
+ # Commands and Permissions
21
+
22
+ - ` /ch warp ` - ` creeperheal2.warp ` Immediately heal all currently tracked explosions
23
+ - ` /ch stats ` - ` creeperheal2.stats ` View stats about currently tracked explosions
24
+ - ` /ch cancel ` - ` creeperheal2.cancel ` Cancel replacement of currently tracked explosions (you will lose blocks so be careful)
25
+
26
+
20
27
# Development Progress
21
28
22
29
This plugin is still in beta and while I would consider it safer than the original on
23
30
modern servers, and it supports every block except those listed below, it still may fail to
24
31
replace some structures with 100% accuracy. Blocks that aren't replaced properly should drop as
25
32
items though.
26
33
27
- Currently, the following blocks can not be replaced properly (they will drop as items)
34
+ Currently, the following blocks cannot be replaced properly (they will drop as items)
28
35
- Paintings
29
36
- Item frames
30
37
- Chorus plants
Original file line number Diff line number Diff line change @@ -50,12 +50,18 @@ object OnTopOf: FindDependentBlock {
50
50
51
51
object Vine: FindDependentBlock {
52
52
override fun reorient (state : BlockState ): Location ? {
53
+ // Try to attach to a vine above first
54
+ if (state.block.getRelative(BlockFace .UP ).blockData.material == Material .VINE ) {
55
+ return state.block.getRelative(BlockFace .UP ).location
56
+ }
57
+ // Otherwise try attaching to one of it's attached faces
53
58
val multipleFacing = state.blockData as MultipleFacing
54
59
for (face in multipleFacing.faces) {
55
60
if (state.block.getRelative(face).blockData.material != Material .AIR ) {
56
61
return state.block.getRelative(face).location
57
62
}
58
63
}
64
+ // Otherwise attach to block above
59
65
if (state.block.getRelative(BlockFace .UP ).blockData.material != Material .AIR ) {
60
66
return state.block.getRelative(BlockFace .UP ).location
61
67
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ turbo-type: 0
31
31
32
32
# Constant Amount Turbo Settings
33
33
# The number of blocks to replace in each replacement cycle (For reference, non-turbo is 1)
34
- # Raising this will slightly increase TPS impact
34
+ # Raising this will slightly increase visible lag. Recommended <20
35
35
turbo-amount : 3
36
36
37
37
# Percentage Turbo Settings
You can’t perform that action at this time.
0 commit comments