ManySmallTweaks

Floating Rails

Description: ManySmallTweaks allows Bukkit admins to enable several different tweaks on a per-world basis. The tweaks currently include: FloatingLadders, FloatingRails, FloatingHatch, ButtonsOnMoreBlocks, RedstoneIgnitesNetherrack, PercentColorSheep, PercentSaddledPigs, InfiniteCauldrons, ProjectileTriggers, PigsReproduceQuick, RedstoneIgnitesPumpkins, FloatingPaintings, MineCobwebsWithShears

Tweak details:

  • FloatingLadders: Prevents ladders from breaking when the block behind the ladder is broken. To build a floating ladder, place a ladder on a block as you normally would, then break the block behind the ladder. This tweak was broken in MC1.1, due to the removal of the ladder hitbox, but in MC1.2 it is working normally again.

  • FloatingRails: Prevents rails from breaking when the block supporting them is broken. To build floating rails, place a rail on a block as you normally would, then break the block supporting the rail. This tweak also allows rails to be placed on upper slabs and upside-down stairs. NOTE: Powered rails are a bit buggy at the moment. To place one on an upper slab or upside-down stair, place the powered rail on a normal block first, break the block, then place the slab or stair under the floating rail. This doesn't apply to regular and detector rails.

  • FloatingHatch: Prevents hatches from breaking when the block behind them is broken. To build a floating hatch, place a hatch against a block as you normally would, then break the block behind the hatch.

  • ButtonsOnMoreBlocks: Allows buttons and levers to be placed on blocks that normally don't support them, such as pistons, dispensers, note blocks, music boxes, etc. This tweak replaces my plugin called DispenserButton.

  • RedstoneIgnitesNetherrack: Causes Netherrack to ignite when Redstone current is applied. Also, Netherrack blocks will ignite when moved into a Redstone circuit by a piston.

  • PercentColorSheep: Causes sheep to spawn with random colors.
  • PercentSaddledPigs: Causes pigs to spawn with saddles. Replaces my plugin called PigSaddler.

  • InfiniteCauldrons: Once a cauldron is filled with water, it will never deplete. Buckets can also be filled from cauldrons.

  • ProjectileTriggers: Use projectiles, such as arrows, eggs, etc, to trigger levers and buttons. NOTE: Due to all the bugs associated with projectiles, I'm considering removing this tweak.

  • PigsReproduceQuick: Causes pigs to produce 1-3 babies when bred with wheat. This idea originally came from Reddit/r/Minecraft. Some Redditor made both client and server versions of this, but I thought a Bukkit based version might be useful to some folks.

  • RedstoneIgnitesPumpkins: Causes pumpkins to light up as a jack-o-lantern when redstone power is applied.

  • FloatingPaintings: Prevents paintings from breaking when the blocks behind them are broken. To build a floating painting, place a painting against a block as you normally would, then break the block behind it.

  • MineCobwebsWithShears: Allows cobwebs to be harvested with shears.

Installation:

Drop the ManySmallTweaks.jar file into your Bukkit plugins directory and restart/reload the server. A default config.yml file will be created in the plugins/ManySmallTweaks folder, with all tweaks disabled by default. Update the config.yml file and restart/reload your server to activate the tweaks.

Config File:

The default config.yml file is below. It has all tweaks disabled in the Defaults section and for the world named "change_me". To enable a tweak for all worlds, turn it on in the Defaults section. To enable it just for a single world, change "change_me" to the name of that world and enable the tweak in that section.

VerboseStartup: No

Defaults:
    FloatingLadders: No
    FloatingRails: No
    FloatingHatch: No
    ButtonsOnMoreBlocks: No
    ProjectileTriggers: No
    RedstoneIgnitesNetherrack: No
    InfiniteCauldrons: No
    PigsReproduceQuick: No
    PercentSaddledPigs: 0
    PercentColorSheep: 0
    RedstoneIgnitesPumpkins: No
    FloatingPaintings: No
    MineCobwebsWithShears: No

Worlds:
    change_me:
        FloatingLadders: No
        FloatingRails: No
        FloatingHatch: No
        ButtonsOnMoreBlocks: No
        ProjectileTriggers: No
        RedstoneIgnitesNetherrack: No
        InfiniteCauldrons: No
        PigsReproduceQuick: No
        PercentSaddledPigs: 0
        PercentColorSheep: 0
        RedstoneIgnitesPumpkins: No
        FloatingPaintings: No
        MineCobwebsWithShears: No


The following config demonstrates the following:

  • Multiple worlds can be specified in the Worlds section.
  • Default settings can be overridden by the setting for a specific world.
  • Not all tweaks need to be specified under the Defaults section or under the world sections. Unspecified tweaks are disabled.
VerboseStartup: No

Defaults:
    FloatingLadders: Yes
    FloatingRails: Yes
    FloatingHatch: Yes

Worlds:
    world:
        ButtonsOnMoreBlocks: Yes
        ProjectileTriggers: Yes
        PercentColorSheep: 50
    another_world:
        FloatingLadders: No
        FloatingRails: No
        FloatingHatch: No
        PercentSaddledPigs: 100

Also, the VerboseStartup option in the config.yml file causes the ManySmallTweaks plugin to print all of its config file parameters at startup. This can be useful for debugging the config file.


Coming Soon(ish):

  • Suggestions?

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of CommodoreAlpha CommodoreAlpha May 08, 2013 at 23:39 UTC - 1 like

    I've noticed that, for the features that involve blocks defying physics (rails on air, floating ladders, etc.), the plugin eats more CPU than I thought it would (not that much though). I'm just wondering, why does the plugin constantly need to use CPU for defying physics via listeners? (I don't know any code by the way.) I would think that once you place something down, it wouldn't need to be constantly "monitored" until it receives a block update, where the plugin will need to keep the block in place.

  • Avatar of Nistune1 Nistune1 May 05, 2013 at 16:37 UTC - 0 likes

    Everything is still working, but it seems that the issue with worldedit not breaking the ladders is still there. (On 1.5.2)

  • Avatar of JohnyK9 JohnyK9 Feb 18, 2013 at 02:36 UTC - 0 likes

    Everything works great! Thanks

  • Avatar of NeverSeenBefore NeverSeenBefore Feb 08, 2013 at 19:06 UTC - 0 likes
    2013-02-08 19:40:23 [SEVERE] Could not pass event PlayerInteractEvent to ManySmallTweaks v1.0.12
    org.bukkit.event.EventException
    	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:394)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
    	at org.bukkit.craftbukkit.v1_4_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:160)
    	at ir.a(ItemInWorldManager.java:526)
    	at iv.a(NetServerHandler.java:906)
    	at fk.a(Packet15Place.java:79)
    	at cg.b(TcpConnection.java:467)
    	at iv.d(NetServerHandler.java:220)
    	at iw.b(NetworkListenThread.java:57)
    	at ht.b(DedicatedServerListenThread.java:34)
    	at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:978)
    	at ho.r(DedicatedServer.java:301)
    	at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:854)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:741)
    	at fy.run(ThreadMinecraftServer.java:16)
    Caused by: java.lang.NullPointerException
    	at redsgreens.ManySmallTweaks.MSTListenerButtonsOnMoreBlocks.onPlayerInteract(MSTListenerButtonsOnMoreBlocks.java:108)
    	at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:601)
    	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:392)
    	... 16 more
    

    Only floating ladder and rails works, netherrack won't ignite, buttons won't attach.

    Using MCPC (BukkitForge) builds. If you need any more info I am willing to share :P

    Last edited Feb 08, 2013 by NeverSeenBefore

    I am new to java, if you have any plugin ideas, you can ask me to try to figure it out!

  • Avatar of xclucky xclucky Feb 03, 2013 at 22:36 UTC - 0 likes

    Is it possible to make a configuration to make all of the floating ladders below break when the uppermost floating ladder is broken?

  • Avatar of CommodoreAlpha CommodoreAlpha Feb 03, 2013 at 21:49 UTC - 0 likes

    @StanoMalek: Go

    It works perfectly fine for me.

  • Avatar of StanoMalek StanoMalek Feb 03, 2013 at 00:08 UTC - 0 likes

    don't work on last update CB. Update please.

    • SERVER: Greenus.orelsoft.cz:27794 Worlds: Creative, Games, Survival
    • Creative
    • SERVER: 93.91.250.137:27659 Worlds: PVP
    • PVP
  • Avatar of CommodoreAlpha CommodoreAlpha Jan 31, 2013 at 03:50 UTC - 0 likes

    So... Sorry for bothering you (I assume that you are very busy), but could you look at my ticket? I'm not impatient; I'd thought you would need reminding. That is if you read the comments, though. :P

  • Avatar of redsgreens redsgreens Jan 19, 2013 at 19:01 UTC - 0 likes

    I just uploaded ManySmallTweaks version 1.0.12 with the following changes:

    • Resolved item stacking issue with InfiniteCauldrons tweak reported by xclucky
    • Removed KeepSaddleOnPigDeath tweak because vanilla MC does this now
    • Modified ButtonsOnMoreBlocks tweak to use vanilla button/lever placing on dispensers and note blocks (sneak and right-click)
  • Avatar of Hockeymikey Hockeymikey Jan 18, 2013 at 01:02 UTC - 0 likes

    @tmtgr: Go

    Yes but too bad the dev doesn't look at the comments or tickets.

Facts

Date created
Jan 07, 2012
Categories
Last update
Feb 17, 2013
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
ManySmallTweaks
Downloads
17,120
Recent files

Authors