#Change Default player attributes on startup EntityJS
15 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Paste version of StaminaFix.js from @normal halo
Bump
Entityjs attribute event uses the forge attribute modification event and there has been some mod incompatibilities with this event due to some loading order chaos. Instead you may need to modify the default attribute on loggedin/respawn server events js PlayerEvents.loggedIn(event => initPlayerAttributes(event.player)) PlayerEvents.respawned(event => initPlayerAttributes(event.player)) function initPlayerAttributes(player) { player.setAttributeBaseValue("betterparagliders:sprinting_stamina_reduction", 20) player.setAttributeBaseValue("betterparagliders:idle_stamina_regen", 60) player.setAttributeBaseValue("betterparagliders:one_handed_stamina_reduction", 5) player.setAttributeBaseValue("betterparagliders:two_handed_stamina_reduction", 5) }
let me know if this works for you, should essentially do the same thing as the forge event
Ah, I'll give it a try in a second. I did some testing and EntityJS does work, but for some reason it doesn't modify existing entities. When I had an alt account join for the first time it worked properly and persists after death, but me and a friend never got the new stats 🤔
that's very odd
Update that works so guess I'll just run with that and put a report in for EntityJS, thank you!
Ticket closed!
no need to put a report to entityjs, dev is already aware lol
Ah dang alright
dev being me
Ohhhhh lmao I didn't realize