Home Migration Guide Getting Started With Scripts Commands Examples
Generic JSON Recipes

Memes

This class was added by a mod with mod-id memeinabottle. So you need to have this mod installed if you want to use this feature.

Importing the class

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 at the very top of the file.

script.zs
import mods.memeinabottle.Memes;

Static Methods

Return Type: void

script.zs
Memes.addItemMeme(uniqueID as string, weight as int, stack as IItemStack) as void
ParameterTypeDescription
Parameter
uniqueID
Type
string
Description
No Description Provided
Parameter
weight
Type
int
Description
No Description Provided
Parameter
stack
Type
IItemStack
Description
No Description Provided

Return Type: void

script.zs
Memes.addItemMessageMeme(uniqueID as string, weight as int, stack as IItemStack, message as string) as void
ParameterTypeDescription
Parameter
uniqueID
Type
string
Description
No Description Provided
Parameter
weight
Type
int
Description
No Description Provided
Parameter
stack
Type
IItemStack
Description
No Description Provided
Parameter
message
Type
string
Description
No Description Provided

Return Type: void

script.zs
Memes.addItemSoundAndMessageMeme(uniqueID as string, weight as int, stack as IItemStack, sound as string, message as string) as void
ParameterTypeDescription
Parameter
uniqueID
Type
string
Description
No Description Provided
Parameter
weight
Type
int
Description
No Description Provided
Parameter
stack
Type
IItemStack
Description
No Description Provided
Parameter
sound
Type
string
Description
No Description Provided
Parameter
message
Type
string
Description
No Description Provided

Return Type: void

script.zs
Memes.addItemSoundMeme(uniqueID as string, weight as int, stack as IItemStack, sound as string) as void
ParameterTypeDescription
Parameter
uniqueID
Type
string
Description
No Description Provided
Parameter
weight
Type
int
Description
No Description Provided
Parameter
stack
Type
IItemStack
Description
No Description Provided
Parameter
sound
Type
string
Description
No Description Provided

Return Type: void

script.zs
Memes.disableMeme(meme as string) as void
ParameterTypeDescription
Parameter
meme
Type
string
Description
No Description Provided

Return Type: void

script.zs
Memes.disableMeme(memes as string[]) as void
ParameterTypeDescription
Parameter
memes
Type
string[]
Description
No Description Provided

Return Type: void

script.zs
Memes.enableMeme(meme as string) as void
ParameterTypeDescription
Parameter
meme
Type
string
Description
No Description Provided

Return Type: void

script.zs
Memes.enableMeme(memes as string[]) as void
ParameterTypeDescription
Parameter
memes
Type
string[]
Description
No Description Provided