Closed astro-angelfish closed 2 years ago
This is not a bug but a misconfiguration of the default grenade item.
I forgot to add the item_hit_entity
property.
items:
grenade:
display_name: display-name-grenade
permission: grenade
resource:
material: SNOWBALL
generate: true
textures:
- item/grenade.png
events:
item_throw:
play_effect:
name: SMOKE
item_hit_ground:
explosion:
power: 2
fire: false
break_blocks: true
item_hit_entity:
explosion:
power: 2
fire: false
break_blocks: true
Terms
Discord tag (optional)
No response
What happened?
It seems that the plugin does only checks
getHitBlock()
but doesn't checkgetHitEntity()
when theorg.bukkit.event.entity.ProjectileHitEvent
occurs. This could not make the grenades explodes when they hit entities. Maybe you should also check the hit entity to decide whether the grenades should explode.Steps to reproduce the issue
Server version
Checking version, please wait... This server is running Paper version git-Paper-77 (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT) (Git: 5ad1d9a)\nYou are 20 version(s) behind\nDownload the new version at: https://papermc.io/downloads\nPrevious version: git-Paper-"8c189d0" (MC: 1.18.1)
ItemsAdder Version
ItemsAdder version 2.5.0-beta Customized Minecraft without client mods! Website: devs.beer Author: LoneDev
ProtocolLib Version
ProtocolLib version 4.8.0-SNAPSHOT-b539 Provides read/write access to the Minecraft protocol. Authors: dmulloy2 and comphenix
LoneLibs Version
LoneLibs version 1.0.16b Collection of libs used by my plugins Authors: LoneDev and others
LightAPI Version (optional)
This server is not running any plugin by that name. Use /plugins to get a list of plugins.
LibsDisguises Version (optional)
This server is not running any plugin by that name. Use /plugins to get a list of plugins.
FULL server log
Well the server has sensitive information and seems not to be related to the bug so we cannot provide the server log.
Error (optional)
No response
ItemsAdder config.yml
Problematic items yml configuration file (optional)
No response
Other files, you can drag and drop them here to upload. (optional)
No response
Screenshots/Videos (you can drag and drop files or paste links)
No response