Creating custom item execute problem
I managed to create a custom object but for the life of me I can't run a function on it to add blocks under itself.
Basically, the player right clicks and another block appears under the block they are standing on.
These are the commands I have so far.
Give command in expanding_island.mcfunction
Continue to help post/give @p stick[item_model="skyvoid_advancements_resourcepack:creator_of_the_descent",item_name='{"color":"aqua","text":"Creator of the descent"}',lore=['{"color":"gray","text":"A powerful object that puts a block under you and allows you to descend."}','{"color":"red","text":"Draws a cobblestone from your inventory."}']] 1
Execute command in tick.mcfunction
execute as @p[nbt={SelectedItem:{id:"minecraft:stick", tag:{item_model:"skyvoid_advancements_resourcepack:creator_of_the_descent"}}}] at @s run function skyvoid_advancements:creator_of_the_descent
** In this one says Unknown key “tags **
Execute command in creator_of_the_descent.mcfunction
execute as @p[nbt={Inventory:[{id:"minecraft:cobblestone"}]}] at @s positioned ~ ~-1 ~ run setblock ~ ~ ~ minecraft:cobblestone
execute as @p[nbt={Inventory:[{id:"minecraft:cobblestone"}]}] run clear @s minecraft:cobblestone 1
Im not skilled programator so im using AI.
Can you please help me?