mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-02-17 16:20:13 +08:00
Add files via upload
This commit is contained in:
parent
35e79d6961
commit
acac04f61b
20
demo_plugin.js
Normal file
20
demo_plugin.js
Normal 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')
|
||||
}
|
Loading…
Reference in New Issue
Block a user