on death of creeper:
if attacker is a player:
clear drops
drop (10 * (level of looting of player's tool)) of gunpowder at location of victim
poprawione
#jakis event:
loop {zbiorId::*}:
if discord id of event-member = loop-value:
#co ma sie dziac
stop
on load:
set {zbiorId::*} to "id1", "id2", "id3"
nie wiem czy dobrze zrozumiałem, ale pisałeś o zbiorze id, zatem myślę, że chodziło ci o listę, zmienną grupową
command /daj <player>:
permission: daj.daj
permission message: &cTAA NIE DLA PSA, DLA PANA TO!
usage: &7/daj [nick]
trigger:
if arg has enough space for 1 of diamond:
give 1 diamond to arg
send "&aPLOSE ;)" to arg
else:
drop 1 diamond at arg's location
send "&cMasz pełne eq, więc patrz pod nogi ;)" to arg
on join:
set {mined::%player%} to 0 if {mined::%player%} is not set
on mine of stone:
add 1 to {mined::%player%}
if(mod({mined::%player%,10) = 10):
execute console command "komenda"
Możesz zapętlić bloki w pobliżu przycisku i sprawdzić czy zapętlony blok to akurat to szkło i je zmienić,
w jakiej odległości od przycisku jest najdalsze szkło?
on damage:
attacker's tool is any sword
name of attacker's tool = "Topór"
set attacker's tool to (item amount of attacker's tool - 1) of attacker's tool