一条命令即可获得 29 个装满附魔装备、药水、书籍和补给品的潜影盒。Gearkit 是一个适用于创造模式和测试世界的简易数据包,用于让你无需收集即可直接获得装备。
盒子内容
| 盒子 |
数量 |
内容 |
| 装备 |
10 |
全套下界合金护甲、剑、斧、两张弓、两把弩、两支三叉戟、两支重锤、两把镐、一把铲、剪刀、钓鱼竿、盾牌、鞘翅、一个图腾、火箭、箭矢以及 16 个附魔金苹果。 |
| 药水 |
10 |
42 种药水类型,包括可饮用、喷溅型和滞留型,每种两个。 |
| 书籍 |
2 |
所有 40 种附魔均处于最高等级,外加 14 本备用书。 |
| 图腾 |
1 |
27 个图腾。 |
| 火箭 |
1 |
27 组飞行持续时间为 3 秒的火箭。 |
| 移动 |
1 |
末影珍珠、紫颂果、风弹、附带火箭的鞘翅、水桶、黑曜石、末影箱、重生锚、床、脚手架、船、矿车及铁轨。 |
| 食物与方块 |
1 |
金苹果、金胡萝卜、肉类、一个蛋糕,以及从圆石到下界合金的各种建筑方块。 |
| 工作台站 |
1 |
五个信标(配有 192 块下界合金块)、导管、铁砧、附魔台和锻造台、酿造装置以及经验瓶。 |
| 附魔箭矢 |
2 |
42 种药水类型作为箭矢使用,每种 64 支。 |
这十个装备盒有六种变体。它们在护甲的保护类型和武器的伤害类型上有所不同。
每项附魔均处于原版最大值,绝不会超出。不包含火焰类附魔:未添加火属性(Fire Aspect)和焰魂(Flame)。无法在同一物品上共存的附魔会被分配到两个物品上,例如一把拥有无限(Infinity)附魔的弓和一把拥有经验修补(Mending)附魔的弓,或者一把拥有抢夺(Fortune)附魔的镐和一把拥有精准采集(Silk Touch)附魔的镐。
使用方法
你需要运行函数的权限:在单人世界中开启作弊,或在服务器上拥有管理员权限。
将文件放入世界的 datapacks 文件夹中,运行 /reload,然后运行 /function gearkit:all。
六个盒子会进入你的末影箱。其余 23 个盒子会放置在你前方 15 格的地面上,每排五个。
/function gearkit:give_all 会将所有 29 个盒子放入你的物品栏中。由于物品栏只有 36 个槽位,因此需要物品栏几乎为空。
文件版本
对于 Minecraft 1.21.5 及更高版本,请使用 1.0.0。对于 1.21 至 1.21.4,请使用 1.0.0-legacy。内容相同,仅附魔的写法不同。
测试情况
我在运行 1.21.11 和 26.3 的原版服务器上测试了 1.0.0 版本,并在 1.21 上测试了 1.0.0-legacy 版本。在每个环境中,该数据包均无错误加载,末影箱容纳了 6 个盒子,地面上放置了 23 个盒子,执行 give_all 后物品栏容纳了 29 个盒子。
未测试项:中间版本以及真实游戏客户端。测试玩家为机器人。
该数据包在聊天栏中显示的两条消息为德语。
源码
该数据包由 Python 脚本生成。脚本及其输出位于 GitHub,遵循 MIT 许可证。
One command hands you 29 shulker boxes of fully enchanted gear, potions, books and supplies. Gearkit is a plain datapack for creative and test worlds, where you want the gear without collecting it first.
What is in the boxes
| Boxes |
Count |
Contents |
| Gear |
10 |
Full netherite armour, sword, axe, two bows, two crossbows, two tridents, two maces, two pickaxes, shovel, shears, fishing rod, shield, elytra, a totem, rockets, arrows and 16 enchanted golden apples. |
| Potions |
10 |
42 potion types as drinkable, splash and lingering, two of each. |
| Books |
2 |
All 40 enchantments at their highest level, plus 14 spare books. |
| Totems |
1 |
27 totems. |
| Rockets |
1 |
27 stacks of rockets with flight duration 3. |
| Mobility |
1 |
Ender pearls, chorus fruit, wind charges, an elytra with rockets, buckets, obsidian, ender chests, respawn anchors, a bed, scaffolding, a boat, a minecart and rails. |
| Food and blocks |
1 |
Golden apples, golden carrots, meat, a cake, and building blocks from cobblestone to netherite. |
| Station |
1 |
Five beacons with 192 netherite blocks, conduits, anvils, an enchanting and a smithing table, a brewing set-up and experience bottles. |
| Tipped arrows |
2 |
All 42 potion types as arrows, 64 each. |
The ten gear boxes come in six variants. They differ in the protection type on the armour and the damage type on the weapons.
Every enchantment is at its vanilla maximum, never above it. There are no fire enchantments: Fire Aspect and Flame are left out. Enchantments that cannot share an item are split over two items, for example a bow with Infinity and a bow with Mending, or a pickaxe with Fortune and one with Silk Touch.
How to use it
You need permission to run functions: cheats switched on in your own world, or operator rights on a server.
Put the file into the datapacks folder of your world, run /reload, then run /function gearkit:all.
Six boxes go into your ender chest. The other 23 are placed on the ground 15 blocks in front of you, five to a row.
/function gearkit:give_all puts all 29 boxes into your inventory instead. An inventory has 36 slots, so it has to be almost empty.
Which file
Take 1.0.0 for Minecraft 1.21.5 and later. Take 1.0.0-legacy for 1.21 to 1.21.4. The contents are the same, only the way enchantments are written differs.
What is tested
I ran 1.0.0 on plain servers running 1.21.11 and 26.3, and 1.0.0-legacy on 1.21. On each one the datapack loaded without an error, the ender chest held 6 boxes, 23 boxes stood on the ground and the inventory held 29 after give_all.
Not tested: the versions in between, and a real game client. The test player was a bot.
The two messages the datapack prints in the chat are in German.
Source
The datapack is generated by a Python script. The script and its output are on GitHub under the MIT license.
评论 0
登录后参与评分
还没有评论,来抢沙发吧