🤠
cedoscript
  • Introduction
  • Documentation
    • Packets
    • Setting Command
    • Java Imports
    • Examples
      • Creating a Pack
      • Custom Block Animation
      • Bhop
      • Setting Creation
      • Post Notification
      • Gradient Round Rectangle
      • Applying a gradient
      • Simulate a command
  • api
    • Events
    • Settings
    • Objects
      • EntityLivingBase
      • ItemStack
      • Player Abilities
      • Color
      • TimerUtil
      • Continual Animation
      • ShaderUtil
      • FrameBuffer
      • Rainbow
      • Drag
      • Pair
      • Module
  • Bindings
    • Client
    • Player
    • Packet
    • Action
    • Facing
    • Potion
    • Notification
    • Render
    • Stats
    • Font
    • User
    • World
Powered by GitBook
On this page

Was this helpful?

  1. Documentation
  2. Examples

Setting Creation

Example usage of settings (note that you can put objects directly as parameters)

var script = initScript({
    name: "Settings Example",
    description: "example of all settings",
    author: "life"
})

var modes = ["one", "two"]

var accent = color({
    red: 255,
    green: 70,
    blue: 0
})

var num = script.numberSetting("Number Setting name", 1, 1, 100, 1)

var string = script.stringSetting("String Setting name", "hello world")

var bool = script.booleanSetting("Boolean Setting name", false)

var mode = script.modeSetting("Mode Setting name", "one", modes)

var mode2 = script.modeSetting("Mode Setting2 name", "one", "one", "two")

var color = script.colorSetting("Color Setting name", accent)

var color2 = script.colorSetting("Color Setting2 name", 
color({ red: 255, green: 70, blue: 0 }))
PreviousBhopNextPost Notification

Last updated 2 years ago

Was this helpful?