#Why minecraft on_player_destroyed doesn't works?

16 messages · Page 1 of 1 (latest)

timid quail
#

Hello i am having an issue with an block. Here i was making chunk loader with some of blocks and commands. Everything works fine but minecraft:on_player_destroyed was not working. Here is the code snippet of that.

In it everything works fine but on_player_destroyed doesn't worked.
I am currently using minecraft 1.19.

timid quail
#

Why minecraft on_player_destroyed doesn't works?

novel sigil
#

At least for me, the file you uploaded contains the wrong contents. I'm seeing some error message

#

It just contains this:

{"type":"application/json","uri":"file:///data/user/0/com.discord/cache/temp_115010317649959395.json","name":"error_chunk_loader1.json"}

Could you try uploading it again? Or perhaps pasting the snippet directly into chat

timid quail
#

Ok this is also not working

#

I don't know how to paste code snippet

#

It only support 2000 words

#

I cant give you all the codes but here are some.

"minecraft:on_player_destroyed": {
      "event": "remove:blockk",
      "target": "self"
} ,

And the event is here

"remove:blockk": {
                "run_command": {
          "command": [
            "function dechu1"
          ]
        }
      },

Here dechu means delete chunks. Dont get me wrong.

#

@novel sigil Any error here or any reason of not working.

#

Here i tried txt exetension and now file has contents

#

The target i changed but it also dont worked.

vestal glen
#

Only works in survival btw

timid quail
#

Is there any way to run in creative

vestal glen
#

Not that i know