本帖最后由 ⊙u⊙ 于 2020-3-19 23:40 编辑
随手(云)写了这么些玩意。求大佬写进数据包里。如果其中有问题请顺便修一下。
要求不敢提太多,只有两个
代码如下
复制代码
用了下面提供的包后才发现最后的uuid匹对写反了,弓归位也忘写了...谢谢大佬
随手(云)写了这么些玩意。求大佬写进数据包里。如果其中有问题请顺便修一下。
要求不敢提太多,只有两个
- 求一个完整能直接用的数据包
- 版本为20w12a或以上
代码如下
- #preparation
- dummy board
- uuid0,uuid1,uuid2,uuid3,owner0,owner1,owner2,owner3
- criteria board
- used_bow
- #load
- execute as @a run function foo:0
- #tick
- execute as @e[type=arrow,tag=!score_owner] run function foo:1
- execute as @a if score @s used_bow matches 1.. run function foo:2
- execute as @e[type=item,tag=flying_fish] at @s run function foo:6
- execute as @e[tag=target] at @s run function foo:8
- #foo:0
- execute store result score @s uuid0 run data get entity @s UUID[0]
- execute store result score @s uuid1 run data get entity @s UUID[1]
- execute store result score @s uuid2 run data get entity @s UUID[2]
- execute store result score @s uuid3 run data get entity @s UUID[3]
- #foo:1
- tag @s add score_owner
- execute store result score @s owner0 run data get entity @s Owner[0]
- execute store result score @s owner1 run data get entity @s Owner[1]
- execute store result score @s owner2 run data get entity @s Owner[2]
- execute store result score @s owner3 run data get entity @s Owner[3]
- #foo:2
- tag @s add processing_player
- execute at @s anchored eyes positioned ^ ^ ^ as @e[type=arrow,distance=..5,tag=!marked] run function foo:3
- tag @s remove processing_player
- #foo:3
- execute if score @s owner0 = @p[distance=..5,tag=processing_player] uuid0 if score @s owner1 = @p[distance=..5,tag=processing_player] uuid1 if score @s owner2 = @p[distance=..5,tag=processing_player] uuid2 if score @s owner3 = @p[distance=..5,tag=processing_player] uuid3 run tag @s add processing_arrow
- tag @s[tag=!processing_arrow] add marked
- execute as @s[tag=processing_arrow] at @s run function foo:4
-
- #foo:4
- summon item ~ ~ ~ {Age:-32767,PickupDelay:32767,Tags:["processing_item","flying_fish"],Item:{id:"minecraft:pufferfish",Count:1b}}
- execute as @e[type=item,tag=processing_item,distance=..0.1] run function foo:5
- kill @s[tag=processing_arrow]
- #foo:5
- execute store result score @s owner0 run scoreboard players get @e[type=arrow,tag=processing_arrow,distance=..0.1,limit=1] owner0
- execute store result score @s owner1 run scoreboard players get @e[type=arrow,tag=processing_arrow,distance=..0.1,limit=1] owner1
- execute store result score @s owner2 run scoreboard players get @e[type=arrow,tag=processing_arrow,distance=..0.1,limit=1] owner2
- execute store result score @s owner3 run scoreboard players get @e[type=arrow,tag=processing_arrow,distance=..0.1,limit=1] owner3
- data modify entity @s Motion set from entity @e[type=arrow,tag=processing_arrow,distance=..0.1,limit=1] Motion
- tag @s remove processing_item
- #foo:6
- tag @s add fish_check
- execute positioned ~-0.5 ~-0.5 ~-0.5 run tag @e[type=!arrow,type=!area_effect_cloud,type=!armor_stand,tag=!flying_fish,dx=0,dy=0,dz=0] add checking
- execute as @e[tag=checking] run function foo:7
- tag @s remove fish_check
- execute if data entity @s {OnGround:1b} run kill @s
- #foo:7
- execute if score @s uuid0 = @e[type=item,tag=flying_fish,tag=fish_check,limit=1] owner0 if score @s uuid1 = @e[type=item,tag=flying_fish,tag=fish_check,limit=1] owner1 if score @s uuid2 = @e[type=item,tag=flying_fish,tag=fish_check,limit=1] owner2 if score @s uuid3 = @e[type=item,tag=flying_fish,tag=fish_check,limit=1] owner3 run tag @s add target
- tag @s remove checking
- #foo:8
- say hi
- tag @s remove target
用了下面提供的包后才发现最后的uuid匹对写反了,弓归位也忘写了...谢谢大佬
本帖最后由 chaoren019 于 2020-3-20 17:39 编辑
随便做了一个,不符合要求请回复
没仔细看,所以没修bug
(测试了一下,感觉好好玩的样子,但是掉落物为什么被清掉了)
(我感觉这玩意弄出来以后对我可能很有用)
刚看了一下代码,我正好也在做类似的东西,大概就是我需要的
黑猫大佬牛逼(貌似大憨批可以自动生成数据包文件?)
(另外我是随便找了个数据包改的,所以mcmeta文件的介绍可能有你不要的东西,请修改)
pack.zip
(5.02 KB, 下载次数: 4)
随便做了一个,不符合要求请回复
没仔细看,所以没修bug
(测试了一下,感觉好好玩的样子,但是掉落物为什么被清掉了)
(我感觉这玩意弄出来以后对我可能很有用)
刚看了一下代码,我正好也在做类似的东西,大概就是我需要的
黑猫大佬牛逼(貌似大憨批可以自动生成数据包文件?)
(另外我是随便找了个数据包改的,所以mcmeta文件的介绍可能有你不要的东西,请修改)
关于我的世界基岩版的一些问题
1.在基岩版中,当尝试用刷怪蛋或/summon命令生成流浪商人时,行商羊驼也会一并生成的特性我认为不好,应改成生成流浪商人时要单独生成。
2.破晓时流浪商人喝下牛奶解除效果只有Java版本有,改成Java版的特性。
3.基岩版本中猪灵在末地变成僵尸猪灵,我觉得不好,应该猪灵在末地不会变成僵尸猪灵。
4.基岩版的僵尸猪灵在阳光下和岩浆上燃烧,我觉得不好,应该改成僵尸猪灵不会在阳光下和岩浆上燃烧。
5.如果北极熊着火,就会尝试跳进水里这个只有Java版独有,这个特性应该加入基岩版本中。
反馈给mojang客服服务中心。
1.在基岩版中,当尝试用刷怪蛋或/summon命令生成流浪商人时,行商羊驼也会一并生成的特性我认为不好,应改成生成流浪商人时要单独生成。
2.破晓时流浪商人喝下牛奶解除效果只有Java版本有,改成Java版的特性。
3.基岩版本中猪灵在末地变成僵尸猪灵,我觉得不好,应该猪灵在末地不会变成僵尸猪灵。
4.基岩版的僵尸猪灵在阳光下和岩浆上燃烧,我觉得不好,应该改成僵尸猪灵不会在阳光下和岩浆上燃烧。
5.如果北极熊着火,就会尝试跳进水里这个只有Java版独有,这个特性应该加入基岩版本中。
反馈给mojang客服服务中心。