1
Make a custom item
How I make a custom item that does something when you right click on the position where you look at?
Create an account or sign in to comment.
1
![HoboMaggot's Avatar](https://static.planetminecraft.com/files/avatar/2580275_0.png)
Thats going to be complicated and not a 1 command thing.
You have to:
You have to:
- Implement right click for the item (carrot on stick, fungus on stick, and ender eye are the easiest to implement)
- Detect if the player is right clicking the item, through an advancement, a scoreboard or invisible villager
- Run a raycast if you want to run a command at the nearest block/entity you're looking at
- If not, run the command a certain position from where you're looking at