8
8
#
9
9
# @author mcmonkey
10
10
# @date 2020/12/16
11
- # @denizen-build REL-1736
12
- # @script-version 1.0
11
+ # @updated 2022-04-08
12
+ # @denizen-build REL-1765
13
+ # @script-version 2.0
13
14
#
14
15
# Dependencies:
15
- # Cuboid Tool script - https://forum.denizenscript.com/resources/cuboid-selector-tool.1/
16
+ # Selector Tool script - https://forum.denizenscript.com/resources/cuboid-selector-tool.1/
16
17
#
17
18
# Installation:
18
- # Just put this script and the cuboid tool script in your scripts folder and reload.
19
+ # Just put this script and the selector tool script in your scripts folder and reload.
19
20
#
20
21
# Usage:
21
- # Refer to the cuboid tool info for how to get and use a CTool .
22
+ # Refer to the selector tool info for how to get and use a SelTool .
22
23
#
23
24
# Use "/ccopy" to copy your selected area (relative to where you stand).
24
25
# Use "/crotate [90/180/270]" or "/cflip [x/z]" to rotate/flip the copy.
@@ -36,17 +37,17 @@ ccopy_command:
36
37
description : Copies a place.
37
38
permission : dscript.ccopy
38
39
script :
39
- - if !<player.has_flag[ctool_selection ] > :
40
- - narrate "<&c > You need a <&b> /ctool <&c > selection to use this command."
40
+ - if !<player.has_flag[seltool_selection ] > :
41
+ - narrate "<&[error] > You need a <&[emphasis] > /seltool <&[error] > selection to use this command."
41
42
- stop
42
43
- if <schematic[<player.uuid> _copy] .exists> :
43
- - narrate "<&c > Forgetting previously copied area."
44
+ - narrate "<&[error] > Forgetting previously copied area."
44
45
- schematic unload name:<player.uuid> _copy
45
- - narrate <&2 > Copying...
46
+ - narrate <&[base] > Copying...
46
47
- flag player copying duration:1d
47
- - ~schematic create name:<player.uuid> _copy <player.location.block> <player.flag[ctool_selection ] > delayed flags
48
+ - ~schematic create name:<player.uuid> _copy <player.location.block> area: <player.flag[seltool_selection ] > delayed flags
48
49
- flag player copying:!
49
- - narrate <&2 > Copied.
50
+ - narrate <&[base] > Copied.
50
51
51
52
cpaste_command :
52
53
type : command
@@ -57,17 +58,17 @@ cpaste_command:
57
58
permission : dscript.cpaste
58
59
script :
59
60
- if !<schematic[<player.uuid> _copy] .exists> :
60
- - narrate "<&c > You must copy something with <&b > /copy <&2 > or <&b > /cload <&2 > first."
61
+ - narrate "<&[error] > You must copy something with <&[emphasis] > /copy <&[base] > or <&[emphasis] > /cload <&[base] > first."
61
62
- stop
62
63
- if <player.has_flag[copying] > :
63
- - narrate "<&c > You must wait until the copying is complete before you can paste."
64
+ - narrate "<&[error] > You must wait until the copying is complete before you can paste."
64
65
- stop
65
- - narrate <&2 > Pasting...
66
+ - narrate <&[base] > Pasting...
66
67
- if <context.args.first||null> == noair:
67
68
- ~schematic paste name:<player.uuid> _copy <player.location.block> noair delayed
68
69
- else :
69
70
- ~schematic paste name:<player.uuid> _copy <player.location.block> delayed
70
- - narrate <&2 > Pasted.
71
+ - narrate <&[base] > Pasted.
71
72
72
73
cpreview_command :
73
74
type : command
@@ -78,21 +79,21 @@ cpreview_command:
78
79
permission : dscript.cpreview
79
80
script :
80
81
- if !<schematic[<player.uuid> _copy] .exists> :
81
- - narrate "<&c > You must copy something with <&b > /copy <&2 > or <&b > /cload <&2 > first."
82
+ - narrate "<&[error] > You must copy something with <&[emphasis] > /copy <&[base] > or <&[emphasis] > /cload <&[base] > first."
82
83
- stop
83
84
- if <player.has_flag[copying] > :
84
- - narrate "<&c > You must wait until the copying is complete before you can paste."
85
+ - narrate "<&[error] > You must wait until the copying is complete before you can paste."
85
86
- stop
86
- - narrate <&2 > Pasting...
87
+ - narrate <&[base] > Pasting...
87
88
- define duration <context.args.first||10s>
88
89
- if <duration[<[duration] > ] ||null> == null:
89
- - narrate "<&c > That preview duration is invalid."
90
+ - narrate "<&[error] > That preview duration is invalid."
90
91
- stop
91
92
- if <context.args.get[2] > == noair:
92
- - ~schematic paste name:<player.uuid> _copy <player.location.block> noair delayed fake_to:<player.location.find.players.within [200] > fake_duration:<[duration] >
93
+ - ~schematic paste name:<player.uuid> _copy <player.location.block> noair delayed fake_to:<player.location.find_players_within [200] > fake_duration:<[duration] >
93
94
- else :
94
- - ~schematic paste name:<player.uuid> _copy <player.location.block> delayed fake_to:<player.location.find.players.within [200] > fake_duration:<[duration] >
95
- - narrate <&2 > Pasted.
95
+ - ~schematic paste name:<player.uuid> _copy <player.location.block> delayed fake_to:<player.location.find_players_within [200] > fake_duration:<[duration] >
96
+ - narrate <&[base] > Pasted.
96
97
97
98
cload_command :
98
99
type : command
@@ -103,17 +104,17 @@ cload_command:
103
104
permission : dscript.cload
104
105
script :
105
106
- if <context.args.is_empty> :
106
- - narrate "<&c > /cload [name]"
107
+ - narrate "<&[error] > /cload [name]"
107
108
- stop
108
109
- define name <context.args.first.escaped>
109
110
- if !<server.has_file[schematics/<[name] > .schem] > :
110
- - narrate "<&c > Unknown area save."
111
+ - narrate "<&[error] > Unknown area save."
111
112
- stop
112
113
- if <schematic[<player.uuid> _copy] .exists> :
113
- - narrate "<&c > Forgetting previously copied area."
114
+ - narrate "<&[error] > Forgetting previously copied area."
114
115
- schematic unload name:<player.uuid> _copy
115
116
- ~schematic load name:<player.uuid> _copy filename:<[name] > delayed
116
- - narrate <&2 > Loaded.
117
+ - narrate <&[base] > Loaded.
117
118
118
119
csave_command :
119
120
type : command
@@ -124,16 +125,16 @@ csave_command:
124
125
permission : dscript.csave
125
126
script :
126
127
- if <context.args.is_empty> :
127
- - narrate "<&c > /csave [name]"
128
+ - narrate "<&[error] > /csave [name]"
128
129
- stop
129
130
- if !<schematic[<player.uuid> _copy] .exists> :
130
- - narrate "<&c > You must copy something with <&b > /copy <&2 > or <&b > /cload <&2 > first."
131
+ - narrate "<&[error] > You must copy something with <&[emphasis] > /copy <&[base] > or <&[emphasis] > /cload <&[base] > first."
131
132
- stop
132
133
- define name <context.args.first.escaped>
133
134
- if <server.has_file[schematics/<[name] > .schem] > :
134
- - narrate "<&c > Overwriting existing area save."
135
+ - narrate "<&[error] > Overwriting existing area save."
135
136
- ~schematic save name:<player.uuid> _copy filename:<[name] > delayed
136
- - narrate <&2 > Saved.
137
+ - narrate <&[base] > Saved.
137
138
138
139
cflip_command :
139
140
type : command
@@ -144,17 +145,17 @@ cflip_command:
144
145
permission : dscript.cflip
145
146
script :
146
147
- if !<schematic[<player.uuid> _copy] .exists> :
147
- - narrate "<&c > You must copy something with <&b > /copy <&2 > or <&b > /cload <&2 > first."
148
+ - narrate "<&[error] > You must copy something with <&[emphasis] > /copy <&[base] > or <&[emphasis] > /cload <&[base] > first."
148
149
- stop
149
150
- choose <context.args.first||null> :
150
151
- case x:
151
152
- ~schematic name:<player.uuid> _copy flip_x delayed
152
- - narrate "<&2 > Flipped your copy around the X axis."
153
+ - narrate "<&[base] > Flipped your copy around the X axis."
153
154
- case z:
154
155
- ~schematic name:<player.uuid> _copy flip_z delayed
155
- - narrate "<&2 > Flipped your copy around the Z axis."
156
+ - narrate "<&[base] > Flipped your copy around the Z axis."
156
157
- default :
157
- - narrate "<&c > /cflip [x/z]"
158
+ - narrate "<&[error] > /cflip [x/z]"
158
159
159
160
crotate_command :
160
161
type : command
@@ -165,10 +166,10 @@ crotate_command:
165
166
permission : dscript.crotate
166
167
script :
167
168
- if !<schematic[<player.uuid> _copy] .exists> :
168
- - narrate "<&c > You must copy something with <&b > /copy <&2 > or <&b > /cload <&2 > first."
169
+ - narrate "<&[error] > You must copy something with <&[emphasis] > /copy <&[base] > or <&[emphasis] > /cload <&[base] > first."
169
170
- stop
170
171
- if !<list[90|180|270] .contains[<context.args.first||null> ] > :
171
- - narrate "<&c > /crotate [90/180/270]"
172
+ - narrate "<&[error] > /crotate [90/180/270]"
172
173
- stop
173
174
- ~schematic name:<player.uuid> _copy rotate angle:<context.args.first> delayed
174
- - narrate "<&2 > Rotated your copy by <&b ><context.args.first><&2 > ."
175
+ - narrate "<&[base] > Rotated your copy by <&[emphasis] ><context.args.first><&[base] > ."
0 commit comments