Add userspace definable block placement triggers #7
No reviewers
Labels
No labels
bug
contribution welcome
documentation
duplicate
feature
good first issue
help wanted
invalid
question
refactor
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
vlw/mcfstd!7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/block-triggers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR adds block place (and hopefully some day place) triggers which can be used to run a function when a player places a block.
This feature requires more explanation. I will create an issue to add a wiki to this repository which will explain the usage part about this datapack a little bit better. One example is the
@e[tag=block]entity which can be used temporarily in the callback function to access the position where block was placed, and thus, which block was placed.It is also possible to run commands "as the placed block" by doing something like this in the callback function: