#Minecraft Bug?

40 messages · Page 1 of 1 (latest)

shut shore
#

So how are you running this function?

night pine
#

Using /function

shut shore
#

So you are invoking it through chat the same way?

night pine
#

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?

shut shore
#

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?

night pine
shut shore
#

It would tell you if you had a syntax error (in this case perhaps the structure name needs to be wrapped in quotes)

night pine
#

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

shut shore
#

Well you could try using a loot table that drops a book with the "specific_enchants" function

night pine
#

Example?

shut shore
night pine
#

How would it work ?

#

I don't wanna use json I just wante to keep it simple.

#

So it's just not possible otherwise?

shut shore
#

Then you can use /loot spawn to create the item

night pine
#

It'd be too much of a hassle

shut shore
#

And structures aren't? lol

night pine
#

Kind of dumb the structures don't work in the functions

shut shore
#

At least with loot tables you can procedurally generate them

night pine
#

I'm not too sure how to do it

#

So therefore it isn't an option

shut shore
#

You could ... learn how to do it 🤷

night pine
#

No point

#

Not for this

#

So dumb MC Bedrock has so many bugs.

shut shore
shut shore
#

Sometimes you need to be willing to try other things