This mod gives several extremely useful commands for use in datapacks or maps
This mod acts as a dependency for some of my maps and may be required for the map to work
Simulated Crafting
The /craft command allows you to simulate crafting for players without the need for a crafting table. It checks for the required items in the player's inventory and uses them to craft the specified item. The number of crafted items can be specified, and the "infinite" component will continue crafting until the player doesn't have enough items to craft more.
Usage:
/craft <item name> <quantity>
Example: /execute as Granthas1 run craft minecraft:wooden_axe infinite
Swap Items
The /item_swap command acts as a better version of the /item command where it allows you to swap items between players or block entities rather than overwriting the item. It also allows you to search and retrieve a specific item rather than manually sifting through an inventory with dozens of commands. This can greatly reduce the amount of commands needed in datapacks that make liberal use of the /item command or that need to manage a player's inventory
Usage:
/item_swap entity <entity name> <container> <item name>
/item_swap block <coordinates> from entity <entity name> <item name>
Example (entity): /item_swap entity Granthas1 hotbar.0 minecraft:iron_sword
Example (block entity): /item_swap block 40 75 -25 container.1 from entity @p minecraft:coal
Search for a block within a radius
The "block_find" command component used for "/execute if block_find" allows you to search for a certain block within a spherical radius from the execution location for usage with the /execute command
Usage:
/execute if block_find <block name> <radius>
Example: /execute if block_find minecraft:end_portal_frame 64 run tellraw @a "A stronghold is nearby"
Execute a command at a block
The "at_block" command component for used for "/execute at_block" allows you to run a command at a specific block similar to how vanilla allows command execution at entities. This is extremely useful for datapacks where you want to get a block's location or run a command executed at a certain block.
Usage:
/execute at_block <block name> <radius>
Example: /execute at_block minecraft:acacia_log 20 run summon minecraft:armor_stand ~ ~1 ~ {Tags:["pos1"]}

