-
Notifications
You must be signed in to change notification settings - Fork 2
Game Module
STBrian edited this page Nov 5, 2025
·
3 revisions
The main reason for creating a script is probably so that your code will run when a certain event has occurred within the game, so that you can change the state of the player or the world.
Imagine you want the player to be able to go faster when holding an item. Then you need to find out what item the player is holding and modify its speed.
For all those direct interactions with the game, there's the Game module.
In this module you will find the following submodules:
- LocalPlayer
- World
- Gamepad
- Items
- Recipes
Each one will allow you to interact with different aspects of the game.