Date: 2020/09/12 02:36:34 UTC-07:00
Type: Denizen Script
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