⊙u⊙
本帖最后由 ⊙u⊙ 于 2020-3-19 23:40 编辑

随手(云)写了这么些玩意。求大佬写进数据包里。如果其中有问题请顺便修一下。
要求不敢提太多,只有两个


代码如下
  1. #preparation
  2. dummy board
  3.         uuid0,uuid1,uuid2,uuid3,owner0,owner1,owner2,owner3
  4. criteria board
  5.         used_bow

  6. #load
  7. execute as @a run function foo:0

  8. #tick
  9. execute as @e[type=arrow,tag=!score_owner] run function foo:1
  10. execute as @a if score @s used_bow matches 1.. run function foo:2
  11. execute as @e[type=item,tag=flying_fish] at @s run function foo:6
  12. execute as @e[tag=target] at @s run function foo:8



  13. #foo:0
  14.         execute store result score @s uuid0 run data get entity @s UUID[0]
  15.         execute store result score @s uuid1 run data get entity @s UUID[1]
  16.         execute store result score @s uuid2 run data get entity @s UUID[2]
  17.         execute store result score @s uuid3 run data get entity @s UUID[3]

  18. #foo:1
  19.         tag @s add score_owner
  20.         execute store result score @s owner0 run data get entity @s Owner[0]
  21.         execute store result score @s owner1 run data get entity @s Owner[1]
  22.         execute store result score @s owner2 run data get entity @s Owner[2]
  23.         execute store result score @s owner3 run data get entity @s Owner[3]

  24. #foo:2
  25.         tag @s add processing_player
  26.         execute at @s anchored eyes positioned ^ ^ ^ as @e[type=arrow,distance=..5,tag=!marked] run function foo:3
  27.         tag @s remove processing_player

  28. #foo:3
  29.         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
  30.         tag @s[tag=!processing_arrow] add marked
  31.         execute as @s[tag=processing_arrow] at @s run function foo:4
  32.                
  33. #foo:4
  34.         summon item ~ ~ ~ {Age:-32767,PickupDelay:32767,Tags:["processing_item","flying_fish"],Item:{id:"minecraft:pufferfish",Count:1b}}
  35.         execute as @e[type=item,tag=processing_item,distance=..0.1] run function foo:5
  36.         kill @s[tag=processing_arrow]

  37. #foo:5
  38.         execute store result score @s owner0 run scoreboard players get @e[type=arrow,tag=processing_arrow,distance=..0.1,limit=1] owner0
  39.         execute store result score @s owner1 run scoreboard players get @e[type=arrow,tag=processing_arrow,distance=..0.1,limit=1] owner1
  40.         execute store result score @s owner2 run scoreboard players get @e[type=arrow,tag=processing_arrow,distance=..0.1,limit=1] owner2
  41.         execute store result score @s owner3 run scoreboard players get @e[type=arrow,tag=processing_arrow,distance=..0.1,limit=1] owner3
  42.         data modify entity @s Motion set from entity @e[type=arrow,tag=processing_arrow,distance=..0.1,limit=1] Motion
  43.         tag @s remove processing_item

  44. #foo:6
  45.         tag @s add fish_check
  46.         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
  47.         execute as @e[tag=checking] run function foo:7
  48.         tag @s remove fish_check
  49.         execute if data entity @s {OnGround:1b} run kill @s

  50. #foo:7
  51.         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
  52.         tag @s remove checking

  53. #foo:8
  54.         say hi
  55.         tag @s remove target
复制代码




用了下面提供的包后才发现最后的uuid匹对写反了,弓归位也忘写了...谢谢大佬

CR_019
本帖最后由 chaoren019 于 2020-3-20 17:39 编辑

随便做了一个,不符合要求请回复
没仔细看,所以没修bug
(测试了一下,感觉好好玩的样子,但是掉落物为什么被清掉了)
(我感觉这玩意弄出来以后对我可能很有用)
刚看了一下代码,我正好也在做类似的东西,大概就是我需要的
黑猫大佬牛逼(貌似大憨批可以自动生成数据包文件?)
(另外我是随便找了个数据包改的,所以mcmeta文件的介绍可能有你不要的东西,请修改)

pack.zip (5.02 KB, 下载次数: 4)







明予寻
关于我的世界基岩版的一些问题
1.在基岩版中,当尝试用刷怪蛋或/summon命令生成流浪商人时,行商羊驼也会一并生成的特性我认为不好,应改成生成流浪商人时要单独生成。
2.破晓时流浪商人喝下牛奶解除效果只有Java版本有,改成Java版的特性。
3.基岩版本中猪灵在末地变成僵尸猪灵,我觉得不好,应该猪灵在末地不会变成僵尸猪灵。
4.基岩版的僵尸猪灵在阳光下和岩浆上燃烧,我觉得不好,应该改成僵尸猪灵不会在阳光下和岩浆上燃烧。
5.如果北极熊着火,就会尝试跳进水里这个只有Java版独有,这个特性应该加入基岩版本中。
反馈给mojang客服服务中心。