[::] Telekinetic Minecarts!

๐ŸŽ™๏ธ tryashtar ยท 65 points ยท Posted at 22:44:37 on November 22, 2014 ยท (Permalink)


JadedEssentialBorer

meepbob ยท 9 points ยท Posted at 03:36:27 on November 23, 2014 ยท (Permalink)

How, this is important information you are withholding here.

๐ŸŽ™๏ธ tryashtar ยท 11 points ยท Posted at 05:18:18 on November 23, 2014 ยท (Permalink)

Two command blocks on a clock.

One tells minecarts to change the motion of nearby pigs to knock them +Z.

One tells minecarts to change the motion of nearby cows to knock them -Z.

xOmNomNom ยท 1 points ยท Posted at 07:05:58 on November 23, 2014 ยท (Permalink)

Lol I thought you implemented some command block magic to knockback entities related to their current facing. Ty btw

michaeltleonard ยท 1 points ยท Posted at 22:32:32 on November 23, 2014 ยท (Permalink)

So what exactly would the command for either of these be? I'd love to implement this but don't know where to start.

๐ŸŽ™๏ธ tryashtar ยท 3 points ยท Posted at 05:26:48 on November 24, 2014 ยท (Permalink)
/execute @e[type=MinecartRideable] ~ ~ ~ detect ~ ~-1 ~ rail 0 entitydata @e[type=Pig,r=3] {Motion:[0.0,0.3,0.8]}

This is a really rough implementation, but it gets the job done. A more "professional" contraption would check the minecarts speed and knock mobs accordingly, with all sorts of variables, but eh--it works.

michaeltleonard ยท 1 points ยท Posted at 09:12:06 on November 24, 2014 ยท (Permalink)

Awesome, thank you! Tempted to just kill any pigmen in the way. Just seeing the code helped a lot.

xOmNomNom ยท 1 points ยท Posted at 04:52:08 on November 23, 2014 ยท (Permalink)*

OP please deliver

Edit : OP delivered

qghop ยท 2 points ยท Posted at 04:56:07 on November 23, 2014 ยท (Permalink)

This solves a huge problem, and brought a smile to my face.