mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
20 lines
533 B
JavaScript
20 lines
533 B
JavaScript
var plugin_data = {
|
|
id: 'my_plugin_id',
|
|
title: 'My Plugin',
|
|
icon: 'style', //Material icon name
|
|
author: 'MyName',
|
|
description: 'My Description',
|
|
version: '1.0.0', //Plugin version
|
|
variant: 'both' // 'both', 'web', 'desktop'
|
|
}
|
|
|
|
//Adds an entry to the plugin menu
|
|
Blockbench.addMenuEntry('Label', 'icon', function() {
|
|
Blockbench.showMessage('Hello World', 'center')
|
|
})
|
|
|
|
//Called when the user uninstalls the plugin
|
|
onUninstall = function() {
|
|
//Removes the menu entry
|
|
Blockbench.removeMenuEntry('Label')
|
|
} |