Paste #125251: Unnamed Denizen Script Paste

Date: 2024/08/04 08:22:22 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


brick_entity:
    type: entity
    debug: false
    entity_type: item_display
    mechanisms:
        item: brick
        pivot: horizontal
        shadow_strength: 1
        shadow_radius: 0.25
        view_range: 4
        scale: 0.6,0.6,0.6
        brightness: <map[block=15;sky=15]>

brick_events:
    type: world
    debug: true
    events:
        on player right clicks block with:brick:
            - shoot snowball origin:<player> shooter:<player> speed:1 save:brick_thrown
            - define brick <entry[brick_thrown].shot_entity>
            - spawn brick_entity <[brick].location> save:brick_ent
            - mount <entry[brick_ent].spawned_entity>|<[brick]>
            - flag <[brick]> brick:<entry[brick_ent].spawned_entity>
            - invisible <[brick]>
        on entity_flagged:brick hits:
            - remove <context.projectile.flag[brick]>