MoDispenserMechanics icon

MoDispenserMechanics -----

It places! It breaks! It attacks things, and it clicks things!




Updated to 1.21.4.
Added Animal Tempt Mechanic that causes temptable animals (such as cows, sheep, pigs etc) to walk to the dispenser, if it's triggered with one of their food items.
----------, Dec 8, 2024

Fixes:
  • Fix inconsistent attack knockback calculation
  • Fix attack speed calculation only resetting when the dispenser attacks something.
  • Fix missing metrics for entity interact mechanic
  • Fix possible class cast exception
----------, Nov 29, 2024

This version adds a new Entity Interact Mechanic to the plugin. Subsequently, it deprecates Animal Breed Mechanic as Entity Interact Mechanic replaces it.

Fixes:
  • Fix startup issue failing to replace the fake players item cooldown map.
  • Fix inaccuracy with attribute modifier calculations.

This version requires a config regeneration.
----------, Nov 28, 2024

Also improves equipment dispense handling for 1.21.3
----------, Nov 3, 2024

  • Fix ItemUseMechanic drinking bottles/eating food.
  • Fix ItemUseMechanic placing blocks in some conditions
For 1.20, 1.19 and 1.18 use the previous version.
----------, Aug 25, 2024

  • Fix possible recipe matching bug in auto-craft mechanic.
  • Fix tick freeze not working with block break mechanic
  • Refactored fakeplayer package out of util, as it doesn't really belong there at this point.
  • Added eggs to disabled item behaviors as due to how PlayerEggThrowEvent works it makes it possible to remove the entity. Meaning un-canceling the event may not be reliable.
  • Made TaskTicker non-static.
  • Improved various things.
----------, Jul 23, 2024

Update to 1.21
----------, Jun 24, 2024

  • Updated to 1.20.5
  • Fixed seeds not being able to breed chickens
  • Fixed some config settings not reloading properly
----------, Apr 29, 2024

  • Fix warning when looking up texture for dispenser-block player.
  • Improve shutdown error handling
----------, Mar 30, 2024

Fix bug where the plugin would try to add an already removed instance of a fake player to the world
----------, Feb 5, 2024

Fix armor not being dispensed onto players/entities.
Add torchflower seeds to AnimalBreedMechanic for Sniffers and torchflowers for bees.
Give fake player invisibility to hide it from plugins like dynmap.
----------, Jan 20, 2024

Fix armor items not being equipped by players/mobs when dispensed onto them.
----------, Jan 10, 2024

Update to 1.20.4 & improvements to packet handling.
----------, Dec 8, 2023

Fixed block break mechanic not working on interactable blocks
----------, Oct 19, 2023

This update is for 1.20.2, it will not work on 1.20.1.

This update changes configuration format so it will regenerate the config.
----------, Sep 25, 2023

  • Fixed fake player counting towards sleeping players
  • Fixed ItemUseMechanic using spawn-eggs on far away air blocks
----------, Jul 25, 2023

Fixed NoSuchMethodError in 1.20 after spigot update (build must be used with spigot 3822+ or paper-63+)
Fixed mining speed disparity with low hardness blocks
Fixed ItemUseMechanic dropping items when it shouldn't
Optimized AutoCraftMachanic
----------, Jul 5, 2023

Fixed mining speed disparity for low hardness blocks
----------, Jun 29, 2023

  • Fix eggs thrown by dispensers being blocked by land claim plugins
  • Don't allow things to change the game mode of the Dispenser-Block fake player.
----------, Jun 14, 2023

- Updated to 1.20
- Created 1.19.2 legacy version

No functionality changes.
----------, Jun 10, 2023

Minor update with some bugfixes.
  • Fix autocraft mechanic not updating neighboring comparators properly for double chests.
  • Fix potential NPE
  • Pre-merge result items before spawning to reduce cpu overhead
  • Update deprecated paper events
----------, Apr 27, 2023

Fixed fake player counting towards non-sleeping players
----------, Apr 4, 2023

This update contain a new mechanic, Auto Craft Mechanic (see README.md) various fixes and improvements and is now updated to 1.19.4 (with 1.18.2 port, see attached artifacts)

Changes:
  • Updated to 1.19.4 (with 1.18.2 legacy port, see attached artifacts)
  • Added Auto Craft Mechanic
  • Fixed interact range being longer than it should be
  • Improved drop item behavior for mechanics to mirror that of droppers/dispensers
  • Items expelled by Item Use Mechanic will now drop through solid blocks in front of the dispenser
  • Various performance improvements
  • Item Use Mechanic won't shear beehives by default (delegating to vanilla due to different item spawn locations breaking some farms)
  • Fixed snow layers not dropping items when broken by Tool Break Block Mechanic
  • Fixed water bottles not turning dirt into mud at close range
  • Fixed disparity with sweeping edge ramp up
An updated video will be coming soon demonstrating all of the new mechanics.

Enjoy.
----------, Mar 17, 2023

This is a minor default config update.
The previous version had a configuration that prevented water buckets from being dispensed unless they had something to dispense into.

For existing users simply set item use mechanic.prevent vanilla behavior for to an empty list.
Either that or you could download this version and regenerate your config.
----------, Feb 21, 2023

Hi all, another update for you.
  • Added "disabled entities" option to weapon attack mechanic
  • Added "respect item attack speed" option for weapon attack mechanic
  • Added "sneak when using on" option for item use mechanic
  • Added "prevent vanilla behavior for" for item use mechanic
  • Added "fake player events" option to general, allowing plugins to handle events generated by the fake player
  • Added ability to use tags (ie #minecraft:mineable/pickaxe) for all config fields
  • Fixed possible issue if plugin is unloaded, block state changes and plugin is loaded again for tool break block mechanic
  • Improved efficiency of API
  • Altered default config values
Due to the configuration changes, it is STRONGLY recommended that you regenerate your configuration.

Enjoy.
----------, Feb 19, 2023

Sorry about this, but I posted the wrong download link in releases. Please re-download it.
----------, Jan 20, 2023

This update reverts the change made to water buckets as it breaks some vanilla contraptions and has other related issues and inconsistencies (sorry)
----------, Jan 18, 2023

In the last update a bug was introduces where ItemUseMechanic would not place buckets in front of the dispenser even when there are no blocks to place it against/interact with.

It also carries various improvements to dispense events/api and optimizations.
----------, Jan 17, 2023

This update contains mainly bugfixes and performance improvements with one advanced config addition.

Changes:
  • Add a no-op on failure option (default false) for break block mechanic fixing item use mechanic consuming the action and causing the tool break block mechanic to break.
  • item use mechanic will no longer drop buckets that are full/empty if the target block cannot be filled/emptied
  • Fix fire aspect being applied even if the damage event was cancelled for weapon attack mechanic
  • Internal redesign of the fake player used for interacting such as by moving it to the world spawnpoint instead of 0,32000,0 (preventing sync chunk loads*)
  • Better internal error/exception handling
Have fun.
----------, Jan 14, 2023

Updated to 1.19.3
No other changes.

Merry Christmas.
----------, Dec 10, 2022


Main fixes:
  • weapon attack mechanic - prioritize the closest entity first rather than random
  • weapon attack mechanic - use correct knockback offsets
  • weapon attack mechanic - do not sweep non-living entities
  • weapon attack mechanic - better event handling
  • weapon attack mechanic - do not attack non-attackable entities (such as items)
  • weapon attack mechanic - add list of disabled weapons
  • block break mechanic - add list of disabled tools
  • block break mechanic - add list of disabled blocks
  • interact mechanic - add interact range modifier
Other:
  • mark fake player as a non-real player (paper)
  • prevent fake player from getting bad omen (among other effects)
  • use getSlot rather than ordinal for EventPriority
----------, Nov 27, 2022

This hotfix fixes a bug where event priority wouldn't be enforced for superclasses of the listener.
Meaning that some plugins might be able to cancel interact events of the fake player.
----------, Oct 8, 2022

Fixes an Item Use Mechanic dupe bug for some specific items
----------, Oct 7, 2022

Fixed incompatibility with Bukkit/Spigot.
Improved reload handling.
----------, Oct 6, 2022

This update adds an Item Use Mechanic that will use an item as if you clicked it!

Enjoy!
----------, Oct 2, 2022

Summary:
This update fixes blocks (such as ores) not dropping exp when mined and improves placement orientation of blocks (allowing double slab placement)

Changes:
  • Fix block breakers not dropping exp from blocks (such as ores)
  • Improve orientation of blocks when placed, allowing for double slab placement etc. Blocks will be placed in the direction of the dispenser
  • Fix small delay before a block breaker activates. It will now activate the moment it is powered rather than one tick later.
Enjoy!
----------, Sep 16, 2022

This update fixes an error where placing a slab onto another slab of the same type causes a StackOveflow
----------, Aug 17, 2022

Update to 1.19.1, Animal Breed Mechanic and Block-breaker tool auto-feed

Hello everyone.
  • Add animal breed mechanic that breeds animals in front of the dispenser.
  • Add block-breaker tool auto-feed where if a tool breaks the next tool is used rather than requiring the dispenser to be re-activated.
----------, Jul 28, 2022

  • BlockBreakMechanic will now switch to the next valid tool when one breaks or is dropped.
  • Optimizations and improvements
----------, Jul 3, 2022

This update rewrites much of Weapon Attack Mechanics' damage handling as well as improves it's sound by playing Attack sounds when the dispenser attacks entities.

It also includes some performance improvements, optimizations and minor bugfixes.
----------, Jun 24, 2022

Fix non-sword weapons attacking every entity in front of the dispenser
----------, Jun 18, 2022

This update supports 1.19 spigot & paper as well as some config additions.

Changes:
  • Added support for disabling placement of specific blocks
  • Fixed bug where WeaponAttackMechanic would get advancements for killing things :^)
  • Issue on spigot where ToolBreakBlockMechanic would fail to restart after chunks were reloaded.
Have fun!

https://gitlab.com/TauCu/modispensermechanics/-/releases
----------, Jun 9, 2022

1.1.0 update

+ Added config.yml
+ Reload command /mdmreload

+ Sweeping edge setting for Weapon Mechanic
+ Speed multiplier setting for Break Mechanic
+ Ability to enable and disable mechanics
+ Tool durability handling options

! Fixed phantom block break progress
! Fixed block breaker clicking after a block update when its last tool broke

- Cleaned up code
----------, Jun 4, 2022

Hello all, this update fixes a few minor bugs and incompatibilities.
  • Fixed WeaponAttackMechanic not displaying warning particles when it fails to hit something.
  • Fixed other plugins' handling the damage from WeaponAttackMechanic and cancelling it.
Enjoy!
----------, May 24, 2022

Fix BeeNests not dropping with Bees in them when SilkTouched
----------, Apr 9, 2022

Resource Information
Author:
----------
Total Downloads: 6,400
First Release: Apr 8, 2022
Last Update: Dec 8, 2024
Category: ---------------
All-Time Rating:
18 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings