#Mobs wont move.
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 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
let me guess, you modify their nbt every tick?
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.
no.
wtf
and also odly
if one person has score of 2
everyone else gets that score
oh
im dum
Can not believe youd assume
and ACCUSE ME
Most of the time this question is asked, that's the reason.
<@&1166082198152159386> <@&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 the sharing enties and entiries not properly spawn is FIXED btw
but they wont move..
Is this in the tick.mcfunction file?
It's a little hard to diagnose what's wrong, as I don't even know what this code does.
Thats fixed
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
What is this code supposed to do, and what's happening instead?
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
Its suppose dto move the players charcter
But it does NOt work
Could you elaborate by what you mean by "player's character"?
Is the player's character another entity, or is it the player himself?
first one
In first thing
It literalkly summons the player
The player is the entity and they can control it through WASD
Ahh, okay. I understand.
I actually found out it was because of the NoAI
some reason mojang made it so that NoAI also ingores motion changes
thx