简介:
ADA 是一个旨在简化数据包制作的数据包。
功能:
- 100+ 计分板用于存储数据和统计信息。
- 大量标签,使数据包制作更简单。
- 大量谓词,便于数据包制作。
- 射线投射引擎,用于制作枪械、长距离视野等。
- 带有运动引擎的投射物,轻松制作自定义投射物。
- 使用方块显示(block displays)即时创建自定义方块。
- 可自定义设置。
- 清除聊天栏的命令。
- 测试用的假数据(dummys)。
- 删除世界中所有实体的命令,但保留某些实体(如方块显示、盔甲架、玩家等)。
- 数学运算,包括乘法、除法、对数等。
- 随机数生成器
- 以及更多!
使用方法:
玩家
将此数据包拖入数据包文件夹中,与其他依赖此数据包的数据包一起放置。
创作者
在你的数据包文件夹中使用此数据包,并在同一文件夹中制作你自己的数据包。此数据包允许你制作自己的数据包,并使用我数据包中的标签、谓词、引擎等功能(无需复制代码)。发布你的数据包时,请确保留下此数据包的链接,因为你的数据包需要安装此数据包才能正常运行。教程见下方。
教程:
入门指南
在加载文件(load file)中放入以下代码,以检测是否已安装 ADA:
execute if score check installed matches 1 run say My Datapack
创建一个新的 mcfunction 文件,如果从加载文件中检测到已安装 ADA,则运行此 mcfunction:
execute if score check installed matches 1 run function [namespace]:[mcfunction]
在 [namespace] 中填入你的命名空间。在 [mcfunction] 中填入你的新 mcfunction 文件名。
自定义方块
首先使用 block display studio 创建自定义方块显示模型。点击 [这里] 的链接以使用该工具。
创建好自定义模型后,创建一个名为 place 的新 mcfunction 文件。在 place.mcfunction 文件中,放入召唤自定义模型的命令。在召唤命令之后,添加以下命令:
function ub:block_displays/apply_block/block
在 Minecraft 世界中运行你的 place 函数,享受你的自定义方块吧!
枪械
首先,创建一个新的计分板,用于检测你是否右键点击了胡萝卜钓竿:
scoreboard objectives add shoot minecraft.used:carrot_on_a_stick
在 tick 文件中放入以下命令:
execute as @a at @s if score @s shoot matches 1.. at @s run function ub:raycast/classic/start_raycast
该命令将检测 shoot 计分板是否为 1,如果是则会发射子弹。射击后重置计分板的命令如下:
execute as @a at @s if score @s shoot matches 1.. run scoreboard players set @s shoot 0
现在枪械部分已完成。如果你想查看弹道轨迹,请使用以下命令:
/function ub:settings/raycast/trail/on
船只发射器
首先,创建一个新的计分板,用于检测你是否右键点击了扭曲菌钓竿:
scoreboard objectives add launch minecraft.used:warped_fungus_on_a_stick
在 tick 文件中放入以下命令:
execute as @a at @s if score @s launch matches 1.. at @s run function ub:custom_projectiles/custom/throw {custom_projectile:"minecraft:boat"}
该命令将检测 launch 计分板是否为 1,如果是则会发射一艘船。射击后重置计分板的命令如下:
execute as @a at @s if score @s launch matches 1.. run scoreboard players set @s launch 0
尽情享受发射船只的乐趣吧!
你可以将 "minecraft:boat" 替换为你想要的任何实体。
YouTube 等级
你可以通过输入以下命令给自己授予 YouTube 等级:
function ub:ranks/give_rank {rank:"youtuber"}
所有等级
owner(所有者)
helper(助手)
user(用户)
streamer(主播)
master(大师)
expert(专家)
killer(杀手)
bot(机器人)
afk(挂机)
banned(封禁)
noob(菜鸟)
感谢使用 ADA!
What It Is:
ADA is a datapack built for easier datapack making.
Features:
- 100+ scoreboards to store data and statistics.
- Tons of tags to make datapacks easier to make.
- Tons of predicates for easier datapack making.
- Raycasting engine to make guns, longer sight, etc.
- Projectiles with motion engine to make custom projectiles easily.
- Create custom blocks instantly with block displays.
- Customizable settings.
- Command to clear the chat.
- Test dummys.
- Command to delete all entities from the world except for certain entities such as block - displays, armor stands, players, etc.
- Math, such as multiplication, division, logarithm, and more.
- Randomizers
- And more!
How To Use:
Players
Drag this datapack in the datapack folder with any other datapacks that require this one.
Creators
Use this datapack in your datapack folder and make your own datapack in the same folder. This datapack allows you to make your own datapack and use the tags, predicates, engines, and more from my datapack (without copying code). When you publish your datapack, make sure you leave a link to this datapack, because your datapack will require this one to be installed. Look below for tutorials.
Tutorials:
Getting Started
Inside of your load file, put this string of code to detect if ADA is installed:
execute if score check installed matches 1 run say My Datapack
Create a new mcfunction file, you will then run this mcfunction if ADA is installed from your load file using this line of code:
execute if score check installed matches 1 run function [namespace]:[mcfunction]
Inside of [namespace], put your namespace. Inside of [mcfunction], put your new mcfunction file name.
Custom Blocks
First create a custom block display model using block display studio. Click the link [HERE] to use it.
Once you've created your custom model, make a new mcfunction file called place. Inside of the place.mcfunction file, put your summon command for your custom model. After your summon command, put this command:
function ub:block_displays/apply_block/block
Run your place function in a Minecraft world, and enjoy your custom block!
Gun
First, create a new scoreboard that detects when you right click a carrot on a stick:
scoreboard objectives add shoot minecraft.used:carrot_on_a_stick
Inside of your tick file, put this command:
execute as @a at @s if score @s shoot matches 1.. at @s run function ub:raycast/classic/start_raycast
The command will detect if the score shoot matches 1 and it will shoot a bullet. To reset the score after you shoot, use this command:
execute as @a at @s if score @s shoot matches 1.. run scoreboard players set @s shoot 0
You are now finished with the gun, if you want to see bullet trails use this command:
/function ub:settings/raycast/trail/on
Boat Launcher
First, create a new scoreboard that detects when you right click a warped fungus on a stick:
scoreboard objectives add launch minecraft.used:warped_fungus_on_a_stick
Inside of your tick file, put this command:
execute as @a at @s if score @s launch matches 1.. at @s run function ub:custom_projectiles/custom/throw {custom_projectile:"minecraft:boat"}
The command will detect if the score launch matches 1 and it will shoot a boat. To reset the score after you shoot, use this command:
execute as @a at @s if score @s launch matches 1.. run scoreboard players set @s launch 0
Enjoy Launching Boats!
You can replace "minecraft:boat", with any entity you want.
YouTube Rank
You can give yourself YouTube rank by typing the command below:
function ub:ranks/give_rank {rank:"youtuber"}
All Ranks
owner
helper
user
streamer
master
expert
killer
bot
afk
banned
noob
Thank you for using ADA!
评论 0
登录后参与评分
还没有评论,来抢沙发吧