44 lines
1.6 KiB
Lua
44 lines
1.6 KiB
Lua
-- Auto generated script file --
|
|
|
|
--hide vanilla everything models
|
|
vanilla_model.PLAYER:setVisible(false)
|
|
vanilla_model.ARMOR:setVisible(false)
|
|
vanilla_model.HELD_ITEMS:setVisible(true)
|
|
vanilla_model.CAPE:setVisible(false)
|
|
vanilla_model.ELYTRA:setVisible(false)
|
|
|
|
--entity init event, used for when the avatar entity is loaded for the first time
|
|
function events.entity_init()
|
|
--player functions goes here
|
|
end
|
|
|
|
--tick event, called 20 times per second
|
|
function events.tick()
|
|
--code goes here
|
|
end
|
|
|
|
--render event, called every time your avatar is rendered
|
|
--it have two arguments, "delta" and "context"
|
|
--"delta" is the percentage between the last and the next tick (as a decimal value, 0.0 to 1.0)
|
|
--"context" is a string that tells from where this render event was called (the paperdoll, gui, player render, first person)
|
|
function events.render(delta, context)
|
|
--code goes here
|
|
end
|
|
|
|
require("GSAnimBlend")
|
|
local GSBlend = require("GSAnimBlend")
|
|
|
|
|
|
|
|
animations.player_model.jumpup:setBlendCurve("easeOutElastic")
|
|
animations.player_model.jumpup:setBlendTime(20)
|
|
animations.player_model.jumpdown:setBlendCurve("easeOutElastic")
|
|
animations.player_model.jumpdown:setBlendTime(20)
|
|
animations.player_model.walkjumpup:setBlendCurve("easeOutElastic")
|
|
animations.player_model.walkjumpup:setBlendTime(20)
|
|
animations.player_model.walkjumpdown:setBlendCurve("easeOutElastic")
|
|
animations.player_model.walkjumpdown:setBlendTime(20)
|
|
animations.player_model.sprintjumpup:setBlendCurve("easeOutElastic")
|
|
animations.player_model.sprintjumpup:setBlendTime(20)
|
|
animations.player_model.sprintjumpdown:setBlendCurve("easeOutElastic")
|
|
animations.player_model.sprintjumpdown:setBlendTime(20)
|