added CanPlaceOn and CanBreak authored by Lxlp's avatar Lxlp
...@@ -181,6 +181,26 @@ example_item: ...@@ -181,6 +181,26 @@ example_item:
- WHITE STRIPE_CENTER - WHITE STRIPE_CENTER
``` ```
#### **CanPlaceOn**
Sets what blocks this item can be placed on, if the player is in adventure mode.
```yaml
MyCoolAnvil:
Id: ANVIL
CanPlaceOn:
- diamond_block
```
#### **CanBreak**
Sets what blocks this item can break, if the player is in adventure mode.
```yaml
MyCoolStick:
Id: STICK
CanBreak:
- grass_block
- diamond_block
- obsidian
```
### **NBT** ### **NBT**
Sets what NBT tags to put on your items. Sets what NBT tags to put on your items.
This allows cross-over with a lot of other plugins, or just for storing custom information. This allows cross-over with a lot of other plugins, or just for storing custom information.
... ...
......