DispenserTweaks
DispenserTweaks allows you to customize the behavior of the Dispenser when dropping certain items and this plugin can also be used as an API for adding custom dispense behaviors.
This plugin uses internal Minecraft code and is only compatible with already implemented versions, currently 1.7.10, 1.8.8 and 1.9, if your server runs a different version, write a comment and I'll add support for it.
Commands
Version 1.1 supports commands to change dispenser settings for a single dispenser (and the config options have been removed). Just use one of the following commands as a player and then right click a dispenser to apply the setting.
- /dispenserTweaks reset - Resets all values.
- /dispenserTweaks velocityMultiplier [value] - Changes the velocity multiplier. If the value is 1.0, the default Vanilla velocity/behavior is used for example TNT just falls down.
- /dispenserTweaks tntFuseTicks [value] - How long (in ticks) it takes for the TNT, when shot out of the dispenser, to explode.
- /dispenserTweaks explosionStrength [value] - The explosion strength of TNT and Fireballs.
- /dispenserTweaks fieryExplosions [1 or 0] - If the explosion leaves fire behind.
Making a custom DispenseBehavior
DispenserTweaker.registerCustomDispenseBehavior(262, new ArrowDispenseBehavior());
The first argument is the item id which you want to register a custom behavior for, for example 262, the id of an arrow and the second argument is a class implementing DTDispenseBehavior or extending DTDispenseBehaviorItem or DTDispenseBehaviorProjectile.
The source code is available on the Github Repository.
I just tried the new version. Again its acting like the plugin doesnt even exist. when i type /pl it doesnt even show it.
@Kage0x3B
been getting married this month. ill check the new version ASAP. may be a week or so. I appreciate all the hard work.
@ariodsenuke
Does the new version work? Maybe reply in a pm so we don't spam the comments here :D
@Kage0x3B
for some reason this site deleted all of my PM's. Could you upload the new version here for me to DL and test?
@ariodsenuke
Then that is the problem :/ I can try adding support for that I guess. I'm going to send you a pm..
@Kage0x3B
I am using 1.7.10. I have a server running tekkit legends using KCouldron.
@ariodsenuke
Oh maybe I already now what the problem is.. Which exact Minecraft&Bukkit version is your server? Right now this plugin only support 1.7.10, 1.8.8 and 1.9 and if the server uses another version, it disables itself (I think without any message right now, which I should fix)
Just send me your version and I'll make the plugin compatible.
I put this plugin in my server. The first one V1.0 loaded but did nothing and created no config. This version doesnt even load. I type /pl and the plugin isnt listed.