Paste #75534: Edit of P#75533 - Edit of P#75532 - VM 2020 09 12 1

Date: 2020/09/12 02:36:34 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


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


Restrictions:
    type: world
    events:
       on player breaks block in:world|flagged:Default:
       - if <context.material.name> == wheat || <context.material.name> == carrots || <context.material.name> == potatoes || <context.material.name> == beetroots || <context.material.name> == pumpkin || <context.material.name> == melon:
         - stop
       - else:
         - narrate "<red>Vous ne pouvez pas casser ce cube."
         - determine cancelled
       on player places block in:world|flagged:Default:
       - if <context.material.name> == wheat || <context.material.name> == carrots || <context.material.name> == potatoes || <context.material.name> == beetroots || <context.material.name> == pumpkin_stem || <context.material.name> == melon_stem:
         - stop
       - else:
         - narrate "<red>Vous ne pouvez pas poser de cubes ici."
         - determine cancelled