use player location in commands on bedrock edition?

Started by zxthecoolguy on

Topic category: Help with Minecraft modding (Bedrock Edition)

Joined Jun 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
use player location in commands on bedrock edition?

im making a mod that adds loot crates that drop items when broken but i cant find any way to make items from the loot table drop where the crate was broken.

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In the properties option for…
Wed, 06/10/2026 - 01:37

In the properties option for your block, there is an option to enable a loot table for drops. If you enable it, you can create a loot table for that blook which will drop your desired items. I'd recommend looking up a tutorial about loot tables, they are quite annoying to work with as they often require specific wording when setting them up in the loot table option.

 

Hope this helps, good luck!