Skip to content
This repository was archived by the owner on Apr 9, 2026. It is now read-only.

feat: add on_player_death hook, math/atan2, player/get_gamemode#9

Merged
tickwarden merged 1 commit into
mainfrom
feat/add-death-hook-atan2-gamemode
Apr 3, 2026
Merged

feat: add on_player_death hook, math/atan2, player/get_gamemode#9
tickwarden merged 1 commit into
mainfrom
feat/add-death-hook-atan2-gamemode

Conversation

@asn44nb
Copy link
Copy Markdown
Collaborator

@asn44nb asn44nb commented Apr 3, 2026

  • hook/on_player_death: advancement (entity_killed_player) + reward fn fires 'player_death' event through existing hook/internal/fire system
  • math/atan2: integer atan2 via octant decomposition + lookup table result in degrees x1000, consistent with sin/cos scale
  • player/get_gamemode: returns gamemode as int (0-3) and name string consistent with get_health / get_food pattern

📝 Değişiklik Özeti

🛠 Teknik Detaylar

  • Kapsam: Teknik Altyapı / Mantık Katmanı / Modül Güncellemesi
  • Yöntem: Tick-Safe mimari ve Makro ($) kullanımı kontrol edildi mi?

✅ Kontrol Listesi

  • Kodlar mcfunction standartlarına uygun yazıldı.
  • Gereksiz "Entity Polling" yerine event-driven tetikleyiciler kullanıldı.
  • JSON dosyalarının sözdizimi (Syntax) doğrulandı.
  • GitHub Actions (CI/CD) testlerinden başarıyla geçti.
  • Dokümantasyon/README güncellendi.

- hook/on_player_death: advancement (entity_killed_player) + reward fn
  fires 'player_death' event through existing hook/internal/fire system
- math/atan2: integer atan2 via octant decomposition + lookup table
  result in degrees x1000, consistent with sin/cos scale
- player/get_gamemode: returns gamemode as int (0-3) and name string
  consistent with get_health / get_food pattern
@tickwarden tickwarden force-pushed the feat/add-death-hook-atan2-gamemode branch from b944c8e to 524c1f9 Compare April 3, 2026 05:51
@tickwarden tickwarden merged commit 0f6a96a into main Apr 3, 2026
8 of 10 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants