generated from CleanroomMC/TemplateDevEnv
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,54 @@ | ||
{ | ||
"Check is mod loaded": { | ||
"Check is mod loaded preprocessor": { | ||
"scope": "groovy", | ||
"prefix": "is mod loaded", | ||
"description": "Check if the mod is loaded", | ||
"body": [ | ||
"if (!isLoaded('${1:modname}')) return", | ||
"println 'mod \\'${1:modname}\\' detected, running script'" | ||
"// MODS_LOADED: ${1:modname}" | ||
] | ||
}, | ||
"Check for Packmode": { | ||
"scope": "groovy", | ||
"prefix": "is packmode", | ||
"description": "Check if the mod is loaded", | ||
"body": [ | ||
"// PACKMODE: ${1:packmode}" | ||
] | ||
}, | ||
"SideOnly annotation": { | ||
"scope": "groovy", | ||
"prefix": "client only", | ||
"description": "@SideOnly(Side.CLIENT)", | ||
"body": [ | ||
"@SideOnly(Side.CLIENT)" | ||
] | ||
}, | ||
"Listen for event": { | ||
"scope": "groovy", | ||
"prefix": "listen forge event", | ||
"description": "Listen for a forge event", | ||
"body": [ | ||
"eventManager.listen { ${1:eventtype} event ->", | ||
"", | ||
"event_manager.listen { ${1:eventtype} event ->", | ||
"\t$2", | ||
"}" | ||
] | ||
}, | ||
"Shaped crafting recipe": { | ||
"scope": "groovy", | ||
"prefix": "shaped crafting", | ||
"description": "Create a shaped crafting recipe", | ||
"body": [ | ||
"crafting.addShaped('${1:recipe_name}', item('${2:output}', [", | ||
"\t[$3]", | ||
"])" | ||
] | ||
}, | ||
"Shapeless crafting recipe": { | ||
"scope": "groovy", | ||
"prefix": "shapeless crafting", | ||
"description": "Create a shapeless crafting recipe", | ||
"body": [ | ||
"crafting.addShapeless('${1:recipe_name}', item('${2:output}', [$3]))" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters