#Change Default player attributes on startup EntityJS

15 messages · Page 1 of 1 (latest)

normal halo
#

I have this script to change some modded attributes for players but for some reason it doesn't work. I've seen another person used minecraft:player and it apparently did change the default attributes but nothing seems to be working for me. Did I do something wrong?

neat tartanBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

steady heathBOT
#

Paste version of StaminaFix.js from @normal halo

normal halo
#

Bump

indigo coral
#

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

normal halo
indigo coral
#

that's very odd

normal halo
indigo coral
indigo coral
#

dev being me

normal halo
indigo coral
#

and theres not much i can do about forge's event not working either at this point, i might need to do some custom system maybe though if you got it working then good

#

alr well ill reclose this ticket