欢迎光临散文网 会员登陆 & 注册

搞笑沙雕图

2023-03-10 12:35 作者:血色总兵  | 我要投稿

在我的世界国际版1.19.63.01版本中,可以使用以下命令来制作一只可以通过学习玩家和其他所有实体的行为变强的僵尸:


1. 首先,使用“summon”命令召唤一个僵尸:


```

/summon zombie ~ ~ ~ {PersistenceRequired:1b}

```


2. 接着,使用“scoreboard”命令创建一个跟踪类型为“stat.killEntity.Zombie”的计分板:


```

/scoreboard objectives add killEntity.zombie stat.killEntity.minecraft.zombie

```


3. 然后,在刚刚召唤的僵尸上添加一个名为“kills”的计分板:


```

/scoreboard objectives add kills dummy

/scoreboard players set @e[type=zombie] kills 0

```


4. 接下来,使用“execute”命令和“scoreboard”命令将每个实体的击杀数存储到它自己名为“kills”的计分板中:


```

/execute as @e[type=zombie] store result score @s kills run scoreboard players get @s killEntity.zombie

```


5. 然后,使用“execute”命令和“scoreboard”命令将玩家击杀计分板中的价值存储到召唤的僵尸的自定义属性中:


```

/execute as @e[type=zombie] run data modify entity @s LearningRate set value 0.1

/execute as @e[type=zombie] run data modify entity @s StrengthRate set value 0.1

/execute as @e[type=zombie] run data modify entity @s IntelligenceRate set value 0.1


/execute as @a[scores={kills=1..}] run data modify entity @e[type=zombie,limit=1,sort=nearest] LearningRate set from entity @s LearningRate

/execute as @a[scores={kills=1..}] run data modify entity @e[type=zombie,limit=1,sort=nearest] StrengthRate set from entity @s StrengthRate

/execute as @a[scores={kills=1..}] run data modify entity @e[type=zombie,limit=1,sort=nearest] IntelligenceRate set from entity @s IntelligenceRate


/execute as @a[scores={kills=1..}] run scoreboard players set @s kills 0

```


6. 最后,使用“execute”命令和“data”命令将僵尸的属性根据学习率和其他实体的属性进行适当的更新:


```

/execute as @e[type=zombie] run data modify entity @s Learning set value 0

/execute as @e[type=zombie] run data modify entity @s Strength set value 0

/execute as @e[type=zombie] run data modify entity @s Intelligence set value 0


/execute as @e[type=zombie] run data modify entity @s Learning set from entity @s LearningRate

/execute as @e[type=zombie] run data modify entity @s Strength set from entity @s StrengthRate

/execute as @e[type=zombie] run data modify entity @s Intelligence set from entity @s IntelligenceRate


/execute as @e[type=zombie,scores={kills=1..}] at @s run data modify entity @s Learning set value 0

/execute as @e[type=zombie,scores={kills=1..}] at @s run data modify entity @s Strength set value 0

/execute as @e[type=zombie,scores={kills=1..}] at @s run data modify entity @s Intelligence set value 0


/execute as @e[type=zombie,scores={kills=1..}] at @s run data modify entity @s Learning set from entity @s LearningRate

/execute as @e[type=zombie,scores={kills=1..}] at @s run data modify entity @s Strength set from entity @s StrengthRate

/execute as @e[type=zombie,scores={kills=1..}] at @s run data modify entity @s Intelligence set from entity @s IntelligenceRate

```


这些指令将使僵尸能够通过学习其他实体的击杀行为来提升其学习、力量和智力属性。

搞笑沙雕图的评论 (共 条)

分享到微博请遵守国家法律