--Idle Allay
animations.allay["wing flap"]:play()
animations.allay["arm swung"]:play()
animations.allay["bob"]:play()
vanilla_model.HELMET:setVisible(false)
New Line
--Chat
nameplate.ALL:setText('{\"text\":\"Mythic\",\"color\":\"#00FFFF\"}')
New Line
--Allay Sound Toggle
New Line
ActionWheel = action_wheel:createPage("MAIN")
New Line
action_wheel:setPage(ActionWheel)
New Line
ActionWheel:newAction(1):color(0,255,255):item(redstone):title(Sounds):onLeftClick(
New Line
if playsounds then
New Line
New Line
function ()
New Line
playSounds = not playSounds
pings.toggleSound(playSounds)
New Line
end
New Line
)
function pings.toggleSound(value) playSounds = value end
New Line
end
New Line
New Line
New Line
models.allay.Bondy:setScale(.8, .8, .8)
New Line
pings.sound = function()
if math.random() < .3 then
sounds:playSound("entity.allay.ambient_with_item", player:getPos())
else
sounds:playSound("entity.allay.item_given", player:getPos())
end
end
if host:isHost() then
local nextSound = 0
events.TICK:register(function()
if nextSound <= 0 then
pings.sound()
nextSound = 70 + math.random() * 30
end
nextSound = nextSound - 1
end)
end
--Idle Allay
animations.allay["wing flap"]:play()
animations.allay["arm swung"]:play()
animations.allay["bob"]:play()
vanilla_model.HELMET:setVisible(false)
--Chat nameplate.ALL:setText('{\"text\":\"Mythic\",\"color\":\"#00FFFF\"}')
--Allay Sound Toggle
ActionWheel = action_wheel:createPage("MAIN")
action_wheel:setPage(ActionWheel)
ActionWheel:newAction(1):color(0,255,255):item(redstone):title(Sounds):onLeftClick(
function ()
if playsounds then playSounds = not playSounds end
pings.toggleSound(playSounds)
end
)
function pings.toggleSound(value)
playSounds = value
end
models.allay.Bondy:setScale(.8, .8, .8)
pings.sound = function()
if math.random() < .3 then
sounds:playSound("entity.allay.ambient_with_item", player:getPos())
else
sounds:playSound("entity.allay.item_given", player:getPos())
end
end
if host:isHost() then
local nextSound = 0
events.TICK:register(function()
if nextSound <= 0 then
pings.sound()
nextSound = 70 + math.random() * 30
end
nextSound = nextSound - 1
end
)
end
--Idle Allay
animations.allay["wing flap"]:play()
animations.allay["arm swung"]:play()
animations.allay["bob"]:play()
vanilla_model.HELMET:setVisible(false)
--Chat nameplate.ALL:setText('{\"text\":\"Mythic\",\"color\":\"#00FFFF\"}')
--Allay Sound Toggle
playSounds = true
ActionWheel = action_wheel:createPage("MAIN")
action_wheel:setPage(ActionWheel)
ActionWheel:newAction(1):color(0,255,255):item(redstone):title(Sounds):onLeftClick(
function ()
playSounds = not playSounds
pings.toggleSound(playSounds)
end
)
function pings.toggleSound(value)
playSounds = value
end
models.allay.Bondy:setScale(.8, .8, .8)
pings.sound = function()
if math.random() < .3 then
sounds:playSound("entity.allay.ambient_with_item", player:getPos())
else
sounds:playSound("entity.allay.item_given", player:getPos())
end
end
if host:isHost() then
local nextSound = 0
events.TICK:register(function()
if playSounds then
if nextSound <= 0 then
pings.sound()
nextSound = 70 + math.random() * 30
end
nextSound = nextSound - 1
end
end
)
end