#I don't know why, but it seems the path of my file isn't good
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 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
wdym?
my functions work when i activate them manually, but when i want to use them with a tick file, the don't work anymore
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"
]
}
do the logs say anything?
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:
- Enable logs in the Minecraft Launcher
- Start your game (or restart it if you already have an open instance)
- Enjoy spotting errors getting much easier!
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"
]
}
yeah
I’ll have a look in a little bit bcuz im busy now
<@&935561184806060073> <@&1202694677766348840>
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)
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 ?
but surely all the functions work?
yes
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
as long as each of the functions works by itself without any errors, then all of those functions will be ran once per tick
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
i'll try
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
are you trying to transfer command blocks?
wdym
no it was just a representation for how i tought it worked 🤣
why do you need a lot of functions in tick.json? put all the commands in one function
cuz then it's more organized
^^
here is the datapack if someone want to check
Can you zip data and mcmeta, and not zip a folder containing both of them?
so instead of zip/folder/(data and pack.mcmeta) it should just be zip/(data and pack.mcmeta)
mb like this ?
I found no issues with the structure of your datapack.
so its with my commands it seems
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
or i put them into another namespace
yeah
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
Your question, #1203693908467515462 (I don't know why, but it seems the path of my file isn't good), was resolved!
all the commands works, but i just can't seem to find how to link them properly
7h25m
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.
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.