The IGame Class is used to obtain general game information. Can be accessed using game

Importing the package

Link to importing-the-package

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.
import crafttweaker.game.IGame;

ZengetterWhat does it do?Return TypeUsage
Zengetter
biomes
What does it do?
Returns all registered biomes as list
Return Type
List<IBiomes>
Usage
game.biomes
Zengetter
blocks
What does it do?
Returns all registered blocks as list
Return Type
List<IBlockDefinition>
Usage
game.blocks
Zengetter
enchantments
What does it do?
Returns all registered enchantments as list
Return Type
List<IEnchantmentDefinition>
Usage
game.enchantments
Zengetter
entities
What does it do?
Returns all registered entities as list
Return Type
List<IEntityDefinition>
Usage
game.entities
Zengetter
items
What does it do?
Returns all registered items as list
Return Type
List<IItemDefinition>
Usage
game.items
Zengetter
liquids
What does it do?
Returns all registered liquids as list
Return Type
List<ILiquidDefinition>
Usage
game.liquids
Zengetter
potions
What does it do?
Returns all registered potions as list
Return Type
List<IPotion>
Usage
game.potions
ZenScript
Copy
//getEntity(EntityName)

//essentially the same
val sheep = game.getEntity("sheep");
val sheep1 = <entity:minecraft:sheep>;

Sets the localization.
All parameters are strings. game.setLocalization(key, value);
game.setLocalization(lang, key, value);

Returns a localized String
game.localize(key)
game.localize(key, lang)