#spawning datapack items
1 messages · Page 1 of 1 (latest)
It should work, like in any other case, just note the context the function is run in.
Unless specified (using execute as), the command will run from the server, so @s pretty much won't work at all and,
Unless specified (using execute at/positioned), the commands run at worldspawn, so when summoning an item at ~ ~ ~ you probably won't find it around you.
Do you just want to /summon an item
Is that /give but for data pack items?
summon makes the item appear in the world like someone dropped it
give gives it directly into the players inventory
Ik but when I do those I can’t spawn items from a data pack
what is the command you use? and how is that function (the datapack file) executed?
I use /give @s But items from the installed data pack don’t autofill
try using @p and see if that works
if it does i can explain to you why and we may be able to find a better permanent solution
Datapacks don't support custom items. There will be no autofill
Depending on the specific datapack you installed, there may be a function for it
What datapack are you using?
The nyctocosm
/function items:scythe/give and /function items:wyrmsliver/give
some spells (or spell items?) are also items, you can get those using
/function spells:<SPELL NAME>/give
Where <SPELL NAME> is the name of the spell, like ring or bottle
honestly this datapack is very confusing and there's no specific way to get items without knowing what the functions are already :P