generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 176
On Block
apace100 edited this page Mar 10, 2021
·
2 revisions
Entity Condition. Checks whether the player is standing on the ground, and optionally has a block that matches a specified block condition under them.
Type ID: origins:on_block
Fields:
block_condition
, Block Condition, optional: If set, a block that satisfies this block condition needs to be right below the player's feet.
Example:
"condition": {
"type": "origins:on_block",
"block_condition": {
"type": "origins:block",
"block": "minecraft:grass"
}
}
This condition applied to a power will make sure it's only active while the player is on grass.
Tutorials (Data packs)
Video Tutorial by CandyCaneCazoo
Tutorials (Add-ons)
Working with more unique powers
Lists
List of vanilla damage source names
Data Types