Date: 2024/08/08 06:35:16 UTC-07:00
Type: Denizen Script
schrotflinte_schuss:
type: world
events:
on player right clicks block with:shotgun:
- if <context.item.flag[geladen]> > 0:
- ratelimit <player> 10t
- shoot snowball[item=projektil] origin:<player> speed:2 origin:<player.eye_location.right[0.5].below[1]>
- shoot snowball[item=projektil] origin:<player> speed:2 origin:<player.eye_location.right[0.6].below[0.5]>
- shoot snowball[item=projektil] origin:<player> speed:2 origin:<player.eye_location.right[0.5].below[1.2]>
- shoot snowball[item=projektil] origin:<player> speed:2 origin:<player.eye_location.right[0.2].below[0.5]>
- shoot snowball[item=projektil] origin:<player> speed:2 origin:<player.eye_location.right[0.1].above[-0.5]>
- shoot snowball[item=projektil] origin:<player> speed:2 origin:<player.eye_location.right[0.4].above[-1]>
- shoot snowball[item=projektil] origin:<player> speed:2 origin:<player.eye_location.right[0.3].above[-1.2]>
- shoot snowball[item=projektil] origin:<player> speed:2 origin:<player.eye_location.right[0.2].above[0.5]>
- else:
- narrate "<red>Waffe leer lade nach um zu schießen!"
on snowball hits entity:
- narrate "hit! " targets:<server.online_players>
- hurt <context.hit_entity> 10
projektil:
type: item
material: stone
display name: projektil
shotgun:
type: item
material: stick
display name: Shotgun