Skip to content

Implemented sound when equipping armor #6303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 25, 2024

Conversation

ipad54
Copy link
Member

@ipad54 ipad54 commented Mar 24, 2024

Introduction

This PR takes up #5416 due to his author inactivity. I have rewritten the PR to use the ArmorMaterial and fixed the behaviour: At present, in vanilla, armor sounds are also played when equipping the armor via inventory, dispenser, commands.

Relevant issues

Closes #5167

Changes

API changes

Added getEquipSound() : ?Sound to ArmorMaterial
Added the new following sound classes: ArmorEquipChainSound, ArmorEquipDiamondSound, ArmorEquipGenericSound, ArmorEquipGoldSound, ArmorEquipIronSound, ArmorEquipLeatherSound, ArmorEquipNetheriteSound.

I tested this PR by doing the following:

@ShockedPlot7560 ShockedPlot7560 added Category: Gameplay Related to Minecraft gameplay experience Type: Enhancement Contributes features or other improvements to PocketMine-MP labels Mar 24, 2024
@dktapps dktapps merged commit f799cfa into pmmp:minor-next Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Gameplay Related to Minecraft gameplay experience Type: Enhancement Contributes features or other improvements to PocketMine-MP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants