Started by
Overtek
on
Topic category: Help with Minecraft modding (Java Edition)
Hello !
I'm creating a mod with lightsabers and force like star wars. I want to create a procedure that push entities when the player sneak and righ click with of course a delay. Unfortunately I don't find a way to do that with the procedure. I try, first, with somes commandes but it's weard. I know we can do a thing like that by detecting the position of entites in front of the player but nothing work.
Can you help me ?
Uhh,more info please(attach workspace to mediafire)
if you're using 2020.3 or above, i think you can do something like this:
create a new procedure element. in the first green event trigger box select from the global trigger pulldown "Player right clicks on entity". use Entity code block "Move (target entity) to", and replace the x,y,z with Entity code blocks "(source entity) look position x/y/z - raytrace distance(n)", replace n with the distance you want the target to move. (in 2020.2 you can't use the source player)
also if 2020.3, you need to also check if the source player is sneaking or can use the force.
So i am trying to do this but I didnt found a move target entity block
also it says dependences missing
do something like this:
ok thx for replying