Omnimaga

General Discussion => Technology and Development => Computer Projects and Ideas => Topic started by: Builderboy on November 27, 2011, 12:30:53 am

Title: Minecraft Force Field
Post by: Builderboy on November 27, 2011, 12:30:53 am
      So I was messing around with minecarts in Minecraft today, and I noticed something strange.  I had put about a dozen minecarts on a single track, and whenever they got closer to each other, every once in a while my player would move slightly.  Intrigued, I began to test.  I build a 2x2 circle of rails, and added in several dozen minecarts.  The results were interesting for sure.  My player would be pushed away from the spinning minecarts with a surprising amount of force.  What's more, any attempt to break a nearby block did nothing.  I ended up building a facility to test this phenomenon.  It has a bank of 114 minecarts that can slowly be added into a central field generator, and nearby minecarts to test the fields strength.  Check it out!

Here is a picture featuring the field generator
(http://i199.photobucket.com/albums/aa72/builderboy2005/eye-of-the-blue-dragon-elaina-wagner.jpg)
Title: Re: Minecraft Force Field
Post by: AngelFish on November 27, 2011, 03:09:28 am
I tested the force field map out on rcfreak0's server to see what it did with SMP. It's very different. For one thing, there's no force field effect on players, only on other carts.
 Secondly, if you break any of the glass around the cage, carts will start floating out and slowly drift towards the ground. In SSP, you can't place blocks anywhere in the area without being sucked into a minecart. That tells me that what's happening is a disparity between the location of the cart in the physics engine and the rendering location. The physics engine appears to think the carts are forced beyond the walls and the cart pressure is what pushes you back.