How to make grenades in minecraft(JAVA)
Описание
Today i will show you how to make grenades in minecraft for java. These are craftable and can be exploded by sneaking and if you dont throw it will explode on you.
COMMANDS:
/scoreboard objectives add Sneak_Time minecraft.custom:minecraft.sneak_time
/scoreboard players set @a Sneak_Time 0
tag @e[nbt={OnGround:1b,Item:{id:"minecraft:tripwire_hook",Count:1b}}] add craft1
tag @e[nbt={OnGround:1b,Item:{id:"minecraft:green_wool",Count:1b}}] add craft2
execute at @e[tag=craft1] as @e[tag=craft2,distance=..1] run summon item ~ ~ ~ {Tags:["itemkill1"],PickupDelay:20,Item:{id:"minecraft:green_wool",Count:1b,tag:{display:{Name:"{\"text\":\"GRENADE WITH PIN\"}"},HideFlags:1}}}
execute at @e[tag=craft1] as @e[tag=craft2,distance=..1] run particle minecraft:happy_villager ~ ~.4 ~ .2 .2 .2 0 15
execute at @e[tag=itemkill1] run kill @e[tag=craft1,distance=..1]
execute at @e[tag=itemkill1] run kill @e[tag=craft2,distance=..1]
tag @e[type=item] remove itemkill1
/execute if score @p Sneak_Time matches 1.. run scoreboard players add @p Sneak_Time 1
/execute if score @p Sneak_Time matches 1.. run clear @p minecraft:green_wool 1
/give @p minecraft:green_wool{display:{Name:'[{"text":"GRENADE WITHOUT PIN"}]'}}
/execute if score @p Sneak_Time matches 102.. run scoreboard players set @p Sneak_Time 0
/execute if score @p Sneak_Time matches 100 run clear @p minecraft:green_wool{display:{Name:'[{"text":"GRENADE WITHOUT PIN"}]'}}
/execute if score @p Sneak_Time matches 100 run scoreboard players set @p Sneak_Time 0
/execute at @p run summon minecraft:tnt ~ ~1 ~
/execute if score @p Sneak_Time matches 100 run scoreboard players set @p Sneak_Time 100
/execute at @e[type=minecraft:item,nbt={"Item":{id:"minecraft:green_wool"}}] run summon minecraft:tnt ~ ~1 ~
kill @e[type=item,nbt={"Item":{id:"minecraft:green_wool"}}]
/execute if score @p Sneak_Time matches 100 run scoreboard players set @p Sneak_Time 0
Рекомендуемые видео



















