GunGame
一个标准的 GunGame(军备竞赛)游戏,通过击杀玩家来获取下一把武器。非常适合与朋友一起游玩(同一时间只能运行一局游戏!)。你也可以使用我的另一个数据包 RandomSpawn 来设置随机出生点。
此数据包在启用 keepInventory 游戏规则时工作正常(加载数据包时会自动启用该规则)
功能
- 自定义武器列表:你可以从任何物品(包括模组添加的物品)创建自己的武器链预设。
- 多物品支持:一个关卡可以包含多个物品。例如,弩配箭矢或烟花。
- 起始套装:创建一个物品列表,在游戏开始时提供给所有玩家。
- 预设:数据包已内置三个武器预设,无需手动配置即可直接使用:原版预设以及来自 TaCZ 和 Superb Warfare 模组的预设
命令
通用:
/function gun_game:start - 开始游戏。
/function gun_game:end_game - 结束游戏。当除一名玩家外的所有其他人都获胜时,游戏会自动结束。
/function gun_game:give_current_gun - 给自己当前等级的武器。用于出现意外问题时补救。
/function gun_game:next_gun - 计算击杀数并给予下一把武器。当你无法完成当前任务时使用。
/function gun_game:get_guns - 给予一个装有武器列表的 barrel(木桶),用于 GunGame。
/function gun_game:give_starter_kit - 给自己起始套装(游戏开始时也会自动给予)。
设置武器列表:
/function gun_game:set_guns/from_block - 从你脚下的 chest/barrel 方块中设置武器列表(你必须站在该方块上)。
/function gun_game:set_guns/from_hand - 从手中的 chest/barrel 中设置武器列表(方块必须包含 NBT 数据)。
/function gun_game:set_guns/from_inventory - 从你的背包中设置武器列表。
设置起始套装(最多9个物品):
/function gun_game:set_starter_kit/from_block - 从你脚下的 chest/barrel 方块中设置起始套装物品列表(你必须站在该方块上)。
/function gun_game:set_starter_kit/from_hand - 从手中的 chest/barrel 中设置起始套装物品列表(方块必须包含 NBT 数据)。
/function gun_game:set_starter_kit/from_inventory - 从你的背包中设置起始套装物品列表。
预设:
/function gun_game:preset/vanilla - 设置 Vanilla 预设(默认)。
/function gun_game:preset/tacz - 设置 TaCZ 模组预设。
/function gun_game:preset/superb_warfare - 设置 Superb Warfare 模组预设。
如何在同一关卡放置多个物品
要在特定等级同时给予玩家多个物品,请将它们放入单独的 barrel(确保是 barrel!),然后使用 Ctrl + 鼠标滚轮 复制带有 NBT 标签的 barrel。接着将这个 barrel 放入你的主 chest/barrel(如果你使用 /function gun_game:set_guns/from_block)或放入你的背包中(如果你使用 /function gun_game:set_guns/from_inventory)。
配置动作
你可以自由修改数据包以满足需求。
- 在
start 函数中,你可以在文件末尾添加额外的函数以在游戏开始时执行。例如,传送至指定位置。
- 在
end_game 函数中,你可以指定游戏结束时发生的事情。例如,传送回大厅。
private/player_last_gun 函数会在玩家处于最后一把武器时运行。
private/win 函数会在玩家完成所有武器后运行。游戏仍可能继续(如果玩家人数超过两人)。
此外,当玩家持有最后一把武器时,他会获得标签 last_gun。你可以利用这一点为他赋予效果。例如 effect give @a[tag=last_gun] speed 1 0 true 会赋予他速度效果(将此函数放入重复命令方块中)。
预设
Vanilla
仅由 Minecraft 原版物品组成的预设。包括剑、斧头、附魔忠诚度的三叉戟、弓和弩。起始套装包含一支箭(用于搭配无限附魔的弓)。
命令:/function gun_game:preset/vanilla

TaCZ
由 [TaCZ] Timeless and Classics Zero 模组中的枪械组成的预设。包括5把冲锋枪、4把霰弹枪、7把步枪、2把狙击步枪、2挺机枪、1个榴弹发射器(不会破坏方块)、5把手枪,最后是一把锋利度为10的金剑。起始套装包含一个创造模式弹药箱(用于无限弹药)。
⚠️ 要使用此预设,你必须安装 [TaCZ] Timeless and Classics Zero 模组。
命令:/function gun_game:preset/tacz

Superb Warfare
由 Superb Warfare 模组中的枪械组成的预设。预设内容与 TaCZ 类似。
⚠️ 要使用此预设,你必须安装 Superb Warfare 模组。
命令:/function gun_game:preset/superb_warfare

提示
如果你在使用枪械模组(如 TaCZ 或其他),最好给所有玩家赋予抗性提升效果(命令:/effect give @a resistance infinite 2 true)。这样玩家就不会死得太快。
如果你在使用 Superb Warfare 模组,可以通过以下命令禁用爆炸对方块的破坏:
/superbwarfare config blockDestroy false
/superbwarfare config explosionDestroy false
/superbwarfare config collisionDestroy none
这样你就可以使用 RPG、榴弹发射器、C4 和其他爆炸性武器而不会破坏地图。
为了让玩家在游戏地图上的不同随机位置生成,请使用我的 RandomSpawn 数据包。
你还可以使用我的 Minimal hunger 数据包,以避免饥饿并防止生命值恢复过快(更多详情请参见描述)。
Discord
在我的 Discord 服务器 上,你可以报告我数据包中的问题并提出改进建议。如果你需要适用于新版本的数据包,请通过 Discord 联系我!你也可以向我订购定制的数据包。
GunGame
A standard GunGame (Arms Race) game where you kill players to earn the next weapon. Great for playing with friends (only one game can be running at a time!). You can also use my other datapack, RandomSpawn, to set random spawn points.
This datapack works with the gamerule keepInventor enabled (Enabled when loading the datapack)
Features
- Custom weapon list: You can create your own weapon chain presets from any items, including modded ones.
- Multi Items: There can be several items on one level. For example, a crossbow with arrows or fireworks.
- Starter Kit: Create a list of items that will be given to all players at the beginning of the game.
- Preset: The data pack already includes three weapon presets that you can use without manual configuration: vanilla preset and presets from the TaCZ and Superb Warfare mods
Commads
General:
/function gun_game:start - Starts the game.
/function gun_game:end_game - Finish the game. The game ends automatically when all but one player have won.
/function gun_game:give_current_gun - Give yourself a weapon at the current level. In case an unexpected problem occurs.
/function gun_game:next_gun - Counts the kill and give the next weapon. In case you can't complete it.
/function gun_game:get_guns - Give a barrel containing a list of weapons for GunGame.
/function gun_game:give_starter_kit - Give yourself a starter kit (it is also given at the beginning of the game).
Set a list of weapons:
/function gun_game:set_guns/from_block - Sets a list of weapons from the chest/barrel block below you (you must be standing on it).
/function gun_game:set_guns/from_hand - Sets a list of weapons from a chest/barrel in your hand (block must contain NBT).
/function gun_game:set_guns/from_inventory - Sets a list of weapons from your inventory.
Set starter kit (Max 9 items):
/function gun_game:set_starter_kit/from_block - Sets a list of items for the starter kit from the chest/barrel block below you (you must be standing on it).
/function gun_game:set_starter_kit/from_hand - Sets a list of items for the starter kit from a chest/barrel in your hand (block must contain NBT).
/function gun_game:set_starter_kit/from_inventory - Sets a list of items for the starter kit from your inventory.
Presets:
/function gun_game:preset/vanilla - Set Vanilla preset (default).
/function gun_game:preset/tacz - Set TaCZ mod preset.
/function gun_game:preset/superb_warfare - Set Superb Warfare mod preset.
How to place multiple items on the same level
To give players multiple items at once at a specific level, place them in a separate barrel (make sure it's a barrel!), and then copy it with NBT tags using Ctrl + Mouse Wheel. Then put this barrel in your main chest/barrel with weapons (if you use /function gun_game:set_guns/from_block) or in your inventory (if you use /function gun_game:set_guns/from_inventory).
Configuring actions
You can freely modify the data pack to suit your needs.
- In the
start function, you can add additional functions at the end of the file when starting the game. For example, teleport to the desired position.
- In the
end_game function, you can specify what happens at the end of the game. For example, teleport back to the lobby.
- The
private/player_last_gun function is run when the player is on their last gun.
- The
private/win function is run when the player has completed all weapons. The game can still continue (if there are more than two players).
Also, when a player is on his last weapon, he is given the tag last_gun. You can use this to give him effects. For example effect give @a[tag=last_gun] speed 1 0 true will give him speed (Place this function in a repeating command block.).
Presets
Vanilla
A preset consisting exclusively of vanilla Minecraft items. It includes swords, axes, trident with loyalty, bows and crossbows. The starter kit includes one arrow (for bow with infinity).
Command: /function gun_game:preset/vanilla

TaCZ
A preset consisting of guns from the Timeless and Classics Zero mod. It includes 5 submachine guns, 4 shotguns, 7 rifles, 2 sniper rifles, 2 machine guns, a grenade launcher (it does not destroy blocks), 5 pistols and at the end a golden sword with a sharpness of 10. The starter kit includes a creative ammo box (for infinite ammo).
⚠️ To use this preset you must have the [TaCZ] Timeless and Classics Zero mod installed.
Command: /function gun_game:preset/tacz

Superb Warfare
A preset consisting of guns from the Superb Warfare mod. Preset similar to TaCZ.
⚠️ To use this preset you must have the Superb Warfare mod installed.
Command: /function gun_game:preset/superb_warfare

Tips
If you're playing with firearm mods (TaCZ or others), it's best to give all players the resistance effect (command: /effect give @a resistance infinite 2 true). This way, players won't die too quickly.
If you're playing with the Superb Warfare mod, you can disable block destruction from explosions using commands:
/superbwarfare config blockDestroy false
/superbwarfare config explosionDestroy false
/superbwarfare config collisionDestroy none
And then you will be able to use RPGs, grenade launchers, C4 and other explosive weapons without destroying the map.
To make players spawn at different random points on the map, use my RandomSpawn datapack.
You can also use my Minimal hunger datapack so as not to go hungry and so that health doesn't regenerate too quickly (more details in the description).
Discord
On my Discord server, you can report bugs in my datapacks and suggest improvements. If you need this datapack for the new version, write to me about it on Discord! You can also order a datapack from me.
评论 0
登录后参与评分
还没有评论,来抢沙发吧