Inactive [MECH] MagnetBlock v0.4.7 - Movable Structures controlled by Redstone [1060]

Discussion in 'Inactive/Unsupported Plugins' started by narrowtux, Mar 2, 2011.

  1. Offline

    valdark

    Awesome...off to test once again...

    Woot... it works for me ... even with standard McMyAdmin restart. Congratulations on making an amazing plugin and thank you so much for sticking with it long enough to get it working correctly.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 10, 2016
  2. Offline

    LolCoolName

    I am trying to make a big front gate to a city which consists of two halves which slide in and out of the walls and joins in the middle of the opening. No matter what I do, the left side of this gate will not properly retract into the wall. The gate consists of two magnet block structures and the right side works perfectly. The left side just gets stuck, usually one block short of being fully retracted. This occurs with just the left side regardless of the orientation of the gate (N-S or E-W). The server does not display any sort of message about a structure hitting something. How fix?
     
  3. Offline

    kmccmk9

    Oh ok the distance might be my problem then. I was trying to make an underwater elevator down a extremely deep shaft. Any suggestions on how to overcome the limit? Maybe more magnets? I am using FalseBook to do the wireless transmitters and receivers. The other question is, how hard would it be for someone or you the plugin developer to change the limit?
     
  4. Offline

    narrowtux

    Please read all following posts. There is NO limit ! :D

    I think it works when you move the Magnetblock one step behind.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 10, 2016
  5. Offline

    kmccmk9

    Oh so that means that this does not work because of my wireless trasmitters and receivers which do actually work?
     
  6. Offline

    icomeinpieces

    sounds like a gate i once constructed. G = gate and A = air
    this is opened gate
    GGGAAAAGGG
    GGGAAAAGGG
    GGGAAAAGGG
    and closed
    AAGGGGGGAA
    AAGGGGGGAA
    AAGGGGGGAA
    i had open and close magnets in the sides of the gate and sometimes they would close into eachother and bug out
    so i did this the C is cobblestone or something similar to stop the gate from moving past half point
    GGGAAAAGGG
    GGGAAAAGGG
    GGGAAAAGGG
    GAACAACAAG
    and closed look like this
    AAGGGGGGAA
    AAGGGGGGAA
    AAGGGGGGAA
    AAGCAACGAA

    i hope this made sense if it didn't i'll reconstruct (on a new world now) it and snapshot it
     
  7. Offline

    kmccmk9

    Does it matter that I'm trying to go through water, cause for the life of me I can't figure out why this isn't working
     
  8. Offline

    narrowtux

    I does move through water but not through water sources.
     
  9. Offline

    kmccmk9

    Ok well this is very strange. I got the structure to move 1 block down but that's it, no more.
     
  10. Offline

    narrowtux

    It does not move through water sources because it would destroy the world otherwise. The water that comes from the source will be re-created by the server after the structure is away.
     
  11. Offline

    kmccmk9

    So how do I make this move more than one block or is it not possible?

    The problem seems to be when I make the structure itself bigger. If the structure is small and simple it moves all the way down and all the way up no problem. Is there any restriction on size?
     
  12. Offline

    narrowtux

    No there aren't any restrictions ;)
    Have you set an origin block for the structures?
    If not, the first block you placed in the structure is being used as origin. The algorithm tries to move the origin to the magnet.
    You can re-set the origin by placing an iron block in the structure.
     
  13. Offline

    beatcomet

    I got a problem...
    the stracture moves only one block back/forward
     
  14. Offline

    narrowtux

    Did you reload the plugins? Type /reload
     
  15. Offline

    beatcomet

    i will try it

    EDIT: works thanks :D
     
  16. Offline

    kmccmk9

    I have set an origin block.
     
  17. Offline

    narrowtux

    It's a common problem that a big structure does not move after you created it. /reload will help you.
    If you build big structures, you have to see if it collides with something.
     
  18. Offline

    kmccmk9

    Thanks I will give that a shot. My other theory is that my server simply can't handle it
     
  19. Offline

    valdark

    It is most likely the magnet arrangement. I had an issue with a 7X7x34 block structure that would move up but not down it turned out to be an issue with the lower magnet placement. Note this structure moves up 33 blocks and back down. Also if you edit the structure you may need to replace magnet.
     
  20. Offline

    kmccmk9

    That could be it too. I will look into it thanks!
     
  21. Offline

    valdark

    Well I had this working yesterday. Did both restarts and start stops with no issue. Then tonight I got home to find my server timing me out on login. Once I restarted the server all blocks had once again converted to air in the file and would not regenerate as cobble or otherwise with /reload or server restart.

    Back to the drawing board.
     
  22. Offline

    FrankieJTKP

    I'm really excited to add this to my server, we were planning on creating a large scale minecart rail system with a central hub, but if this works as well as I hope it does, I intend to make a monorail system instead, which would look way cooler. However, unless I just totally missed it, am I right in assuming that when using the iron+redstone magnet that you cannot move in more than one direction? I mean, if I built a monorail using the magnet function, would I be able to put it on a "rail" that makes turns and rotates (and possibly changes elevation) automatically? My base is very far north-west of our spawn point and is only reachable through a mountain pass so I want to take a meandering route that possibly goes up and down with the landscape. Let me know if this is possible or could be planned for a future update. Thanks
     
  23. Offline

    narrowtux

    It was originally planned to make it that it rotates automatically, but I didn't know how to do it. Maybe signs are a solution... This would be quite complicated to setup, though.
    The automatically change of elevation is done already (it goes up/down when the possibility is given to do so, try it out)
     
  24. Offline

    FrankieJTKP

    I see, well, I just wanted to know if it was possible, maybe you could try using a perpendicular iron+redstone magnet to force a direction change at the junction? And possibly wiring the two magnets together so they switch automatically? Even if auto-rotate isn't viable right now, at least automatically changing direction would be cool.I don't know, I'm not a developer, I haven't had the chance to sit down and learn java yet. But I appreciate the effort you guys put in, and thanks for the quick response.

    I guess I did not see the auto-elevation change feature, that is pretty cool, this should work for me. I guess I'll just use a series of monorails and stations to change directions in the mean time. I will post screenshots when I get it working. Take it easy man.
     
  25. Offline

    narrowtux

    The moving algorithm works like this:
    moveVector = unitVector(structurePos-magnetPos)
    unitVector is a function that shortens the vector to a length of 1
    Move into each direction (x/y/z) of the moveVector that is not 0. If one direction is not possible to move there, at least try to move into the others.
    Considering this, a setup like this works:
    Bildschirmfoto 2011-05-05 um 19.49.21.PNG
    That's pure Math-magic and also the reason, why the auto-move up/down-"feature" works ;)
     
  26. Offline

    FrankieJTKP

    So, I am working on a few different projects with Magnetblocks, after finally getting my monorail test to work (thanks for your help, btw). My new question for you is, is it possible to configure the speed of the Magnetblock movement? I have a pretty elegant solution for changing directions automatically (using a combination of MB, and redstone chips), but I would like to be able to make the monorail move faster. (more 2011-05-07_21.51.11.png screenshots when I do some more tinkering)
     
  27. Offline

    narrowtux

    At the moment, it's not possible to change the speed. I can do that, though ;)
     
  28. Offline

    FrankieJTKP

    Sounds awesome, can't wait to try it out when you get around to it. Thanks for such an awesome plugin man!
     
  29. Offline

    narrowtux

    Release v0.4.4
    Changes
    • Added a maximumSpeed configuration value. If it is higher than 1, structures will accelerate until they have reached maximum speed. (as proposed by @FrankieJTKP )
    • Revamped configuration-parsing
     
  30. Offline

    mze9412

    I tried to run this on my server but everytime someone started building a structure mit /mbcs the server started lagging massively for everyone :(
     

Share This Page