How do I make items drop in front of players?

Started by Doorknob on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make items drop in front of players?

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.

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm guessing you'd use the…
Fri, 02/14/2020 - 09:54

I'm guessing you'd use the block procedure "Place gem at x y z" and replace z with "z + 1"

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That makes the item drop at …
Tue, 05/05/2020 - 14:43

That makes the item drop at +1 block away from the player on the z axis

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Get player facing direction,…
Tue, 05/05/2020 - 15:01

Get player facing direction, then use IF statements,

If North, drop z+1

East, drop x-1 etc