Changes
Page history
added CanPlaceOn and CanBreak
authored
Apr 27, 2023
by
Lxlp
Show whitespace changes
Inline
Side-by-side
Items/Items.md
View page @
6bc26bda
...
@@ -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.
...
...
...
...