Create a 26.3 resoruce pack with a mcfunction called block with it placing a block at user minimal code and setup
A .mcfunction belongs in a data pack, not a resource pack. This function places stone at the executing player’s position.
Install the folder inside your world’s datapacks/ folder, then run /reload. Check it with /datapack list and execute it using /function playerblock:block.
Pack format 48 is the format specified here for Minecraft 1.21.4; it may need updating for Minecraft 26.3.
guve ne the command to run it
Run:
/function playerblock:block
i said for the newest version of minecraft. please update all necceary things in datapack to make compatible
I’ll update the pack metadata for Minecraft 26.3 and keep the function command compatible.
Updated the data pack metadata for Minecraft Java 26.3 (data pack format 125). The block.mcfunction command already works in that version.
Download the ZIP using the export button.
Extract
player_block_datapackinto your world’sdatapacks/folder.Run
/reload, then/datapack listto check that it loaded.Run
/function playerblock:blockto place the block.
setblock ~ ~ ~ minecraft:stone