Skip to content
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

Staff Mod 0.16.0 #39

Merged
merged 59 commits into from
Jul 10, 2024
Merged

Staff Mod 0.16.0 #39

merged 59 commits into from
Jul 10, 2024

Conversation

opekope2
Copy link
Owner

@opekope2 opekope2 commented Jul 9, 2024

  • Also calculate campfire staff flight to reduce packet spam
  • Enable using staffs in vegetation
  • Add cake staff
    • Throw cakes by left or right-clicking
  • Adjust anvil staff
    • Keep count and NBT when getting damaged
  • Adjust furnace staffs
    • Extend reach, so items can be smelted on the ground
    • Fix a crash on dedicated server
  • Adjust lightning rod staff
    • Spawn lightning bolt at block bottom instead of center
    • Also spawn when right-clicked on entity, if conditions are met
  • Adjust campfire staffs
    • Add 4 and 6 seconds of burning for normal & soul campfire staffs, respectively
    • Don't throw flames during /tick freeze
  • Crown of King Orange
    • Placeable as decoration
    • When worn, attacking with a staff will anger piglins&brutes at the target
  • Optimize impact TNT
  • Add some server-side staff item components instead of mixins
  • Fix sound issues on NeoForge with some staffs
  • Adjust thrown entity spawn position to be centered around crosshair instead of "on top of it"
  • Add game rule throwableCakes
    • When enabled, cakes can be thrown with right click, and dispensers will shoot out cakes
  • Remove avm_staff:staffs tag. Extend StaffItem instead
  • A bunch of refactoring

opekope2 added 30 commits July 4, 2024 00:48
This is how visuals work
Will be reworked later
Because a friend said it would be a good decoration
If attacking with a staff while wearing Crown of King Orange, all piglins and piglin brutes within a 16 block radius will aggro at the target
Right-clicking and attacking entity summons a lightning bolt, if conditions are met
Convert to interface to make changing easier
Now respect avm_staff:staff_renderer_override, when isActive is false
Store burn time in data component instead of entity mixin
Fix crash on dedicated server when used
Add block state override
Render missing model with no transformation
Only explode when colliding with an alive entity
Only explode on impact on server
Add explodeLater API to schedule explosion to next tick
opekope2 added 29 commits July 8, 2024 03:25
Spawn lower by half its height
Organize code
Replace addDefault extension method
Move NetworkHandler into packet companions
Inline InteractionHandler.kt
Extend StaffItem instead
@opekope2 opekope2 merged commit a236737 into main Jul 10, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant