#I don't know why, but it seems the path of my file isn't good

1 messages · Page 1 of 1 (latest)

prisma cloud
muted timberBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

                        🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you


                        
                        ✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
harsh fern
#

wdym?

prisma cloud
#

my functions work when i activate them manually, but when i want to use them with a tick file, the don't work anymore

harsh fern
#

o oki

#

hmm

prisma cloud
#

if i do like this, and put the correct files, it works :
{
"replace": false,
"values": [
"blocks:tick",
"items:tick",
"items:weapons/scythe/wooden_scythe",
"items:weapons/scythe/stone_scythe",
"items:weapons/scythe/iron_scythe",
"items:weapons/scythe/diamond_scythe",
"items:weapons/scythe/netherite_scythe"
]
}

harsh fern
#

do the logs say anything?

little joltBOT
#
:information_source: Default Launcher Logs

The logs are where Minecraft displays errors when something goes wrong and can thus help you gain information about why something isn't working for you!
To open the logs:

  1. Enable logs in the Minecraft Launcher
  2. Start your game (or restart it if you already have an open instance)
  3. Enjoy spotting errors getting much easier!
prisma cloud
#

but if i do like this it doesn't anymore :
{
"replace": false,
"values": [
"blocks:tick",
"items:weapons/scythe/wooden_scythe",
"items:weapons/scythe/stone_scythe",
"items:weapons/scythe/iron_scythe",
"items:weapons/scythe/diamond_scythe",
"items:weapons/scythe/netherite_scythe"
]
}

prisma cloud
#

when it try to reload nothing appear

harsh fern
#

odd

#

so when items:tick isn’t in tick.json, none of the functions work?

prisma cloud
#

yeah

harsh fern
#

I’ll have a look in a little bit bcuz im busy now

muted timberBOT
# muted timber <@&1201956957406109788>

<@&935561184806060073> <@&1202694677766348840>

**🙇 Helpers Arise!**

Please note that you still might not immediately get a response since all helpers are human beings and volunteers (and also might be sleeping right now)

prisma cloud
#

okay i understand the issue now, but i don't know how to fix it

#

it seems like the tick function needs the first line to work before checking the one after, i thought that it would make all the files work independently of the other

#

like this

#

when it thought it worked like this

#

but what can i do in this case ?

harsh fern
#

but surely all the functions work?

prisma cloud
#

yes

harsh fern
#

so whys that a problem

#

i still dont really understand the problem

prisma cloud
#

the functions are not activated constantly, the tick is just to detect "when" to activate the function, i am currently testing with the diamond scythe, and if i don't put the diamnd scythe line at the top it doesn't work

#

like this

harsh fern
#

as long as each of the functions works by itself without any errors, then all of those functions will be ran once per tick

prisma cloud
#

oh

#

so why, it seems there is an error in my code so

harsh fern
#

errors should be shown in the logs

#

what you could do is have only one tick function, and in that tick function just run all the other functions with the function command

prisma cloud
prisma cloud
#

still not working and i have no errors in the log

#

could it be because of the detection tags ?

#

execute as @a[scores={UseScythe=1..},nbt={SelectedItem:{id:"minecraft:diamond_sword",tag:{diamond_scythe:1b}}}] at @s run say hello
execute as @a[scores={UseScythe=1..},nbt={SelectedItem:{id:"minecraft:diamond_sword",tag:{diamond_scythe:1b}}}] at @s run function items:weapons/scythe/diamond/sweeping_damage
scoreboard players reset @s[scores={UseScythe=1..}] UseScythe

pallid tusk
prisma cloud
prisma cloud
pallid tusk
harsh fern
#

^^

prisma cloud
#

yeah

#

i can't figure out why its not working

prisma cloud
harsh fern
#

so instead of zip/folder/(data and pack.mcmeta) it should just be zip/(data and pack.mcmeta)

prisma cloud
muted timberBOT
#
Result of analysis

I found no issues with the structure of your datapack.

harsh fern
#

yeah like that

#

the file structure is ok

prisma cloud
#

so its with my commands it seems

harsh fern
#

I suggest you only have one tick function. All the commands from the other tick functions can just go in that funciton.

#

Also, it's generally a bad idea to use many namespaces. You should only use one

#

Because if another datapack also uses the blocks namespace and decides to make a tick.mcfunction, they will override eachother

prisma cloud
#

or i put them into another namespace

harsh fern
#

yeah

prisma cloud
#

oh i think i know what is the issue

#

nevermind

#

now i am even more confused

#

I DID IT FINALLY

#

yeah it was an error of pathing

#

took me all day to figure it out i'm crying

#

but it works perfectly now thank god

muted timberBOT
#
Question Closed

Your question, #1203693908467515462 (I don't know why, but it seems the path of my file isn't good), was resolved!

Original Message

all the commands works, but i just can't seem to find how to link them properly

Duration open

7h25m

muted timberBOT
#
🗑️ Recycling Thread

This thread has been inactive for some time, so I'm going to archive it.

If you're still using the thread, just send a message and it'll pop back on the thread list.

muted timberBOT
#
🗑️ Recycling Thread

This thread has been inactive for some time, so I'm going to archive it.

If you're still using the thread, just send a message and it'll pop back on the thread list.