我的世界命令方块怎么制作快速村民刷怪笼?

2025-01-07 17:43:41
推荐回答(2个)
回答1:

只有1.7+版本以上才能制作刷怪笼,当然村民刷怪笼也是可以编辑的:
全指令
/setblock ~ ~1 ~ minecraft:mob_spawner 0 replace
{EntityId:Villager,
SpawnCount:2,
SpawnRange:2,
RequiredPlayerRange:24,
Delay:10,
MinSpawnDelay:10,
MaxSpawnDelay:100,
MaxNearbyEntities:50,
SpawnData:{
ActiveEffects:[{Id:1,Amplifier:2,Duration:99999},
],
Attributes:[
{Name:generic.attackDamage,Base:1},
{Name:generic.followRange,Base:10},
{Name:generic.knockbackResistance,Base:10},
{Name:generic.movementSpeed,Base:1},
{Name:generic.maxHealth,Base:100},
],
CustomName:"测试村民",CustomNameVisible:1,
HealF:100,Equipment:[
{id:276,Count:1,Damage:0,Damage:0S,
},{id:313,Count:1,Damage:0,Damage:0S,
},{id:312,Count:1,Damage:0,Damage:0S,
},{id:311,Count:1,Damage:0,Damage:0S,
},{id:310,Count:1,Damage:0,Damage:0S,
},]
}
}
我顺便介绍一下mob_spawner是刷怪笼的英文 ,EntityId是生物,SpawnCount刷新数量,SpawnRange刷新范围,RequiredPlayerRange玩家能触发刷怪笼的距离,Delay基础频率,MinSpawnDelay最小频率,MaxSpawnDelay最大频率,MaxNearbyEntities刷出生物的最大数量上限,SpawnData生成实体(也就是刷怪笼要刷什么)编辑,ActiveEffects药水效果,{Id:1,Amplifier:2,Duration:99999}当然就是药水效果是什么的代码喽(id:药水效果id,amplifier:效果等级,Duration持续时间),Attributes编辑生物基础特性,Name:generic.attackDamage攻击力,Name:generic.followRange名字,Name:generic.knockbackResistance跟踪范围,Name:generic.movementSpeed移动速度(1就已经很大了),Name:generic.maxHealth最大血量,base等级;CustomName:显性名字(就是电脑默认这个生物的名字,当然生物真实的名字是他的uuid)手残了 不想打了 想了解的话私聊我
码了这么多字,给了采纳吧

回答2:

命令方块里输入/setblock ~ ~ ~ 52:120 希望采纳