Skip to content

Permet de recharger les hammers en aywenite#1256

Draft
AxenoDev wants to merge 5 commits intoServerOpenMC:masterfrom
AxenoDev:feat/hammer-recharge
Draft

Permet de recharger les hammers en aywenite#1256
AxenoDev wants to merge 5 commits intoServerOpenMC:masterfrom
AxenoDev:feat/hammer-recharge

Conversation

@AxenoDev
Copy link
Copy Markdown
Member

Petit résumé de la PR:

Étape nécessaire afin que la PR soit fini (si PR en draft)

  • Suivre le Code de Conduite
  • Enlever tous les imports non utilisés
  • Bien documenter la feature
  • Fournir un profileur (si besoin/demandé par un admin)
  • Avoir une milestone associée à la PR
  • Valider tout les checks
  • Tester et valider la feature/changement
  • Les Issues corrigée(s) en commun :

Decrivez vos changements

@AxenoDev AxenoDev self-assigned this Apr 28, 2026
@AxenoDev AxenoDev added the 📦 Feature Ajout d'une fonctionnalité label Apr 28, 2026
@iambibi
Copy link
Copy Markdown
Member

iambibi commented Apr 28, 2026

je merge

@iambibi
Copy link
Copy Markdown
Member

iambibi commented Apr 28, 2026

poisson d'avril

@AxenoDev
Copy link
Copy Markdown
Member Author

un peu en retard

@iambibi
Copy link
Copy Markdown
Member

iambibi commented Apr 28, 2026

Nn on est en avril

@AxenoDev
Copy link
Copy Markdown
Member Author

c'est vrai

@AxenoDev
Copy link
Copy Markdown
Member Author

mais c'est le 1er

Comment thread src/main/java/fr/openmc/core/registry/items/contents/Hammer.java

if (!isBreakable(targetType)) return;

setAywenite(tool, currentAywenite - 1);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Une utilisation du hammer = -1 aywenite? c'est un peu trop nerf la nn? fait -1 a une utilisation paire genre -1 a 0 2 4 6 8 10 ect.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm, j'suis pas forcement d'accord, car avec un hammer, par exemple avec le netherite tu casse en 3x3x3, pour 1 aywenite

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oui mais pour l'hammer en fer bon 😂

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apres je vois pas vraiment ce que tu veux dire ?
genre une utilisation = 0.5 d'aywenite use ?
si oui, c'est un peu trop relou a gerer
mais bon, l'aywenite n'est pas si rare que sa apres

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mais bon, l'aywenite n'est pas si rare que sa apres
Je suis d'acc mais faut qd meme doser, ptet demander aux joueurs de ce qu'ils en pensent (rylo ou louty par ex)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

genre une utilisation = 0.5 d'aywenite use ?

en gros mais faut pas le coder comme ça mdr

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est pas impossible ? Tu mets un compteur sur les pdc, blocks broken=0 par défaut tu fais une utilisation+1, dès que tu arrives à 2, tu mets a zéro et tu enlèves un d'aywenite?

j'avais mis une explication

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm

return meta.getPersistentDataContainer().getOrDefault(AYWENITE_HAMMER_KEY, PersistentDataType.INTEGER, 0);
}

public void setAywenite(ItemStack item, int value) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

si tu pourrais faire varier la durabilité de l'item en fonction du nombre d'aywenite dedans ça pourrait etre bien visuellement.
mais ça ferais que les hammers aient une durabilité infinie

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nop, trop complexe, j'avais deja essaye

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fin en soit c'est meme pas que c'est trop complexe, c'est que c'est un peu impossible

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est pas impossible ? Tu mets un compteur sur les pdc, blocks broken=0 par défaut tu fais une utilisation+1, dès que tu arrives à 2, tu mets a zéro et tu enlèves un d'aywenite?

Copy link
Copy Markdown
Member

@iambibi iambibi May 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ou au pire du pire tu mets une map qui se reset chaque démarrage mais c'est moins propre

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📦 Feature Ajout d'une fonctionnalité

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants