#can u fix this function ?

1 messages · Page 1 of 1 (latest)

carmine estuary
#

There is an addon named spawn chunks it s makes add tickarea when u place a block or make a farm like java edition spawn chunk but when u enter the nether it stops adding new ticks area ,
This is its code (plz fix it if u can) :

#bridge-file-version: #0
execute @a[tag=spawn] ~ ~ ~ tag @a add spawn
execute @a[tag=!spawn] ~ ~ ~ tickingarea add circle ~ ~ ~ 4
tag @a add spawn

( There is also tick.json in the functions file )

chilly viper
#

lets se

carmine estuary
#

Thx

chilly viper
#

can you send the files?

carmine estuary
#

Yep

#

I have a link

#

For the mcpack

#

Mcaddon

chilly viper
#

just copy-paste the contents, that's all

carmine estuary
chilly viper
#

also, how many ticking areas are made before it stops?

#

because there is a max of 5 ticking areas that can be made

carmine estuary
#

The content is :

#bridge-file-version: #0
execute @a[tag=spawn] ~ ~ ~ tag @a add spawn
execute @a[tag=!spawn] ~ ~ ~ tickingarea add circle ~ ~ ~ 4
tag @a add spawn

#

That it there is nothing other than a ticks.json in the functions file to repeat this commands

#

Ammm 1

#

Just 1 ticking area

chilly viper
#

hmm

carmine estuary
#

The problem in the dimension itself

chilly viper
#

wait

carmine estuary
#

It disable the command kr something like that

chilly viper
carmine estuary
#

Yep

chilly viper
#

you're tagging everyone if they already have the tag?

carmine estuary
#

I don't knoe : ) i literally didn't make the function

chilly viper
#

oh

#

and then it's adding a ticking area at the person if they don't have the tag

#

then it's tagging everyone with the tag

#

remove the 3rd line

carmine estuary
#

Ok

chilly viper
#

also, who made the function?

#

wait nvm

carmine estuary
#

Hmm
Glaced pancake

chilly viper
#

oh wait

#

Don't do anything I just said

#

I forgot

#

execute at @a[tag=spawn] ~ ~ ~ tag @a add spawn
execute at @a[tag=!spawn] ~ ~ ~ tickingarea add circle ~ ~ ~ 4
tag @a add spawn

#

there

carmine estuary
#

It s a youtuber but after year he delete the add-on

chilly viper
#

that should literally be the correct thing

carmine estuary
#

Ok

chilly viper
#

because it's the newer version of execute command

carmine estuary
#

So it will not stop after i enter the nether ?

chilly viper
#

Try with the one I sent, then see what happens

carmine estuary
#

Ok

#

Thx u for helping me i literally asked everyone and never respond

#

I have a question

chilly viper
#

?

carmine estuary
#

If i have completed the full amount of the chunks area

#

Does it remove the last used one ?

#

Or there is something above 10

chilly viper
#

oh I just realised something

#

the reason it can't do more than 1 is because of the name

carmine estuary
#

It s not the tick 1

#

I mean it can do 10

chilly viper
carmine estuary
#

It s not the number of ticking and it stops it s just an example,
Like i said the dimension is the problem if i enter it it will never work again

chilly viper
#

hmm

#

idk then without the full thing

#

but ye, change the execute function to have 'execute at @a'

carmine estuary
#

Hmmm

#

Ok

#

I really appreciate your help ❤️

chilly viper
#

np

carmine estuary
#

Wait there is log

#

[Commands][warning]-Function spawn_chunk failed to load correctly with error(s):

[Commands][warning]-Error on line 1: command failed to parse with error 'Syntax error: Unexpected "@a": at "xecute at >>@a<<[tag=spawn"'

[Commands][warning]-Error on line 2: command failed to parse with error 'Syntax error: Unexpected "@a": at "xecute at >>@a<<[tag=!spaw"'

chilly viper
#

oh interesting, I didn't realise that if you didn't give a ticking area a name it would incerement in 'Area n+1'

carmine estuary
#

Hmmm

#

So what i must do ?

chilly viper
#

execute at @a[tag=spawn] run tag @a spawn
execute at @a[tag=!spawn] run tickingarea add circle ~ ~ ~ 4
tag @a add spawn

carmine estuary
#

Ok

chilly viper
#

there

carmine estuary
#

U know bedrock edition

chilly viper
#

yes

carmine estuary
#

It s bedrock edition commands if u write for java

#

Wait nvm XD

#

The sever it s for bedrock edition

chilly viper
#

yep

normal ember
#

Change the version of your manifest.json file

carmine estuary
#

I change it

#

[Commands][warning]-Function spawn_chunk failed to load correctly with error(s):

[Commands][warning]-Error on line 1: command failed to parse with error 'Syntax error: Unexpected "@a": at "xecute at >>@a<<[tag=spawn"'

[Commands][warning]-Error on line 2: command failed to parse with error 'Syntax error: Unexpected "@a": at "xecute at >>@a<<[tag=!spaw"'

normal ember
#

This error happens when your version is lower than 1.19.50, are you sure the file was actually changed?

carmine estuary
#

Yrp

#

Yep

#

The problem is not in file setuping

chilly viper
#

Go to your project config

carmine estuary
#

Project what ?

chilly viper
#

Make sure your targetVersion is 1.20.50

#

then go to your manifest and also change the min_engine_version to also be 1.20.50 in both

carmine estuary
#

Yeah i did it

#

Are u sure ?

#

I opened the addon the world

normal ember
#

Is your addon in the development folder?

carmine estuary
#

I didn't understand u !

chilly viper
normal ember
#

Put the addon in the development_behavior_packs folder and create another world

chilly viper
carmine estuary
#

Man , i installed the add-on into the game

#

And it s in the world

normal ember
#

Maybe you changed the addon version but in your world it is still out of date

carmine estuary
#

It s not the how i open it in the game problem

#

The add on works in the world it self

#

But it has a problem

chilly viper
carmine estuary
#

That i mentioned above

#

Ok i will change the manifest

#

And put it the world

#

Same problem

#

[Commands][warning]-Function spawn_chunk failed to load correctly with error(s):

[Commands][warning]-Error on line 1: command failed to parse with error 'Syntax error: Unexpected "@a": at "xecute at >>@a<<[tag=spawn"'

[Commands][warning]-Error on line 2: command failed to parse with error 'Syntax error: Unexpected "@a": at "xecute at >>@a<<[tag=!spaw"'

[Commands][warning]-Function spawn_chunk failed to load correctly with error(s):

[Commands][warning]-Error on line 1: command failed to parse with error 'Syntax error: Unexpected "@a": at "xecute at >>@a<<[tag=spawn"'

[Commands][warning]-Error on line 2: command failed to parse with error 'Syntax error: Unexpected "@a": at "xecute at >>@a<<[tag=!spaw"'

#

@chilly viper

#

My Minecraft version is : 1.20.51

#

I put the version in min_engine : 1.20.50

#

The problem is exactly in the command Syntex

chilly viper
#

idk what's happening then

#

it should be exactly correct

carmine estuary
#

Hmmm it said the problem is in the. ---> @a

normal ember
#

Can you send this function?

carmine estuary
#

Sure

#

execute at @a[tag=spawn] run tag @a spawn
execute at @a[tag=!spawn] run tickingarea add circle ~ ~ ~ 4
tag @a add spawn

normal ember
#

tag @a spawn
Something seems to be missing

carmine estuary
#

{ the first ever problem was the ticking area stops after entering the nether , after we changed it the problem is in the commands Syntex}

#

The important problem is the nether dimensions make the function stop after entering it

#

This is the first commands that was puted :

This is its code (plz fix it if u can) :

#bridge-file-version: #0
execute @a[tag=spawn] ~ ~ ~ tag @a add spawn
execute @a[tag=!spawn] ~ ~ ~ tickingarea add circle ~ ~ ~ 4
tag @a add spawn

chilly viper
carmine estuary
#

Ur edited commands ?

chilly viper
#

ye

carmine estuary
#

Hmmmm

normal ember
#

Have you tried with execute in nether?

carmine estuary
#

I change it

#

After i changed it the problem appeared

chilly viper
#

the syntax is completely wrong for newer versions

carmine estuary
normal ember
#

As for the other function, there is no error in @a

carmine estuary
#

Hmmm but i have the 1.20.51 version!

carmine estuary
#

Excute in the nether ?

#

How

#

@normal ember

normal ember
#

Should tickingarea be added in the nether?

carmine estuary
#

Yep

#

It s not like i said the problem in the it s not working in the nether

#

It not working in the overworld

#

After i enter then exit the nether

#

The functions in the overworld didn't add new ticking areas

normal ember
#

You can only have 10 tickingareas at the same time

carmine estuary
#

Like if i put the furnace with 10 diamonds and i was far 90 blocks it will be cooked before i entered the nether

#

After i enter the nether and exit the nether

#

( im in the overworld now ) if i add new furnace in new area that i never was in it, it will not cook the diamond after i got away 90 blocks

#

Did U understand what i mean ?
@normal ember

normal ember
#

maybe the maximum number of areas has already been added

carmine estuary
#

Nah bro

#

I only puted one furnace and built nether portal

#

And enter it

#

Then exit it

#

Then the commands didn't work

normal ember
#

so the function doesn't use tick.json, is it activated when you position the furnace?

carmine estuary
#

Hmmm

normal ember
#

I understand what you mean, the function doesn't work after entering the nether

carmine estuary
#

Yes

#

Maybe

#

I mean i put
/Say hmhm
In the function

#

And it steels write hmhm

#

After i entered the nether

carmine estuary
#

I don't wanna ticking areas in the nether just what i want the command to work after i visit and exit the nether

normal ember
#

Does the function use tick.json?

carmine estuary
#

Yes

#

So what i should do

normal ember
#

What should the first command of the function do?

carmine estuary
#

._. hmmm

normal ember
carmine estuary
#

I didn't make the function : < )

#

This is the working function

normal ember
#
execute as @a[tag=spawn] run tag @s add spawn
execute as @a[tag=!spawn] at @s run tickingarea add circle ~~~ 4
tag @a add spawn
carmine estuary
#

Are u sure ?

#

In the function above the commands was working fine ( only the nether problem)

carmine estuary
normal ember
#

That would be this updated function, but to be honest it doesn't make much sense.

carmine estuary
#

I think the function maker was wanting to make sure the ticking area will be added only if u puted a block

normal ember
#

I don't know why it stops working when leaving the nether, it shouldn't happen.

carmine estuary
#

Me too

#

Still

#

[Commands][warning]-Function spawn_chunk failed to load correctly with error(s):

[Commands][warning]-Error on line 1: unknown or invalid command '```'

[Commands][warning]-Error on line 2: command failed to parse with error 'Syntax error: Unexpected "@a": at "xecute as >>@a<<[tag=spawn"'

[Commands][warning]-Error on line 3: command failed to parse with error 'Syntax error: Unexpected "@a": at "xecute as >>@a<<[tag=!spaw"'

[Commands][warning]-Error on line 5: unknown or invalid command '```'

#

@normal ember

faint coyote
#

What's your manifest version ?

carmine estuary
#

1.20.50

faint coyote
#

It should be 1.19.50 or above.

carmine estuary
#

And my version is 1.20.51

faint coyote
#

send the function.

carmine estuary
#
execute as @a[tag=spawn] run tag @s add spawn
execute as @a[tag=!spawn] at @s run tickingarea add circle ~~~ 4
tag @a add spawn
#

This is also the folder with the tick.json

#

My problems are ( the commands doesn't work and my second problem is ( when i entered the nether and exit the nether the function stop working, exactly it doesn't add new tick areas even if there is only 1 tick area occupied)

#

@faint coyote

normal ember
#

change to 1.20.50

faint coyote
#

...

carmine estuary
#

Wait ._. Soooooooooryyy

#

My bad

#

XD

#

So

#

@normal ember

#

We have only one problem left

normal ember
#

I don't know what's going on, it should keep working in the nether and overworld

chilly viper
#

;-;

carmine estuary
#

Yes

#

I put your new syntax but there is no difference

#

I mean it works

#

And everything fine after i updated the min engine

#

But the first problem ( of the nether ( let s name it the dimension problem ) is steel )

#

@normal ember

chilly viper
#

hmm

carmine estuary
#

I found this

chilly viper
#

That one if also out of date with the functions, but should be easily updated

carmine estuary
#

Hmmm anyone can please try it

#

Maybe it s the solution

#

Never mind

#

I was wan it auto

#

Hmhm