它的作用:
- 此数据包可用于任何地图,无需必须是独立地图
- 在堕落王国区域中,末影珍珠、紫颂果和黑曜石方块会自动从背包中清除
- 你可以创建多个堕落王国游戏,但同一时间只能启动一个
- 最多可组建 4 支队伍,但你也可以使用更少的队伍
- TNT 仅在队伍基地内生效,其他地方无效
- 你必须使用商人提供的 TNT(见下文),普通 TNT 无效
- 某些生物(如苦力怕)会被自动禁用以防止破坏行为,但 gamerule mobGriefing 保持不变!这意味着如果你的服务器或地图中有其他内容,不会受到任何影响
- 你可以在自定义地图上手动设置(由你决定每个队伍的基地位置、各队宝箱的隐藏位置等),也可以采用简单预设的方式在空旷平坦的区域进行设置,你只需围绕建造即可,无需操作命令
预设地图的设置方法:
(不要在预设地图上使用其他功能,这可能会造成破坏)
1) 权限功能:
/function fallen_kingdom:get_fk_owner_permission_level (在受保护区域授予你创造模式权限)
/function fallen_kingdom:get_player_permission_level (在受保护区域中你将处于冒险模式,就像正常玩游戏一样)
2) 游戏玩法设置功能:
/function fallen_kingdom:create_teams (将创建 4 支空队伍:红色、蓝色、绿色、黄色)
/function fallen_kingdom:set_center (定义堕落王国的中心点!一旦设定完成,靠近中心的玩家会收到一条自定义消息以告知他们已到达中心点)
/function fallen_kingdom:get_merchant_spawn_egg (获取一个预设商人刷怪蛋,可以放置在中心点或任意你希望的位置!该商人出售预设的实用物品,例如可在敌方队伍放置的 TNT、下界合金升级等)
/function fallen_kingdom:protect_this (在 30 格半径的球形范围内防止破坏。为避免聊天框中的冲突,建议运行 /gamerule sendCommandFeedback false。请勿将此功能用于队伍基地附近或内部,因为基地已有自己的反破坏功能)
/function fallen_kingdom:reset_antigrief (移除 50 格半径内的反破坏保护。用于撤销上一条命令的效果)
/function fallen_kingdom:claim_blue (认领蓝色队伍的基地位置,范围为 50 格半径的球形!确保在基地下方也执行此功能,以便玩家可以在其基地下方挖掘,并运行 /gamerule sendCommandFeedback false)
/function fallen_kingdom:claim_red (认领红色队伍的基地位置,范围为 50 格半径的球形!确保在基地下方也执行此功能,以便玩家可以在其基地下方挖掘,并运行 /gamerule sendCommandFeedback false)
/function fallen_kingdom:claim_green (认领绿色队伍的基地位置,范围为 50 格半径的球形!确保在基地下方也执行此功能,以便玩家可以在其基地下方挖掘,并运行 /gamerule sendCommandFeedback false)
/function fallen_kingdom:claim_yellow (认领黄色队伍的基地位置,范围为 50 格半径的球形!确保在基地下方也执行此功能,以便玩家可以在其基地下方挖掘,并运行 /gamerule sendCommandFeedback false)
/function fallen_kingdom:set_chest_blue (设置其他队伍必须找到的宝箱位置以赢得比赛!注意:你需要手动放置宝箱,然后站在宝箱上运行此命令)
/function fallen_kingdom:set_chest_red (设置其他队伍必须找到的宝箱位置以赢得比赛!注意:你需要手动放置宝箱,然后站在宝箱上运行此命令)
/function fallen_kingdom:set_chest_green (设置其他队伍必须找到的宝箱位置以赢得比赛!注意:你需要手动放置宝箱,然后站在宝箱上运行此命令)
/function fallen_kingdom:set_chest_yellow (设置其他队伍必须找到的宝箱位置以赢得比赛!注意:你需要手动放置宝箱,然后站在宝箱上运行此命令)
/function fallen_kingdom:reset_blue (如果存在,则移除蓝色队伍的基地保护,范围为 50 格半径)
/function fallen_kingdom:reset_red (如果存在,则移除红色队伍的基地保护,范围为 50 格半径)
/function fallen_kingdom:reset_green (如果存在,则移除绿色队伍的基地保护,范围为 50 格半径)
/function fallen_kingdom:reset_yellow (如果存在,则移除黄色队伍的基地保护,范围为 50 格半径)
/function fallen_kingdom:reset_chest_blue (如果存在,则移除蓝色队伍的宝箱,范围为 50 格半径)
/function fallen_kingdom:reset_chest_red (如果存在,则移除红色队伍的宝箱,范围为 50 格半径)
/function fallen_kingdom:reset_chest_green (如果存在,则移除绿色队伍的宝箱,范围为 50 格半径)
/function fallen_kingdom:reset_chest_yellow (如果存在,则移除黄色队伍的宝箱,范围为 50 格半径)
新地图的设置方法
(在使用这些命令前必须处于平坦区域)
1) 权限功能:
/function fallen_kingdom:get_fk_owner_permission_level (在受保护区域授予你创造模式权限)
/function fallen_kingdom:get_fk_owner_permission_level (在受保护区域中你将处于冒险模式,就像正常玩游戏一样)
2) 游戏玩法设置功能:
/function fallen_kingdom:setup (将在你当前位置为你完成所有设置,并以公平的方式进行游戏(各基地之间的距离相等),同时创建一个大厅房间以开始游戏或加入队伍。请在空旷或平坦的区域使用此命令。每个队伍将在其基地放置一座信标,且宝箱会自动放置)
/function fallen_kingdom:reset_all (重置所有内容!部分方块将被移除)
游戏开始时将会清除相关内容!
What does it do:
- This datapack can be used on any maps, it doesn't need to be a standalone map
- Enderpearls, chorus fruit, obsidian blocks, are automatically cleared from inventory in fallen kingdom areas
- You can create multiple fallen kingdom games, but only start one at the same time
- Up to 4 teams can be made, but you can use less
- TNT only works in teams bases, not anywhere else
- You must use the TNT from the merchant (see below), regular TNT won't work
- Some mobs like creeper are automatically to prevent grief, but the gamerule mobGriefing remains untouched! It means that if you've other stuff in your server or map, nothing will break
- You can manually set it up on a custom map (you decide yourself where each team's base is, where the chest of each team is hidden and so on), or you can set it up the easy and premade way in an empty, flat area, where all you'll have to do is build around and not mess with commands
Setup for a premade map:
(do not use any others functions on a premade map, it could grief it)
1) Permissions functions:
/function fallen_kingdom:get_fk_owner_permission_level (Grant you creative mode in protected areas)
/function fallen_kingdom:get_player_permission_level (You'll be in adventure mode in protected areas as if you were playing)
2) Gameplay setup functions:
/function fallen_kingdom:create_teams (It'll create 4 empty teams: red, blue, green, yellow)
/function fallen_kingdom:set_center (Define the center of the fallen kingdom! Once defined, a custom message will appear for players that are close to the center to let them know they are at the center)
/function fallen_kingdom:get_merchant_spawn_egg (Get a premade merchant spawn egg to place at the center or anywhere you'd like! This merchant sells premade usefull items, like TNT placeable in enemy teams, netherite upgrade...)
/function fallen_kingdom:protect_this (Protect the area from griefing in a 30 blocks radius, spherical. To avoid conflict in the chat, it's better to run /gamerule sendCommandFeedback false. Do not use this function near a team's base or in a team's base, bases have their own antigrief functions)
/function fallen_kingdom:reset_antigrief (remove the antigrief protection in a 50 blocks radius. Use this to undo the previous command)
/function fallen_kingdom:claim_blue (Claim the blue team's base position, 50 blocks radius, spherical! Make sure to use this functions below the base aswell to let players mine below their base, and
to run /gamerule sendCommandFeedback false)
/function fallen_kingdom:claim_red (Claim the red team's base position, 50 blocks radius, spherical! Make sure to use this functions below the base aswell to let players mine below their base, and to run /gamerule sendCommandFeedback false)
/function fallen_kingdom:claim_green (Claim the green team's base position, 50 blocks radius, spherical! Make sure to use this functions below the base aswell to let players mine below their base, and to run /gamerule sendCommandFeedback false)
/function fallen_kingdom:claim_yellow (Claim the yellow team's base position, 50 blocks radius, spherical! Make sure to use this functions below the base aswell to let players mine below their base, and to run /gamerule sendCommandFeedback false)
/function fallen_kingdom:set_chest_blue (Set the position of the chest that others teams must find in order to win! Note: you'll have to manually place the chest, then run this commands whilst stepping on it)
/function fallen_kingdom:set_chest_red (Set the position of the chest that others teams must find in order to win! Note: you'll have to manually place the chest, then run this commands whilst stepping on it)
/function fallen_kingdom:set_chest_green (Set the position of the chest that others teams must find in order to win! Note: you'll have to manually place the chest, then run this commands whilst stepping on it)
/function fallen_kingdom:set_chest_yellow (Set the position of the chest that others teams must find in order to win! Note: you'll have to manually place the chest, then run this commands whilst stepping on it)
/function fallen_kingdom:reset_blue (Remove blue team's base protection if there are any, in a 50 blocks radius)
/function fallen_kingdom:reset_red (Remove red team's base protection if there are any, in a 50 blocks radius)
/function fallen_kingdom:reset_green (Remove green team's base protection if there are any, in a 50 blocks radius)
/function fallen_kingdom:reset_yellow (Remove yellow team's base protection if there are any, in a 50 blocks radius)
/function fallen_kingdom:reset_chest_blue (Remove blue team's chest if there are any, in a 50 blocks radius)
/function fallen_kingdom:reset_chest_red (Remove red team's chest if there are any, in a 50 blocks radius)
/function fallen_kingdom:reset_chest_green (Remove green team's chest if there are any, in a 50 blocks radius)
/function fallen_kingdom:reset_chest_yellow (Remove yellow team's chest if there are any, in a 50 blocks radius)
Setup for a new map
(must be on a flat area before using those commands)
1) Permissions functions:
/function fallen_kingdom:get_fk_owner_permission_level (Grant you creative mode in protected areas)
/function fallen_kingdom:get_fk_owner_permission_level (You'll be in adventure mode in protected areas as if you were playing)
2) Gameplay setup functions:
/function fallen_kingdom:setup (It'll setup everything for you at your current position, in a fair way gameplay wise (each bases are equal distance), and will create a lobby room to start the game or join teams. Use this in an empty or flat area. Each team will have a beacon placed in their base, and their chest will be automatically placed)
/function fallen_kingdom:reset_all (Reset everything! Some blocks will be removed)
Stuff will be cleared when starting the game!
评论 0
登录后参与评分
还没有评论,来抢沙发吧