你可以运行命令 /function editor:get_items 来获取一个“打开编辑器”工具。使用该工具后,它将选中你当前注视的方块,并进入选择模式。(你还会获得一个“传送”工具;这与本功能无关,仅作为实用工具提供。)
在选择模式下(可以选择任意数量的方块位置),以下工具可用:
- 切换(金):选中你当前注视的方块位置,如果该位置已被选中,则取消选中。
- 退出(木):取消选中所有已选中的方块,并退出编辑器。
- 转换为立方体(钻石):找到包含所有选中位置的最小长方体。选中此长方体(取消选中所有单独的位置),并切换到立方体模式。
- 设置方块(石头):将每个选中的方块设置为你当前注视的方块。
- 移动(铁):将你注视方向上的所有选中位置各移动一个方块的距离。
在立方体模式下(选中了一个立方体/长方体),以下工具可用:
- 更多选项(书):打开次级立方体模式菜单。
- 退出(木):取消选中立方体并退出编辑器。
- 填充(石头):使用你当前注视的方块填充该立方体。
- 转换为位置(钻石):在选中立方体的每个角上选中一个位置。取消选中立方体并切换回选择模式。
- 移动(铁):沿你注视的方向按 立方体自身尺寸 移动该立方体。(例如,如果立方体高 2 个方块且你向上看,它将向上移动 2 个方块。如果你想只移动 1 个方块,请先转换为位置。)
- 复制(铜):将选中区域复制到剪贴板。你将获得一个新的“剪贴板物品”,代表被复制的结构。持有该剪贴板物品时,可以右键粘贴,或左键丢弃已复制的结构。(请勿通过其他方式破坏剪贴板物品,否则可能会导致错误!)
在次级立方体模式菜单中,以下工具可用:
- 返回(书):返回主立方体模式菜单。
- 选中相同方块(金):选中选中立方体内与你当前注视的方块完全相同的每个方块,并切换至选择模式。
- 扩展(钻石):扩展选中的立方体,使其包含你当前注视的方块。
- 生成结构方块(下界合金):创建一个配置为包含选中立方体的结构方块。
玩得开心! :)
几点说明:
- 由于命令限制,“填充立方体”方法相对效率较低,因此
/gamerule max_command_sequence_length(默认设置为 65536)决定了(大约)可填充的最大方块数量。你可能希望将其设置为更大的值(例如,/gamerule max_command_sequence_length 16777216)。 - 类似地,
/gamerule max_block_modifications(默认设置为 32768)决定了可以同时复制、粘贴或填充的方块数量。你可以将其设置为更大的值(例如,/gamerule max_block_modifications 2147483647),但如果修改大量方块,服务器可能会变慢或崩溃。 - 如果发现任何错误,请告诉我!(我在 Discord 上!)
(免责声明:我没有使用过 WorldEdit,也不知道它是如何工作的,但我确实不太确定这个数据包还能叫什么名字。我只是因为想更轻松地使用 /fill 命令以及进行复制粘贴操作才制作了它。)
You can run the command /function editor:get_items to get an "Open Editor" tool which, when used, will select the block you are looking at, and enter Selection Mode. (You will also get a "Teleport" tool; this is unrelated and just for utility.)
In Selection Mode (where any number of block positions can be selected), these tools are available:
- Toggle (gold): Select the block position you are looking at, or de-select it if it is already selected.
- Exit (wooden): De-select all selected blocks and exit the editor.
- Convert to Cube (diamond): Find the smallest cuboid containing all selected positions. Select this cuboid (deselecting all positions), and switch to Cube Mode.
- Set Blocks (stone): Set each selected block to the block you are currently looking at.
- Move (iron): Move all selected positions by one block in the direction you are looking.
In Cube Mode (where a cube(oid) is selected), these tools are available:
- More Options (book): Open the secondary Cube Mode menu.
- Exit (wooden): De-select the cube and exit the editor.
- Fill (stone): Fill the cube with the block you are looking at.
- Convert to Positions (diamond): Select one position at each corner of the selected cube. De-select the cube and switch to Selection Mode.
- Move (iron): Move the cube by its size in the direction you are looking. (For example, if the cube is 2 blocks high and you are looking up, it will move 2 blocks up. If you want to move by 1 block, convert to positions first.)
- Copy (copper): Copy the selected region to the clipboard. You will get a new "clipboard item" representing the copied structure. While holding the clipboard item, you can right-click to paste, or left-click to discard the copied structure. (Do not destroy the clipboard item through any other means, or you may experience bugs!)
In the secondary Cube Mode menu, these tools are available:
- Back (book): Return to the main Cube Mode menu.
- Select Same Blocks (gold): Select each block inside the selected cube which is exactly the same as the block you are looking at, and switch to Selection Mode.
- Expand (diamond): Expand the selected cube so it contains the block you are looking at.
- Generate Structure Block (netherite): Create a structure block configured to contain the selected cube.
Have fun! :)
A few notes:
- As the "fill cube" method is relatively inefficent due to command limitations,
/gamerule max_command_sequence_length(by default set to 65536) determines (approximately) the maximum number of blocks that may be filled. You may wish to set this to a larger value (for example,/gamerule max_command_sequence_length 16777216). - Similarily,
/gamerule max_block_modifications(by default set to 32768) determines the number of blocks that may be copied, pasted, or filled at once. You can set this to a larger value (for example,/gamerule max_block_modifications 2147483647), however the server may slow down or crash if lots of blocks are being modified. - If you find any bugs, let me know! (I'm on Discord!)
(Disclaimer: I haven't used WorldEdit and have no idea how it works, but I wasn't really sure what else to name this datapack. I just made this because I wanted to be able to use /fill easier, and use copy-paste.)
下载 World Edit Mini
下载 World Edit Mini
下载 World Edit Mini
下载 World Edit Mini
下载 World Edit Mini
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 World Edit Mini
下载 World Edit Mini
下载 World Edit Mini
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 World Edit Mini
下载 World Edit Mini
在 cube2 模式下,新增了一个“Expand”(扩展)工具,可将选定的立方体扩展至包含你当前注视的位置。
你还可以在一个物品中放入多条命令,例如:
give @s minecraft:carrot_on_a_stick[minecraft:custom_name="Teleport to Other Player",minecraft:item_model="minecraft:ender_eye",minecraft:enchantment_glint_override=true,minecraft:custom_data={editor:{is_command:1b,command:"execute at @p[distance=1..] run tp @s ^ ^1 ^-1",next:{command:"execute unless entity @p[distance=1..] at @r run tp @s ^ ^1 ^-1",next:{}}}}]
或者……
give @s minecraft:carrot_on_a_stick[minecraft:custom_name="Parkour",minecraft:item_model="minecraft:netherite_upgrade_smithing_template",minecraft:enchantment_glint_override=true,minecraft:custom_data={editor:{is_command:1b,command:"fill ~-2 ~-2 ~-2 ~2 ~6 ~18 sandstone",next:{command:"fill ~-1 ~ ~-1 ~1 ~5 ~17 air",next:{command:"fill ~-1 ~-1 ~3 ~1 ~-1 ~15 lava",next:{command:"fill ~-1 ~-2 ~3 ~1 ~-2 ~15 stone",next:{command:"setblock ~ ~-1 ~4 nether_brick_fence",next:{command:"setblock ~-1 ~-1 ~6 nether_brick_fence",next:{command:"setblock ~ ~-1 ~7 nether_brick_fence",next:{command:"setblock ~ ~ ~7 nether_brick_fence",next:{command:"setblock ~ ~-1 ~10 nether_brick_fence",next:{command:"setblock ~ ~ ~10 nether_brick_fence",next:{command:"setblock ~1 ~-1 ~12 nether_brick_fence",next:{command:"setblock ~1 ~ ~12 nether_brick_fence",next:{command:"setblock ~1 ~1 ~12 nether_brick_fence",next:{command:"setblock ~ ~-2 ~17 repeating_command_block{auto:1b,Command:\"/execute as @a[distance=0..3,nbt={OnGround:1b}] run function editor:onclick/custom {command:\\\"title @s actionbar [{\\\\\\\"text\\\\\\\":\\\\\\\"You did it!\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"green\\\\\\\"}]\\\",next:{command:\\\"fill ~-2 ~-1 ~-19 ~2 ~8 ~1 air\\\",next:{command:\\\"fill ~-1 ~1 ~-1 ~1 ~1 ~ sandstone\\\",next:{command:\\\"summon firework_rocket ~ ~2 ~-0.5 {LifeTime:10,FireworksItem:{id:firework_rocket,components:{fireworks:{flight_duration:1,explosions:[{shape:\\\\\\\"large_ball\\\\\\\",has_twinkle:1,has_trail:1,colors:[I;4312372],fade_colors:[I;3887386,4312372]}]}}}}}}\\\",next:{}}}}}\",TrackOutput:0b}",next:{command:"setblock ~ ~-3 ~8 repeating_command_block{auto:1b,Command:\"/execute as @a[distance=0..10] run function editor:onclick/custom {command:\\\"execute at @s unless block ~ ~-0.25 ~ stone run return 0\\\",next:{command:\\\"title @s actionbar [{\\\\\\\"text\\\\\\\":\\\\\\\"You failed!\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"red\\\\\\\"}]\\\",next:{command:\\\"fill ~-2 ~ ~-10 ~2 ~9 ~10 air\\\",next:{command:\\\"execute at @s run setblock ~ ~-1.5 ~ sandstone\\\",next:{}}}}}}\",TrackOutput:0b}",next:{}}}}}}}}}}}}}}}}}]
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
数据包
此数据包添加了属于阿瓦里海盗的独特结构,将他们的独特风格带入你的 Minecraft 世界!兼容性:1.20 至 26.3
数据包
一个 Minecraft 光线投射库,能够精确检测玩家正在查看的方块,包括像台阶和楼梯这样的特殊方块形状。
数据包
此数据包添加了新的“祝福模式”难度。
数据包
允许服务器管理员方便地禁用 Xaero's Map 系列模组中的实体雷达、小地图等功能,使竞技游戏更加公平。
数据包
手持潜影盒时可直接打开,无需将其放置在地面上。只需按住 Shift 并右键点击即可访问你的潜影盒。
数据包
为你的 Minecraft 世界添加了超过 900 个新的进度
评论 0
登录后参与评分
还没有评论,来抢沙发吧