[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

    komes

    hmm im not quite sure what you are saying th plugin works for me. So im not sure why it isn't working for him..
     
  3. Offline

    narrowtux

    Try the newest version of craftbukkit, you'll see that it wont call the stupidly long constructor any more and will be generating more serious errors, which result in not loading plugins.
    simply change your constructor in com.FrinoFrapps.komes.PushBlock. PushBlock in line 33 from
    Code:
    public PushBlock(PluginLoader pluginLoader, Server instance,
    			PluginDescriptionFile desc, File folder, File plugin,
    			ClassLoader cLoader) {
    		super(pluginLoader, instance, desc, folder, plugin, cLoader);
    	}
    
    to
    Code:
    public PushBlock(){
    }
    
    this will fix his loading issue.
     
  4. Offline

    komes

    I have the newest version of craftbukkit and i am not getting any errors i also have already edited the long constructor thing. if anything re download the plugin i changed some stuff before and re uploaded it.
     
  5. Offline

    narrowtux

    oh sorry its still in your source code on github
     
  6. Offline

    komes

    yeah lol that is old.
     
  7. Offline

    supermaxman

    It doesnt seem to be working, it kills all my plugins, it gives me this:

    2011-03-02 17:53:07 [SEVERE] null (Is it up to date?)
    java.lang.NullPointerException
    at com.FripFrapps.komes.PushBlock.BlockPushConfig.loadBlockPos(BlockPushConfig.java:97)
    at com.FripFrapps.komes.PushBlock.PushBlockBlockListener.loadPos(PushBlockBlockListener.java:60)
    at com.FripFrapps.komes.PushBlock.PushBlock.onEnable(PushBlock.java:70)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:140)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:426)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:76)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:57)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:195)
    at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:189)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:77)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:173)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:362)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:347)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)

    Edit: i wend and re downloaded the newest version of bukkit, and now all my other plugins are dieing, but this is working.... :D

    Edit 2: ok, idk what happened, but now this isnt working, half my pluggins are down, and the terminal look changed, i need help!
     
  8. Offline

    komes


    ok did you download the newest one if so there is something you have to do... In your folder that holds the plugin there should be an new folder called pushblock. in there are 2 files sign pos and block config. open sign pos and just put this in there 12,12,12,true
     
  9. Offline

    RytoEX

    It seems that your onDisable message still outputs "Basic Disabled". Also, your JAR and your plugin directory are named differently (BlockPush vs PushBlock) - not really a big deal, but you might want to make them consistent. Lastly, your first post says to use both "/blockpush" and "/pushblock" to toggle the plugin, but only "/pushblock" is correct (though the console then says "BlockPush enabled"). I'd fork your github and change them myself, but it seems your github source is outdated, so I don't know if you've already made those changes.

    Other than that, the plugin works just fine. Keep up the good work!
     
  10. Offline

    komes

    sorry i will change that stuff.... :) As for the plugin and jar thing im prob not going to fix that right this moment. Thanks for catching that stuff!! And thanks for liking the plugin. Sorry for old git hub.. I will push that when my next update comes out.
     
  11. Offline

    TheDrWhat

    Is there permissions support for this? If not could you add it?
     
  12. Offline

    komes

    no there isn't and that is one thing i want to add but because the permissions i was going to use isn't being worked on anymore i don't really want to use it.
     
  13. Offline

    RytoEX

    Permissions 2.5.1 is the official continuation of Nijikokun's Permissions plugin. If you were talking about a different permissions plugin, then disregard this message.
     
  14. Offline

    komes

    oh i didn't know it got continued... Lol i will look into using it.
     
  15. Offline

    LolHens

    13:00:13 [SCHWERWIEGEND] Could not load plugins\BlockPush.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:56)
    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.io.FileNotFoundException: Jar does not contain plugin.yml
    ... 9 more

    Can you help me? I'm to silly to add a plugin.yml
     
  16. Offline

    komes

    lol re download block push.. i fixed this it was my mistake i forgot to put it in.
     
  17. Offline

    LolHens

    Thanks! :)

    Works really good! Really really COOL!!! The others, on my server loves it. [​IMG]
     
  18. Offline

    komes

    No problem and glad it works now!! I love it when people enjoy what i put out!!
     
  19. Offline

    wamilou

    Hi komes, I installed your plugins but it give me this message :
    It work for enable/disabled blockpush but not push block really :( !

    Can you help me ?
     
  20. Offline

    komes

    check your plugin folder for the pushblock folder then look at the files in there. In one if it is empty add 12,12,12,true and also make sure to check the config for the block types.
     
  21. Offline

    LolHens

    Could you update this cool plugin for 602? Otherwise I had to destroy the gate of my house :)
     

Share This Page