#(NethanielS) Cancel placing a block?

11 messages · Page 1 of 1 (latest)

dusty zinc
#

Hey there, me again. This time I am working on creating my own first backpack item, and I have a hopefully simple question; How can I cancel a player placing a block?

I am trying to create a backpack item and I want each instance of the item to have its own inventory. This means that insta-deleting the item and giving a new version of the item won't work. Here is my current script, though it's incredibly bare bones as I've just started it:

    type: item
    material: player_head
    display name: Sack
    mechanisms:
        skull_skin: 02d014dd-6d1a-4056-ba55-977918442838|eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmY0MGM3NzE2MjY3YjFmNDY5YWU3MzBkMDEzYjE0MDAyN2Q4NDE5YzEyZDcxZjA3MTk4MTdhYzBhMWY3ZjA5ZCJ9fX0=

backpack_level1:
    type: inventory
    inventory: chest
    size: 9
    title: Sack

backpack_level1_open:
    type: world
    debug: true
    events:
        after player right clicks block with:backpack_level1_sackitem:
            - ratelimit <player> 10t
            - narrate test
            - determine cancelled```

As you can see, I tried "determine cancelled" thinking that would cancel the block being placed. Obviously that doesn't work. Tried searching through the meta on my own before asking, but I probably just cannot find the right command.
quasi forgeBOT
#

(NethanielS) Cancel placing a block?

quasi forgeBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

dusty zinc
#

...nevermind. It's "on player right clicks" not "after"