Started by
Doorknob
on
Topic category: Help with Minecraft modding (Java Edition)
Hello,
I'm trying to make a procedure for an item that acts like a dispenser/dropper. I'm trying to look for something that will make items drop about 1 block away from the front of the player and not directly on the player, but I can't find anything like "Get distance from player's face" or something like that. Does anyone have any tips? Any would be greatly appreciated.
I'm guessing you'd use the block procedure "Place gem at x y z" and replace z with "z + 1"
That makes the item drop at +1 block away from the player on the z axis
Get player facing direction, then use IF statements,
If North, drop z+1
East, drop x-1 etc