#Mobs wont move.

1 messages · Page 1 of 1 (latest)

dire thunder
#

Imma foward somethings into here.

opaque sentinelBOT
#

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

jaunty roost
#

let me guess, you modify their nbt every tick?

dire thunder
#

The armorstand version works fine.. BUT WHEN I change it into a piglin skin and use motion data, the mobs dont move.

Picking skins.

execute as @s if score @s skin.select matches 1 run summon skeleton 8 -60 8 {NoAI:true,attributes:[{id:"minecraft:scale",base:0.51}],Invulnerable:true,Tags:["p1.controller","player.armorstand"],Silent:true}
execute as @s if score @s skin.select matches 2 run summon zombified_piglin 8 -60 8 {IsBaby:true,Silent:true,NoAI:true,Tags:["p1.controller","player.armorstand"]}
execute as @s if score @s skin.select matches 3 run summon zombie 8 -60 8 {Silent:true,NoAI:true,IsBaby:true,Tags:["p1.controller","player.armorstand"]}``` Picking (assume its same for p1 to p4). 

execute if entity @a[team=P1] run function core:character_select/p1_pick
execute if entity @a[team=P2] run function core:character_select/p2_pick
execute if entity @a[team=P3] run function core:character_select/p3_pick
execute if entity @a[team=P4] run function core:character_select/p4_pick


P1 Armorstand setup

execute as @a[team=P1] run loot replace entity @e[tag=p1.controller] armor.head loot core:fill_player
item replace entity @e[tag=p1.controller] armor.chest with leather_chestplate[dyed_color={rgb:17053}]
item replace entity @e[tag=p1.controller] armor.legs with leather_leggings[dyed_color={rgb:17053}]
item replace entity @e[tag=p1.controller] armor.feet with leather_boots[dyed_color={rgb:17053}]
team join P1.Char @e[tag=p1.controller]

#
$execute if entity @s[team=P1] run data modify entity @e[tag=p1.controller,limit=1] Motion[2] set value $(x)
$execute if entity @s[team=P2] run data modify entity @e[tag=p2.controller,limit=1] Motion[2] set value $(x)
$execute if entity @s[team=P3] run data modify entity @e[tag=p3.controller,limit=1] Motion[2] set value $(x)
$execute if entity @s[team=P4] run data modify entity @e[tag=p4.controller,limit=1] Motion[2] set value $(x)

$execute if entity @s[team=P1] run data modify entity @e[tag=p1.controller,limit=1] Motion[0] set value $(y)
$execute if entity @s[team=P2] run data modify entity @e[tag=p2.controller,limit=1] Motion[0] set value $(y)
$execute if entity @s[team=P3] run data modify entity @e[tag=p3.controller,limit=1] Motion[0] set value $(y)
$execute if entity @s[team=P4] run data modify entity @e[tag=p4.controller,limit=1] Motion[0] set value $(y)```  the motion stuff.
dire thunder
#

wtf

#

and also odly

#

if one person has score of 2

#

everyone else gets that score

#

oh

#

im dum

dire thunder
#

and ACCUSE ME

jaunty roost
#

Most of the time this question is asked, that's the reason.

dire thunder
#

yeah

#

thats fair

#

but actually,m i figure out the issue

#

maybe

opaque sentinelBOT
# opaque sentinel <@&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)

dire thunder
#

okay the sharing enties and entiries not properly spawn is FIXED btw

#

but they wont move..

wicked shell
#

It's a little hard to diagnose what's wrong, as I don't even know what this code does.

dire thunder
#
execute as @a[predicate=movement:w_key] run function core:controls/movement {"x":"0.2","y":"0"}
execute as @a[predicate=movement:s_key] run function core:controls/movement {"x":"-0.2","y":"0"}
execute as @a[predicate=movement:d_key] run function core:controls/movement {"x":"0","y":"-0.2"}
execute as @a[predicate=movement:a_key] run function core:controls/movement {"x":"0","y":"0.2"}

execute as @a[predicate=movement:w_a_key] run function core:controls/movement {"x":"0.2","y":"0.2"}
execute as @a[predicate=movement:w_d_key] run function core:controls/movement {"x":"0.2","y":"-0.2"}
execute as @a[predicate=movement:s_a_key] run function core:controls/movement {"x":"-0.2","y":"0.2"}
execute as @a[predicate=movement:s_d_key] run function core:controls/movement {"x":"-0.2","y":"-0.2"}

execute as @a[predicate=movement:w_key] run function core:controls/rotate {rotate:"0"}
execute as @a[predicate=movement:s_key] run function core:controls/rotate {rotate:"180"}
execute as @a[predicate=movement:a_key] run function core:controls/rotate {rotate:"270"}
execute as @a[predicate=movement:d_key] run function core:controls/rotate {rotate:"90"}

execute as @a[predicate=movement:w_a_key] run function core:controls/rotate {rotate:"-45"}
execute as @a[predicate=movement:w_d_key] run function core:controls/rotate {rotate:"45"}
execute as @a[predicate=movement:s_a_key] run function core:controls/rotate {rotate:"-135"}
execute as @a[predicate=movement:s_d_key] run function core:controls/rotate {rotate:"135"}```
#

even if i summon the entity with no ai

#

and motion

#

it refuses to listen

wicked shell
#

What is this code supposed to do, and what's happening instead?

dire thunder
#

oh

#

do i gotta disable AI?

#

IM SUPPOSED TO ENABLE THE AI

#

FOR THE MOTION STUFF TO WORK?!

#

okay

#

iM GLAD i FOUND THAT OUT

dire thunder
#

But it does NOt work

wicked shell
#

Could you elaborate by what you mean by "player's character"?

#

Is the player's character another entity, or is it the player himself?

dire thunder
#

first one

dire thunder
#

It literalkly summons the player

dire thunder
wicked shell
#

Ahh, okay. I understand.

dire thunder
#

I actually found out it was because of the NoAI

#

some reason mojang made it so that NoAI also ingores motion changes

wicked shell
#

Interesting.

#

Well, I'm glad you figured it out 🙃

dire thunder
#

thx