Cześć, podałeś mało szczegółów, ale mam nadzieje, że o takie coś chodziło
Options:
item: stick #jeśli zmieniasz tutaj na coś innego, to niżej też zmień
rozdzka: stick of sharpness 1
nazwarozdzki: "&6różdżka ognia"
maxodleglosc: 20
mocwybuchu1: 2
mocwybuchu2: 10
permisja: "rozdzka"
command /rozdzka [<text>]:
trigger:
if player has permission {@permisja}:
give 1 of {@rozdzka} named {@nazwarozdzki} to player
on rightclick with {@item}:
if player is holding {@rozdzka} named {@nazwarozdzki}:
set {_t} to target block
set {_e} to target entity
if {_e} is set:
if distance between player and {_e} <= {@maxodleglosc}:
create a safe explosion with power {@mocwybuchu1} at location of {_e}
else:
if {_t} is set:
if distance between player and {_t} <= {@maxodleglosc}:
create a safe explosion with power {@mocwybuchu2} at location of {_t}