whcwdsj
本帖最后由 whcwdsj 于 2022-12-21 11:47 编辑

【干货警告】
注意:本教程只提供范例,萌新照着做就行了
目的:让爬行者向前投掷一瓶缓慢滞留药水
如图:


图中命令方块状态均为脉冲、不受制约、红石控制,从左到右依次编号:1、2、3、4、5、6

准备工作:

在聊天框中输入:/summon minecraft:creeper ~ ~1 ~ {Tags:["26"]}和/fill -1 0 -1 1 2 1 minecraft:air

{1}中的命令:summon minecraft:armor_stand 0.0 0.0 0.0 {Tags:["s18"],Marker:1}
{2}中的命令:data modify entity @e[tag=s18,limit=1] Rotation set from entity @e[tag=26,limit=1] Rotation
{3}中的命令:execute as @e[tag=s18] at @s run tp @s ^ ^ ^0.5
{4}中的命令:execute at @e[tag=26] run summon minecraft:potion ~ ~1.5 ~ {Item:{id:"minecraft:lingering_potion",Count:1b,tag:{Potion:strong_slowness}},Tags:["s19"]}
{5}中的命令:data modify entity @e[tag=s19,limit=1] Motion set from entity @e[tag=s18,limit=1] Pos
{6}中的命令:kill @e[tag=s18]

最后按下按钮即可({3}中的......^ ^ ^0.5处这个标粗的数字决定药水的加速度,即掷出的距离

希望我的教程可以帮助你解决烦恼或启发你的灵感,如果有不懂的可以在评论区问我





起名字不难
苦力怕觉得很赞

飞叶MC
看起来不错,虽然不知道有啥用,还是加个收藏吧

第一页 上一页 下一页 最后一页