#Minecraft Bug?
40 messages · Page 1 of 1 (latest)
So you are invoking it through chat the same way?
Yes
Just isn't loading
Is there a way to give a sharpness enchanted book? Cause structures doesn't work in the function. I was using structures to drop the enchanted book (sharpness 1) onto the player. It works when running it in game. Just not in the function.
Is there another way?
I've used /structure in functions before and it works OK. Are you getting any content log errors for it, and have you tried putting other commands (like /say) in the function to verify it runs?
It runs yes. Would content log tell me if it's not running?
It would tell you if you had a syntax error (in this case perhaps the structure name needs to be wrapped in quotes)
nope
Not getting any errors
say hi works .Every thing else works.
I can run it in game and it works
But won't work in function
No errors in content log
Well you could try using a loot table that drops a book with the "specific_enchants" function
Example?
How would it work ?
I don't wanna use json I just wante to keep it simple.
So it's just not possible otherwise?
You make a loot table, and give it one pool with one entry that drops an item with that function applied
Then you can use /loot spawn to create the item
I got 20+ books
It'd be too much of a hassle
And structures aren't? lol
Kind of dumb the structures don't work in the functions
At least with loot tables you can procedurally generate them
You could ... learn how to do it 🤷
That's a pretty negative attitude to have for creative development
Sometimes you need to be willing to try other things