#I'm just confused

1 messages · Page 1 of 1 (latest)

dark wave
#

rc_rc_s.mcfunction

scoreboard players set @s ability 0
title @s actionbar {"text":"R R S"}

function temp:dk/a2/a2_usage
say used```
this fuction is triggered by right clicking twice then sneaking once, it's triggered properly since it's does say "used" with my username (so it's triggered as the player)

then I have a2_usage.mcfunction
```function temp:dk/a2/marker
function temp:dk/a2/marker
function temp:dk/a2/marker
function temp:dk/a2/marker

The issue I have is, when I do in the chat /function rc_rc_s, everything works properly (both the /say and ae2_usage.mcfunction work).
When I do the double right click sneak thing, rc_rc_s.mcfunction is triggered, the /say part works, but the function a2_usage.mcfunction isn't run

dark wave
#

if anything isn't clear or if I forgot to give any important information, don't hesite to ping me !

dreamy torrent
#

how exactly is your trigger implemented, and what does the temp:dk/a2/marker function do?

flint atlas
#

Check the logs for errors, maybe one function has an error in it
Nvm, then it shouldn’t work in chat aswell, still good to have it up tho 🙈

craggy forgeBOT
flint atlas
#

What I can think of, is that the function does run, just not from your location. Can you try putting a say command into the a2 usage and the marker functions?

dark wave
# dreamy torrent how exactly is your trigger implemented, and what does the `temp:dk/a2/marker` f...

so in tick
execute as @a[tag=casting] run function temp:rcs_system/hub

and in hub.mcfunction

execute if score @s ability matches 31 run return run function temp:rcs_system/out/rc_s_s

#RC S RC
execute if score @s ability matches 14 run return run function temp:rcs_system/out/rc_s_rc

#RC RC S
execute if score @s ability matches 23 run return run function temp:rcs_system/out/rc_rc_s

#RC RC RC
execute if score @s ability matches 6 if score @s cd_a1 matches 0 run return run function temp:rcs_system/out/rc_rc_rc
execute if score @s ability matches 6 if score @s cd_a1 matches 1.. run return run function temp:rcs_system/out_cd/rc_rc_rc_cd


#RC S
execute if score @s ability matches 11 run return run function temp:rcs_system/titles/rc_s

#RC RC
execute if score @s ability matches 3 run return run function temp:rcs_system/titles/rc_rc

#RC
execute if score @s ability matches 1 run return run function temp:rcs_system/titles/rc

When you do right click twice, sneak your score matches 23, so it runs rc_rc_s.mcfunction

#

and that's marker.mcfunction

scoreboard players set @s summon_attemp 100 
function temp:dk/a2/marker_pos```
dark wave
#

I put a /say in a2 usage and marker, and both worked with both methods (whether I manually do the clicking or type /function temp:rcs_system/out/rc_rc_s)

#

I think you might be right about the function not running from the player's location. I summoned an armor stand, and added tp @e[type=armor_stand] ~ ~ ~ in the marker function, and it couldn't tp it to me

#

but when i used the function manually, it did

flint atlas
#

yeah, if you never specify where a function runs, it runs at world spawn

#

whereas when you run it in chat, it runs as and at you

#

to fix just add an at @s into the tick function before calling your hub function

dark wave
#

and now it works !

flint atlas
#

awesome!

dark wave
#

it's a better solution

#

tysm :)

#

you are amazing