wheels!!
This commit is contained in:
parent
73735995b7
commit
d9297245a7
3 changed files with 33 additions and 0 deletions
14
scripts/wheels/toggles.lua
Normal file
14
scripts/wheels/toggles.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
local toggles = action_wheel:newPage()
|
||||
|
||||
function pings.toggleArmor(state)
|
||||
vanilla_model.ARMOR:setVisible(state)
|
||||
end
|
||||
|
||||
local toggle_armor = toggles:newAction()
|
||||
:setToggled(false)
|
||||
:setOnToggle(pings.toggleArmor)
|
||||
:title("toggle armor")
|
||||
:item("red_wool")
|
||||
:toggleItem("green_wool")
|
||||
|
||||
return toggles
|
Loading…
Add table
Add a link
Reference in a new issue