Paste #102467: blueprint_block

Date: 2022/10/21 17:55:20 UTC-07:00
Type: C#

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15


blueprint_block_handler:
    type: world
    debug: false
    events:
        on player places blueprint_block:
        - flag <player.cursor_on> isBlueprint:true
        - flag <player.cursor_on> required_emeralds:<player.item_in_hand.flag[required_emeralds]>
        - flag <player.cursor_on> required_iron:<player.item_in_hand.flag[required_iron]>
        - flag <player.cursor_on> required_gold:<player.item_in_hand.flag[required_gold]>
        
        on player drops emerald:
        - if !<context.location.find_blocks_flagged[isBlueprint].within[2].is_empty>:
                - define bpBlock_location <context.location.find_blocks_flagged[isBlueprint].within[2].get[1]>
                - narrate <[bpBlock_location]>
                - playeffect effect:CLOUD at:<[bpBlock_location]> quantity:20 offset:0.5

Highlighting for 'Other' types handled by Highlight.JS, which was released under the BSD 3-Clause License.