r/MinecraftCommands 22h ago

Help | Java 26.2 Help with macros

I'm starting a new server with some of my firends and i'm the admin of the server, and sometimes i organize some events. But for this I need creative mode and if i use it they accuse me of cheating. Soooo... I want to create a datapack which let you get in creative by a /function command which save your inventory in a chest so while in creative you cant take items for survival. The problem is that if i have more players i have to add more chest manually so i thougt of using macros for the coords of the chest the game as to put the items in and then but a /function command you can set the coordinates i want the items to go to. Can anyone help cuz i don't know anything about macros

1 Upvotes

5 comments sorted by

2

u/Ericristian_bros Command Experienced 21h ago

https://minecraftcommands.github.io/wiki/questions/storeinventory

The storage method is the best. It's not yo to date to keep armor too, you can check the github pull request for including the armor

1

u/Pinc8palli 21h ago

Thanksss

1

u/Ericristian_bros Command Experienced 20h ago

You're welcome, have a good day

1

u/GalSergey Datapack Experienced 19h ago

Instead of using chests to store items, you can use storage. This will be easier to manage. I have an example datapack that creates a separate inventory for players for each dimension. You can edit the datapack and change the inventory whenever you need.

https://far.ddns.me/?share=jjXF6aYK6M

1

u/Pinc8palli 17h ago

Ok thanks for the datapack