#Why it is no working?

1 messages · Page 1 of 1 (latest)

kindred carbon
#

it is called in another function at ~ 4 ~

orchid hazelBOT
#

<@&1201956957406109788>

Someone will come and help soon!

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

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

kindred carbon
#

execute if block ^ ^ ^-0.45 slime_block at @s run tp @s ^ ^ ^0.1
execute if block ^ ^ ^-0.45 honeycomb_block at @s run tp @s ^ ^ ^0.1
execute unless block ^ ^ ^-0.47 honeycomb_block run tag @s[tag=turned] remove turned

execute if block ^ ^ ^-0.45 honeycomb_block if block ^1 ^ ^ slime_block if block ^-1 ^ ^ slime_block if block ^ ^ ^0.55 slime_block store result score @s npc_random run random value 1..3
execute if block ^ ^ ^-0.45 honeycomb_block if block ^1 ^ ^ slime_block if block ^-1 ^ ^ slime_block unless block ^ ^ ^0.55 slime_block store result score @s npc_random run random value 1..2
execute if block ^ ^ ^-0.45 honeycomb_block unless block ^1 ^ ^ slime_block if block ^-1 ^ ^ slime_block if block ^ ^ ^0.55 slime_block store result score @s npc_random run random value 2..3

execute if block ^ ^ ^-0.45 honeycomb_block if block ^1 ^ ^ slime_block unless block ^-1 ^ ^ slime_block if block ^ ^ ^0.55 slime_block store result score @s npc_random run random value 3..4
execute if block ^ ^ ^-0.45 honeycomb_block if block ^1 ^ ^-0.45 slime_block unless block ^-1 ^ ^ slime_block unless block ^ ^ ^0.55 slime_block run scoreboard players set @s npc_random 1
execute if block ^ ^ ^-0.45 honeycomb_block unless block ^1 ^ ^ slime_block if block ^-1 ^ ^ slime_block unless block ^ ^ ^0.55 slime_block run scoreboard players set @s npc_random 2
execute if block ^ ^ ^-0.45 honeycomb_block unless block ^1 ^ ^ slime_block if block ^-1 ^ ^ slime_block unless block ^ ^ ^0.55 slime_block run say ???

execute as @s[scores={npc_random=1}] if block ^1 ^ ^ slime_block at @s run tp @s[tag=!turned] ~ ~ ~ ~90 ~
execute as @s[scores={npc_random=2}] if block ^-1 ^ ^ slime_block at @s run tp @s[tag=!turned] ~ ~ ~ ~-90 ~
#execute as @s[scores={npc_random=4}] if block ^-1 ^ ^ slime_block at @s run tp @s[tag=!turned] ~ ~ ~ ~90 ~

execute as @s[scores={npc_random=1..4}] run tag @s add turned

scoreboard players set @s npc_random 0

#

.

i wanted to make they go path and turn random direction on separations

lament quest
#
execute if block ^ ^ ^-0.45 honeycomb_block at @s run tp @s ^ ^ ^0.1
execute unless block ^ ^ ^-0.47 honeycomb_block run tag @s[tag=turned] remove turned

execute if block ^ ^ ^-0.45 honeycomb_block if block ^1 ^ ^ slime_block if block ^-1 ^ ^ slime_block if block ^ ^ ^0.55 slime_block store result score @s npc_random run random value 1..3
execute if block ^ ^ ^-0.45 honeycomb_block if block ^1 ^ ^ slime_block if block ^-1 ^ ^ slime_block unless block ^ ^ ^0.55 slime_block store result score @s npc_random run random value 1..2
execute if block ^ ^ ^-0.45 honeycomb_block unless block ^1 ^ ^ slime_block if block ^-1 ^ ^ slime_block if block ^ ^ ^0.55 slime_block store result score @s npc_random run random value 2..3

execute if block ^ ^ ^-0.45 honeycomb_block if block ^1 ^ ^ slime_block unless block ^-1 ^ ^ slime_block if block ^ ^ ^0.55 slime_block store result score @s npc_random run random value 3..4
execute if block ^ ^ ^-0.45 honeycomb_block if block ^1 ^ ^-0.45 slime_block unless block ^-1 ^ ^ slime_block unless block ^ ^ ^0.55 slime_block run scoreboard players set @s npc_random 1
execute if block ^ ^ ^-0.45 honeycomb_block unless block ^1 ^ ^ slime_block if block ^-1 ^ ^ slime_block unless block ^ ^ ^0.55 slime_block run scoreboard players set @s npc_random 2
execute if block ^ ^ ^-0.45 honeycomb_block unless block ^1 ^ ^ slime_block if block ^-1 ^ ^ slime_block unless block ^ ^ ^0.55 slime_block run say ???

execute as @s[scores={npc_random=1}] if block ^1 ^ ^ slime_block at @s run tp @s[tag=!turned] ~ ~ ~ ~90 ~
execute as @s[scores={npc_random=2}] if block ^-1 ^ ^ slime_block at @s run tp @s[tag=!turned] ~ ~ ~ ~-90 ~
#execute as @s[scores={npc_random=4}] if block ^-1 ^ ^ slime_block at @s run tp @s[tag=!turned] ~ ~ ~ ~90 ~

execute as @s[scores={npc_random=1..4}] run tag @s add turned

scoreboard players set @s npc_random 0```
#

This is just for easier readability

kindred carbon
#

ok

kindred carbon
#

but when they walk in this on the left they turn opposite direction

#

and i dont know why

#

i think they turn more than 1 time but they shouldnt

orchid hazelBOT
# orchid hazel <@&1201956957406109788>

<@&1166082198152159386> <@&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)

kindred carbon
#

@agile ivy @candid hill

candid hill
#

Why did you ping us?

kindred carbon
#

can u tell me why it is not working?

#

i have no clue

#

i was trying to fix it for 2 hours

lone plinth
#

RULE 1: Do not ping staff. You may use the "Summon Helpers" button once in your question if you are not receiving any responses. #📜┃information message

#

also In order for us to be able to help you, you probably want to explain what your code is trying to do and what it is doing. We do not want to spend a whole day trying to reverse engineer your code just so we can tell you that you've put some random lines in the wrong order