Add files via upload

This commit is contained in:
JannisX11 2017-08-01 18:54:48 +02:00 committed by GitHub
parent 35e79d6961
commit acac04f61b

20
demo_plugin.js Normal file
View File

@ -0,0 +1,20 @@
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')
}