Cómo detectar el click derecho en una zona facíl NoMods-
HTML-код
- Опубликовано: 4 фев 2025
- Espero les sea de útilidad
Nota: Ver el vídeo para entender la estructura de los comandos
Comandos:
Comando1: execute at @e[ type= villager, name= DetectarClick1] run particle minecraft:sweep_attack ~ ~1 ~ 0.1 0.5 0.1 0 2 force @a
Comando2: summon minecraft:villager ~ ~ ~ {CustomName:"\"DetectarClick1\"",CustomNameVisible:1,NoAI:1b,PersistenceRequired:1b,NoGravity:1b,Silent:1,Invulnerable:1,Age:0}
Comando3: effect give @e[ type= minecraft:villager , name=DetectarClick1] minecraft:invisibility infinite 1 true
Comando4: execute as @a[distance=..5,scores={DetectarClick=1..}] run PON TU COMANDO
Comando5: scoreboard players reset @a[scores={DetectarClick=1..}] DetectarClick
Comando 6: scoreboard objectives add DetectarClick minecraft.custom:minecraft.talked_to_villager
Comando del shulker:
Nota no es necesario pero podría hacerles la vida más facíl
/setblock ~ ~ ~ minecraft:black_shulker_box[facing=up]{CustomName:'"Detectar click con aldeano"',Items:[{Count:1b,Slot:13b,id:"minecraft:chain_command_block",tag:{BlockEntityTag:{Command:"/scoreboard players reset @a[scores={DetectarClick=1..}] DetectarClick",CustomName:'"@"',LastExecution:2135147L,LastOutput:'{"text":"[18:59:20] ","extra":[{"text":"","extra":[{"translate":"argument.entity.notfound.entity"}],"color":"red"}]}',SuccessCount:0,TrackOutput:1b,UpdateLastExecution:1b,auto:1b,conditionMet:1b,id:"minecraft:command_block",powered:0b},display:{Lore:['"(+NBT)"']}}},{Count:1b,Slot:15b,id:"minecraft:repeating_command_block",tag:{BlockEntityTag:{Command:"effect give @e[ type= minecraft:villager , name=DetectarClick1] minecraft:invisibility infinite 1 true",CustomName:'"@"',LastExecution:2134723L,LastOutput:'{"text":"[18:58:58] ","extra":[{"text":"","extra":[{"translate":"commands.effect.give.failed"}],"color":"red"}]}',SuccessCount:0,TrackOutput:1b,UpdateLastExecution:1b,auto:1b,conditionMet:1b,id:"minecraft:command_block",powered:0b},display:{Lore:['"(+NBT)"']}}},{Count:1b,Slot:20b,id:"minecraft:command_block",tag:{BlockEntityTag:{Command:"/scoreboard objectives add DetectarClick minecraft.custom:minecraft.talked_to_villager",CustomName:'"@"',SuccessCount:0,TrackOutput:1b,UpdateLastExecution:1b,auto:0b,conditionMet:0b,id:"minecraft:command_block",powered:0b},display:{Lore:['"(+NBT)"']}}},{Count:1b,Slot:22b,id:"minecraft:repeating_command_block",tag:{BlockEntityTag:{Command:"/execute as @a[distance=..5,scores={DetectarClick=1..}] run give @s gold_ingot 1",CustomName:'"@"',LastExecution:2134852L,SuccessCount:0,TrackOutput:1b,UpdateLastExecution:1b,auto:1b,conditionMet:1b,id:"minecraft:command_block",powered:0b},display:{Lore:['"(+NBT)"']}}},{Count:1b,Slot:24b,id:"minecraft:command_block",tag:{BlockEntityTag:{Command:'/summon minecraft:villager ~ ~ ~ {CustomName:"\\"DetectarClick1\\"",CustomNameVisible:1,NoAI:1b,PersistenceRequired:1b,NoGravity:1b,Silent:1,Invulnerable:1,Age:0}',CustomName:'"@"',SuccessCount:0,TrackOutput:1b,UpdateLastExecution:1b,auto:0b,conditionMet:0b,id:"minecraft:command_block",powered:0b},display:{Lore:['"(+NBT)"']}}},{Count:1b,Slot:26b,id:"minecraft:repeating_command_block",tag:{BlockEntityTag:{Command:"execute at @e[ type= villager, name= DetectarClick1] run particle minecraft:sweep_attack ~ ~1 ~ 0.1 0.5 0.1 0 2 force @a",CustomName:'"@"',LastExecution:2189246L,LastOutput:'{"text":"[19:44:27] ","extra":[{"translate":"commands.particle.success","with":["minecraft:sweep_attack"]}]}',SuccessCount:1,TrackOutput:1b,UpdateLastExecution:1b,auto:1b,conditionMet:1b,id:"minecraft:command_block",powered:0b},display:{Lore:['"(+NBT)"']}}}]}
🎉el primero
Se te agradece demasiado, llevo buscando esto hace dias
@tomasito_7775 Un placer ayudar
Muchas gracias! Gracias a esto implementare cosas chidas a un servidor
¡Encantado de ayudar!.
el segundo