Repository navigation
Conversation
edayot
requested changes
Oct 11, 2026
|
|
||
| Both of these support the following fields | ||
| - `command` : String representing a valid command. | ||
| - `function` : String representing a valid function [resource location](https://minecraft.wiki/w/Identifier). |
Contributor
There was a problem hiding this comment.
or function tag, if prefixed by #
| @@ -0,0 +1,46 @@ | |||
| # Inteaction (v{{ interaction_version }}) | |||
Contributor
There was a problem hiding this comment.
typo Inteaction => Interaction
|
|
||
| Usually, this is done by summoning the interaction with the relevant data like below: | ||
| ```{code-block} mcfunction | ||
| summon minecraft:interaction ~ ~ ~ {Tags: ["smithed.interaction"], data: {smithed_interaction: {on_right_click: {command: "say hello world"}}}} |
Contributor
There was a problem hiding this comment.
For readability, a multi-line command is better
| @@ -0,0 +1,10 @@ | |||
| Example usage: | |||
| ```{code-block} mcfunction | |||
| summon minecraft:interaction ~ ~ ~ {Tags: ["smithed.interaction"], data: {smithed_interaction: {on_right_click: {custom: "sit", height: 0.5}}}} | |||
Contributor
There was a problem hiding this comment.
For readability, a multi-line command is better
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds documention for the new Interaction Library (Smithed-MC/Libraries#68)