Okay so those need variables, the one I used is a local variable I created, those don't save outside the procedure so they are only useful for when you don't need to worry about saving info, what you can do is on the right above where my variables show, click the plus and create a variable for what you need, also you only need that "saveFirst" the rest are not needed for this, and you need to add your own custom arrow in that list with the arrows and spectral arrows (in the for each inventory slot).
What that procedure does first it checks if the player is using a bow Then checks what the arrow in the closest slot is (that will be the arrow the bow uses to fire) It will check each slot in that order, and move on to the next if the variable is null(air) then set it that that arrow then it checks what arrow is about to fire and replaces the nearest arrow (the one that is closest to the players head which is the arrow shot) after 1 tick and fires the custom one instead (with stats matching a normal arrow)
Okay so those need variables, the one I used is a local variable I created, those don't save outside the procedure so they are only useful for when you don't need to worry about saving info, what you can do is on the right above where my variables show, click the plus and create a variable for what you need, also you only need that "saveFirst" the rest are not needed for this, and you need to add your own custom arrow in that list with the arrows and spectral arrows (in the for each inventory slot).
What that procedure does
first it checks if the player is using a bow
Then checks what the arrow in the closest slot is (that will be the arrow the bow uses to fire)
It will check each slot in that order, and move on to the next
if the variable is null(air) then set it that that arrow
then it checks what arrow is about to fire
and replaces the nearest arrow (the one that is closest to the players head which is the arrow shot) after 1 tick
and fires the custom one instead (with stats matching a normal arrow)
You can also name it whatever you need, does not have to be "saveFirst".
Hope this helped.
when i create the custom variable to drop down menu is still blank
You have to refresh it, by either deleting the blank variable block and replacing it, or saving and reopening.
its still blank
So you need to set the variable to be an itemStack, there is a drop down you can click to switch the type of variable.
that worked thanks!
https://imgur.com/a/hlUoIC7
What version of MCreator are you using and are you using a generator plugin?
2025.3 1.21.8 fabric generator
It seems like fabric doesn't support those blocks, or the version doesn't support them.
So its not possible?
Unfortunately not, at least with the procedure I provided.