You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
loads the texture local to the texture_packs folder
file can be either an image or a zip folder
window
Functions
window.capturePixels()
takes a screenshot of the current game
window.getResolution()
returns the internal resolution
this is not the same as the window size
window.getSize()
returns the size of the game window in pixels
window.setResolution(width, height)
sets the width and height of the internal resolution
window.setSize(width, height)
sets the width and height of the game window itself, in pixels
Version History
20221215
+ reformatted the markdown file itself
- removed "Things to Consider"
+ cleaned up the API a bit
- renamed hacks.womStyleEnable to hacks.womStyleHacks
- renamed inventory.setSelected to inventory.setSelectedTo
- renamed window.capture to window.capturePixels
+ added window.setSize
20220519
+ added a bunch of stuff
20220515
+ initial draft release
The text was updated successfully, but these errors were encountered:
bind
bind.lookupBinding(bindName)
true
if the bind is bound to input, otherwisefalse
bind.onBindActivated(uniqueIdentifier, callback(keybind))
keybind
is the bind that was last detectedblock
block.getTexture(blockID, face)
block.getSize(blockID)
{x = 16, y = 8, z = 16}
block.getShape(blockID)
shapeBlock = 0
andshapeCross = 1
block.getCollisionType(blockID)
block.setFogColor(blockID, red, green, blue)
block.setTexture(blockID, textureID, face)
face
paremeter is optional, by default the texture will apply to all facescamera
camera.setPitch(p)
camera.setYaw(y)
env
env.getCloudsColor()
env.getCloudsHeight()
env.getCloudsRate()
env.getFogColor()
env.getShadowColor()
env.getSkyColor()
env.getSunlightColor()
env.getWaterLevel()
env.getWeather()
sunny = 0
,rainy = 1
, orsnowy = 2
env.getWeatherRate()
env.setCloudsColor(red, green, blue)
env.setFogColor(red, green, blue)
env.setShadowColor(red, green, blue)
env.setSkyColor(red, green, blue)
env.setSunlightColor(red, green, blue)
env.setWaterLevel(level)
env.onVariableChanged(uniqueIdentifier, callback(envProperty))
envProperty
- the env var on the client that was actually changedgame
game.onBlockChanged(uniqueIdentifier, callback(block))
block
- the unique block in the world that was changedgame.think(uniqueIdentifier, callback)
hacks
hacks.breakableLiquids(bool)
hacks.cameraClipping(bool)
hacks.enable(bool)
hacks.fullBlockStepping(bool)
hacks.getSpeedMultiplier()
hacks.getJumpHeight()
hacks.noclipSlide(bool)
hacks.pushbackPlacing(bool)
hacks.setSpeedMultiplier(multiplier)
hacks.setJumpHeight(height)
hacks.womStyleHacks(bool)
inventory
inventory.getPage()
inventory.isSlotEmpty(slot)
inventory.moveCursorTo(slot)
inventory.selectPage(pageNumber)
inventoryPrimary = 0
orinventorySecondary = 1
inventory.setSelectedTo(blockID)
player
player.isInWorld()
player.isOnGround()
player.setSkin(filepath)
./skins/zombie.png
tablist
tablist.onTablistUpdated(uniqueIdentifier, callback(id, entry))
id
- the id of the tablistentry
- the entry of the id that was changedtexture
texture.load(filepath)
texture_packs
folderwindow
window.capturePixels()
window.getResolution()
window.getSize()
window.setResolution(width, height)
window.setSize(width, height)
Version History
The text was updated successfully, but these errors were encountered: