BG-Software-LLC / WildStacker

Stacked drops, stacked entities, stacked blocks and stacked spawners in one plugin!
https://bg-software.com/wildstacker/
GNU General Public License v3.0
90 stars 36 forks source link

Stacked Entities Dropping Nothing #936

Closed bmac20 closed 3 months ago

bmac20 commented 3 months ago

Minecraft's Version

Spigot 1.20.6

Plugin's Version

2024.1

Describe the bug

Stacked mobs not dropping any loot or exp.

[WildStacker] Task #6767 for WildStacker v2024.1 generated an exception java.lang.NoSuchMethodError: 'void org.bukkit.event.entity.EntityDeathEvent.(org.bukkit.entity.LivingEntity, java.util.List, int)' at com.bgsoftware.wildstacker.utils.entity.logic.DeathSimulation.lambda$null$3(DeathSimulation.java:160) ~[?:?] at org.bukkit.craftbukkit.v1_20_R4.scheduler.CraftTask.run(CraftTask.java:82) ~[spigot-1.20.6-R0.1-SNAPSHOT.jar:4195-Spigot-fcd94e2-f057cf4] at org.bukkit.craftbukkit.v1_20_R4.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:415) ~[spigot-1.20.6-R0.1-SNAPSHOT.jar:4195-Spigot-fcd94e2-f057cf4] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1397) ~[spigot-1.20.6-R0.1-SNAPSHOT.jar:4195-Spigot-fcd94e2-f057cf4] at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:402) ~[spigot-1.20.6-R0.1-SNAPSHOT.jar:4195-Spigot-fcd94e2-f057cf4] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1293) ~[spigot-1.20.6-R0.1-SNAPSHOT.jar:4195-Spigot-fcd94e2-f057cf4] at net.minecraft.server.MinecraftServer.y(MinecraftServer.java:1064) ~[spigot-1.20.6-R0.1-SNAPSHOT.jar:4195-Spigot-fcd94e2-f057cf4] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:311) ~[spigot-1.20.6-R0.1-SNAPSHOT.jar:4195-Spigot-fcd94e2-f057cf4] at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]

To Reproduce

Have SpawnerMeta and WildStacker installed. I also had MCMMO installed, which I removed after reading old Issues with this plugin. Still doesn't work

Additional Information

###############################################

WildStacker Configuration

Developed by Ome_R

###############################################

How should the item that is given to players by the give command be called?

{0} represents stack size

{1} represents entity/block type

{2} represents item type (Egg / Spawner / Barrel)

give-item-name: '&6x{0} &f&o{1} {2}'

The inspect tool of the plugin.

When clicking an item, entity, barrel or spawner, all the information

about the object will be displayed to the player.

inspect-tool: type: STICK name: '&6Inspect Tool' lore:

The simulate tool of the plugin.

You can check if two objects can stack together using this tool.

simulate-tool: type: STICK name: '&6Simulate Tool' lore:

Settings related to database.

database:

Should data of worlds that no longer exist be deleted?

delete-invalid-worlds: false

Settings related to the automatic kill all

kill-task:

How much time should be passed between auto-killing? (in seconds)

If you wish to disable the auto-killing task, set the interval to 0.

interval: 0

Should the kill task remove stacked entities?

stacked-entities: true

Should the kill task remove unstacked entities?

unstacked-entities: true

Should the kill task remove stacked items?

stacked-items: true

Should the kill task remove unstacked items?

unstacked-items: true

When enabled, the plugin will remove all stacked-entities when clearlagg removes items & entities.

This feature will work if the interval is set to 0 - these are two different features!

sync-clear-lagg: true

Set a command for getting the next time until kill task will happen.

You can split multiple commands using ",".

You can set it to '' in order to disable this feature.

time-command: stacker timeleft

All settings related to the kill-all task of entities.

kill-entities:

A list of entities that will be cleared.

# EntityType list: https://bg-software.com/entities/
# SpawnReason list: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html
# You can combine both filters using "ENTITY_TYPE:SPAWN_REASON"
# If you want all entities to be killed, set this to []
whitelist: []
# A list of entities that won't be cleared.
# EntityType list: https://bg-software.com/entities/
# SpawnReason list: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html
# You can combine both filters using "ENTITY_TYPE:SPAWN_REASON"
# If you wish to disable blacklisted entities, use "blacklist: []"
blacklist: []
# A list of worlds that entities will be cleared inside.
# If you want all worlds, set this to []
worlds: []

All settings related to the kill-all task of entities.

kill-items:

A list of items that will be cleared.

# Material list: https://bg-software.com/materials/
# If you want all items to be killed, set this to []
whitelist: []
# A list of items that won't be cleared.
# Material list: https://bg-software.com/materials/
# If you wish to disable blacklisted items, use "blacklist: []"
blacklist: []
# A list of worlds that items will be cleared inside.
# If you want all worlds, set this to []
worlds: []

Here you can configurable all features related to stacked items.

items:

Should items get stacked on the server?

enabled: true

How many blocks from the item should be checked for other items to stack into?

Material list: https://bg-software.com/materials/

Make sure you follow the "TYPE" and "TYPE:DATA" formats.

merge-radius: all: 5

Custom display-name for the items on ground.

If you don't want a display-name, use "custom-name: ''"

{0} represents stack amount

{1} represents display name

{2} represents display name in upper case

custom-name: '&6x{0} &f&o{1}'

Blacklisted items are items that won't get stacked.

Material list: https://bg-software.com/materials/

Make sure you follow the "TYPE" and "TYPE:DATA" formats.

If you wish to disable blacklisted items, use "blacklist: []"

blacklist:

Here you can configurable all features related to stacked entities.

entities:

Should entities get stacked on the server?

enabled: true

How many blocks from the entity should be checked for other entities to stack into?

EntityType list: https://bg-software.com/entities/

SpawnReason list: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html

You can combine both filters using "ENTITY_TYPE:SPAWN_REASON"

merge-radius: all: 10

Custom display-name for the entities.

If you don't want a display-name, use "custom-name: ''"

{0} represents stack amount

{1} represents entity type

{2} represents entity type in upper case

{3} represents the upgrade's display name

custom-name: '&6x{0} &f&o{1}{3}'

Blacklisted entities are entities that won't get stacked.

EntityType list: https://bg-software.com/entities/

SpawnReason list: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html

You can combine both filters using "ENTITY_TYPE:SPAWN_REASON"

If you wish to disable blacklisted entities, use "blacklist: []"

blacklist:

Here you can configurable all features related to stacked spawners.

spawners:

Should spawners get stacked on the server?

enabled: false

How many blocks from the spawner should be checked for other spawners to stack into?

EntityType list: https://bg-software.com/entities/

merge-radius: all: 1

Custom hologram for the spawners.

Holograms will be displayed only if one of the following plugins is enabled: HolographicDisplay, Holograms, Arconix

If you don't want a hologram, use "custom-name: ''"

{0} represents stack amount

{1} represents entity type

{2} represents entity type in upper case

{3} represents the upgrade's display name

custom-name: '&6x{0} &f&o{1}{3}'

Blacklisted spawners are spawners that won't get stacked.

EntityType list: https://bg-software.com/entities/

If you wish to disable blacklisted spawners, use "blacklist: []"

blacklist:

Here you can configurable all features related to stacked barrels (aka stacked blocks).

barrels:

Should blocks get stacked into barrels on the server?

enabled: false

How many blocks from the barrel should be checked for other blocks to stack into?

Material list: https://bg-software.com/materials/

Make sure you follow the "TYPE" and "TYPE:DATA" formats.

merge-radius: all: 1

Custom hologram for the barrels.

Holograms will be displayed only if one of the following plugins is enabled: HolographicDisplay, Holograms, Arconix

If you don't want a hologram, use "custom-name: ''"

{0} represents stack amount

{1} represents barrel type

{2} represents barrel type in upper case

custom-name: '&6x{0} &f&o{1}'

Blacklisted barrels are barrels that won't get stacked.

Material list: https://bg-software.com/materials/

Make sure you follow the "TYPE" and "TYPE:DATA" formats.

If you wish to disable blacklisted barrels, use "blacklist: []"

blacklist: []

Whitelisted blocks are blocks that will get stacked.

Material list: https://bg-software.com/materials/

Make sure you follow the "TYPE" and "TYPE:DATA" formats.

If you wish to disable whitelisted barrels, use "whitelist: []"

whitelist:

Here you can configurable all features related to stacked buckets

buckets:

Should buckets get stacked on the server?

enabled: false

A list of blacklisted bucket names.

name-blacklist:

Here you can configurable all features related to stacked stews

stews:

Should stews get stacked on the server?

enabled: true

The new max-stack size for stews. Must be a number between 1 and 64.

max-stack: 16

OmerBenGera commented 3 months ago

Update to latest dev build, this has been fixed already