[INACTIVE][MECH]BlockPush V2.5 - Allows blocks to be pushed [280]

Discussion in 'Inactive/Unsupported Plugins' started by komes, Feb 3, 2011.

  1. Offline

    komes

    BlockPush - The block pushing plugin:


    Version: v2.5

    This plugin allows players to push blocks on the x and y axis.
    To use this plugin first type /pushblock then make sure you have a feather in your hand. The feather makes it so all blocks are as light as feathers!! Once you have the feather in your hand just left click to push and right click to pull.Now if you have a feather in your hand you can move blocks up and down.

    Features:
    • Plugin can be turned of and on with /pushblock.
    • Collision has been programmed. Movable blocks will not collide with water or lava but will collide with water source and lava source.
    • 512 blocks of the same type that are in contact can be moved as one.
    • feather to push.
    • stick to pull.
    • config file allows you to select what blocks can be pushed, pulled and what items are needed in hand and the amount of blocks movable.
    NOTE:

    YOU MUST RUN YOUR SERVER ONCE TO GET THE CONFIG FILES AND EVERYTHING!! ALSO WITH THE NEWEST VERSION CHECK THE PLUGIN FOLDER FOR THE PUSHBLOCK FOLDER, ONCE IN THEIR OPEN SIGN POS AND ADD 12,12,12,true.

    Config:
    • BlockPushH = The item in your hand needed to do all horizontal movements.
    • BlockPushV = The item in your hand needed to do vertical movements.
    • BlockAmount = how many blocks of the same type can be pushed at once.
    • BlockTypes = What blocks can be pushed.
    • For format follow what is already there.
    Download: BlockPush(this works with the most recent version of craftbukkit. There is some extra stuff in here that will be released with the next version)


    Source Code(Old Code. Will push on next update)

    Todo:
    Redstone Mechanics (open)

    • The idea is we will have a sign put on a block and on that sign you will specify the type of block to move the amount you want them to move and weather it is horizontal or vertical.
    • if there is a block in the path you want the blocks to move nothing will happen and a message will be displayed.
    • this is what is in the sign
    • ----------------------------
    • - PushBlock -
    • - Horizontal/Vertical -
    • - BlockId -
    • -Move amount-
    • ----------------------------
    • Block moves in the direction opposite of the sign, when horizontal is set. And up/down when vertical is set.

    Changelog:



    Version 2.5:
    • Added config file!!
    • You can change movable blocks, items in hand, and the amount of blocks movable.
    Earlier Versions (open)

    Version 2:
    • Added vertical movement!
    • use the stick!
    Version 1.5:
    • Removed the need of stick.
    • Right click to pull.
    • left click to push
    • YOU STILL NEED A FEATHER IN YOUR HAND!!
    Version 1:
    • Collision
    • Group Movement
    Version 0.2:
    • pull blocks when a stick is in hand.
    • push blocks when a feather is in hand.
    Version 0.1:
    • Releasing my plugin that allows you to push 1 block.


    Credits:

    • OLDER BROTHER HELPED!! A LITTLE!! :)
     
  2. Offline

    Yogoda

    Are you interested to port to Bukkit and take over PushBlocks ? http://forum.hey0.net/showthread.php?tid=1319 It does all what BlockPush does + what is on your todo list. I will soon stop playing Minecraft so tell me if you are interested ;)

    Or if you want to continue with yours then I won't work on the PushBlocks port, we don't need 2 plugins that do the same thing.
     
  3. Offline

    komes

    Problem is I would love to port your plugin over but im not that good of a coder and I think porting would be very tough. I am sorry if I stole your plug in idea, I hope to keep working on blockpush.
     
  4. Offline

    Yogoda

    That's ok, if it was your idea too you didn't steal anything, you just didn't know about PushBlocks.

    So, what if I port PushBlocks for you ?
     
  5. Offline

    komes

    umm we will see, i am going to try, i have an idea on how to do it. Also my older brother is going to help. If we fail to get it working you can port it or what ever.
    --- merged: Feb 4, 2011 11:01 PM ---
    Okie dokie my brother helped me and we got it working!!
     
  6. Offline

    Thyme676

    THANK YOU SO MUCH I [​IMG][​IMG][​IMG] have gates all over my world that are made of fence and used to move up/down with pushblock on hmod. is there any way to get this working like the old one? Like make a config file of what can be pushed, and what the tools are??
     
  7. Offline

    Razunter

    Add redstone mechanics :)
     
  8. Offline

    chibirubara

    Any chance of getting a config with this? I'd love to alter the usable block types and maximum size for my PvP server. Great job so far though.
     
  9. Offline

    komes

    Added the config file for all your needs!!
     
  10. Offline

    Thyme676

    So where exactly is the config file? I can't seem to find it in the jar.
     
  11. Offline

    vOICe

    I can't find config file too=\
     
  12. Offline

    komes

    Sorry about that re download the jar it is in there now.
     
  13. Offline

    win

    Works fine. The config file is in the jar now.

    Thanks! nice work
     
  14. Offline

    Thyme676

    It would be really great if you could use one item to move all directions.
     
  15. Offline

    komes

    i would have to add another command... with my coding experience im not quite sure if you can do it with just one item.
    --- merged: Feb 18, 2011 1:52 AM ---
    No thank you!!
     
  16. Offline

    Thyme676

    Hmm ok. The way pushblocks worked is that it would be moved vertically/horizontally biased on your position relative to the object and right/left click would pull or push it it seemed.
     
  17. Offline

    komes



    Yeah i understand what your saying but... say the block is directly infront of you how would i know if someone want's to push and pull it hor or ver...

    personally i like it the way it is now... also remember this isn't a direct port of push block. I did get the Ok from the author to go ahead with this but it isn't going to be exactly the same as the one for hmod.
     
  18. Offline

    Thyme676

    Ok I got it, I just thought it could be something nice to add if possible :p
     
  19. Offline

    komes

    Yeah i will take it into account. :)
     
  20. Offline

    Kiithnaras

    While I do appreciate everything you're trying to do with this plugin, I would very much like to see a port of Yogoda's pushblocks. I am honestly not trying to demean your work, effort, or talent. I simply believe that it is senseless to rework a plugin that already essentially exists from the ground up that may not have the functionality that previous users of PushBlocks, myself included, were used to. A full description of Yogoda's plugin is available in the forum link in his first post. If nothing else, a port of Yogoda's plugin would give you a firm groundwork to build upon for a more elaborate plugin as well as teaching coding via study of his source, as you yourself have admitted to a less than stellar comprehension of coding.

    In short, the hMod PushBlocks used a sort of permissions-based system whereby admins could enable groups of blocks for pushing and pulling for themselves and lower-level users while at the same time retaining an admin-only ability to push and pull groups of blocks that were not publicly-enabled. This, with various region block protection systems, made possible admin-only areas while still allowing most users to partake in the block-moving system without letting it get out of hand. As Thyme stated, the ability to use a single item for pushing/pulling in relation to the axis which lies closest to the vector of the player's vision would simplify the use of this plugin tremendously as well as limit potential conflicts with other plugins, such as iStick.

    At least, those are my two cents on the situation, what little they may be worth. It is ultimately your plugin and I obviously have no say in the matter. The preceding have simply been my observations and opinions.
     
  21. Offline

    komes


    I am sorry if my plugin is not up to par with what you are used to and does not included what you are looking for yet. I am in the midsts of coding (redstone mech) which was requested by another plugin user. On completion I will try to implement some type of permissions that allow the admin to decide which groups can use what. As for using only one item I will try to implement by looking at yogoda's source which I have done in the past. As you stated my coding skills are not the best and I am only 15 and I learn as I go.

    There is a config file so you can change what items are used. So that it doesn't conflict with any other plugin.Me and my brother who codes with me both feel that by having an item for vertical and having an item for horizontal is better because it is less likely that you coincidently move something in a way you don't want it to move.


    I am sorry if my plugin is not up to par with your standards or expectations but you take what you get and if you really don't like it don't use it. I hope to please you in further updates! :)

    Thanks for the friendly criticism!
     
  22. Offline

    Kiithnaras

    I apologize if I came off as crass there. My intent was simply to try to give you an idea of what others' expectations of this sort of plugin may be, and hopefully nudge you in a direction to get it to that level sooner rather than later. As I said, it is ultimately your project, and as such it is your decisions with what to do with it. Your use of "yet" makes me hopeful, and I can certainly be patient and watch your development of this plugin to see what it grows into. Should it satisfy my desires for a system at least similar to the hMod plugin, I will be more than happy to use it and promote it to others.

    I do wish you the best of luck and lots of enjoyment in your coding : )
     
  23. Offline

    komes

    Thanks man and i am going to add permissions so that you can limit the use of the plugin to certain groups.



    Thanks to the person who made me a plugin developer!!
     
  24. Offline

    Yogoda

    I'm sure with time and advices it will be as good as PushBlocks, and even better. Sorry if I don't port it, but I don't see the point in having 2 plugins that do almost the same thing.
     
  25. Offline

    komes

    Thanks for the support Yogoda!!
     
  26. Offline

    gauss5546

    I'm using Craftbukkit version 471 and I get an error. Please update the plugin for 471!

    Code:
    [SEVERE] Could not load plugins\BlockPush.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:80)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:129)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:94)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NoSuchMethodException: com.bukkit.komes.PushBlock.PushBlock.<init>()
        at java.lang.Class.getConstructor0(Unknown Source)
        at java.lang.Class.getConstructor(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:75)
        ... 8 more
    
     
  27. Offline

    komes


    hmm i think that has something to do with you im not sure... im updating it so it should be able to work with 471 soon.
     
  28. Offline

    Soul Reaper

    neat lil idea, waiting for update
     
  29. Offline

    komes

    yeah sorry...im going to release it some time this week.
     
  30. Offline

    narrowtux

    Hint: Remove all arguments of the constructor of your main class (in this case PushBlock). So the constructor would be changed from:
    Code:
    PushBlock(arg1,arg2,arg3){
    super(arg1,arg2,arg3);
    //your personal constructor code here.
    }
    to
    Code:
    PushBlock(){
    //your personal constructor code here.
    }
     

Share This Page