本帖最后由 ckhy 于 2022-7-4 11:09 编辑
例如,我要一瓶速度10秒的药水
则我输入指令:
复制代码那我获得一瓶速度10秒的 <不可合成药水> 但它是粉红色的
如果我想要绿色的呢?
我输入:
复制代码我就得到了一瓶 绿色的药水 ,但它不光有速度buff,还自带了中毒
同理,我如果想用原版指令弄一些自定义酒水/药水,例如一瓶绿色的速度药水,该怎么弄呢?

好吧,问题已经用 NBT Editor这个mod解决了,不过如果有大佬愿意分享一下具体指令的话还是会给最佳答案的哦
例如,我要一瓶速度10秒的药水
则我输入指令:
- /give @p minecraft:potion{Potion:CBC,CustomPotionEffects:[{Id:1,Amplifier:0,Duration:200}]} 1

如果我想要绿色的呢?
我输入:
- /give @p minecraft:potion{Potion:poison,CustomPotionEffects:[{Id:1,Amplifier:0,Duration:200}]} 1

同理,我如果想用原版指令弄一些自定义酒水/药水,例如一瓶绿色的速度药水,该怎么弄呢?

好吧,问题已经用 NBT Editor这个mod解决了,不过如果有大佬愿意分享一下具体指令的话还是会给最佳答案的哦

- /give @p minecraft:splash_potion 1 0 ({CustomPotionColor: 16777215, CustomPotionEffects: [{Duration: 6000, Id: 24}], Potion: "night_vision"})
/give @s minecraft:potion{CustomPotionColor:<颜色>}
其中颜色需要10进制数值
例如rgb(42, 56, 53)需换算为42 * 256 * 256 + 56 * 256 + 53 = 2766901
例如十六进制颜色#123456需换算为1193046(用计算器算,我不表演了)
洞穴夜莺 发表于 2022-7-4 11:11
其中颜色需要10进制数值
例如rgb(42, 56, 53)需换算为42 * 256 * 256 + 56 * 256 + 53 = 2766901
例如十六 ...
好的大佬,那再问一下有没有什么指令能够去掉药水的附魔光效呢
ckhy 发表于 2022-7-4 11:15
好的大佬,那再问一下有没有什么指令能够去掉药水的附魔光效呢
不能实现