How do I make items drop in front of players?

Started by Doorknob on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Feb 2020
Points:
645

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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.

Active 4 years ago
Joined Jan 2020
Points:
779

User statistics:

  • Modifications: 1
  • Forum topics: 21
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 80
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"

Active 4 years ago
Joined Feb 2020
Points:
645

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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

Active 4 years ago
Joined Jan 2020
Points:
779

User statistics:

  • Modifications: 1
  • Forum topics: 21
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 80
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