Added copy-to-clipboard, and fixed bug in refuel.
This commit is contained in:
parent
f0681b77bd
commit
a3294c3c1a
|
@ -8,6 +8,9 @@
|
||||||
"name": "movescript-docs",
|
"name": "movescript-docs",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"vuepress-plugin-code-copy": "^1.0.6"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vuepress": "^1.5.3"
|
"vuepress": "^1.5.3"
|
||||||
}
|
}
|
||||||
|
@ -14222,6 +14225,12 @@
|
||||||
"object.getownpropertydescriptors": "^2.0.3"
|
"object.getownpropertydescriptors": "^2.0.3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/vuepress-plugin-code-copy": {
|
||||||
|
"version": "1.0.6",
|
||||||
|
"resolved": "http://192.168.88.248:8081/repository/npm-public/vuepress-plugin-code-copy/-/vuepress-plugin-code-copy-1.0.6.tgz",
|
||||||
|
"integrity": "sha512-FiqwMtlb4rEsOI56O6sSkekcd3SlESxbkR2IaTIQxsMOMoalKfW5R9WlR1Pjm10v6jmU661Ex8MR11k9IzrNUg==",
|
||||||
|
"license": "GPL-3.0-or-later"
|
||||||
|
},
|
||||||
"node_modules/vuepress-plugin-container": {
|
"node_modules/vuepress-plugin-container": {
|
||||||
"version": "2.1.5",
|
"version": "2.1.5",
|
||||||
"resolved": "https://registry.npmjs.org/vuepress-plugin-container/-/vuepress-plugin-container-2.1.5.tgz",
|
"resolved": "https://registry.npmjs.org/vuepress-plugin-container/-/vuepress-plugin-container-2.1.5.tgz",
|
||||||
|
@ -26370,6 +26379,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"vuepress-plugin-code-copy": {
|
||||||
|
"version": "1.0.6",
|
||||||
|
"resolved": "http://192.168.88.248:8081/repository/npm-public/vuepress-plugin-code-copy/-/vuepress-plugin-code-copy-1.0.6.tgz",
|
||||||
|
"integrity": "sha512-FiqwMtlb4rEsOI56O6sSkekcd3SlESxbkR2IaTIQxsMOMoalKfW5R9WlR1Pjm10v6jmU661Ex8MR11k9IzrNUg=="
|
||||||
|
},
|
||||||
"vuepress-plugin-container": {
|
"vuepress-plugin-container": {
|
||||||
"version": "2.1.5",
|
"version": "2.1.5",
|
||||||
"resolved": "https://registry.npmjs.org/vuepress-plugin-container/-/vuepress-plugin-container-2.1.5.tgz",
|
"resolved": "https://registry.npmjs.org/vuepress-plugin-container/-/vuepress-plugin-container-2.1.5.tgz",
|
||||||
|
|
|
@ -15,5 +15,8 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vuepress": "^1.5.3"
|
"vuepress": "^1.5.3"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"vuepress-plugin-code-copy": "^1.0.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,5 +81,11 @@ module.exports = {
|
||||||
plugins: [
|
plugins: [
|
||||||
'@vuepress/plugin-back-to-top',
|
'@vuepress/plugin-back-to-top',
|
||||||
'@vuepress/plugin-medium-zoom',
|
'@vuepress/plugin-medium-zoom',
|
||||||
|
['vuepress-plugin-code-copy', {
|
||||||
|
backgroundTransition: false,
|
||||||
|
staticIcon: false,
|
||||||
|
color: '#de9502',
|
||||||
|
successText: 'Copied to clipboard.'
|
||||||
|
}]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
---
|
|
||||||
sidebar: auto
|
|
||||||
---
|
|
||||||
|
|
||||||
# Config
|
|
||||||
|
|
||||||
## foo
|
|
||||||
|
|
||||||
- Type: `string`
|
|
||||||
- Default: `/`
|
|
||||||
|
|
||||||
## bar
|
|
||||||
|
|
||||||
- Type: `string`
|
|
||||||
- Default: `/`
|
|
|
@ -131,7 +131,7 @@ end
|
||||||
-- Blocks until the turtle's fuel level is at least at the required level.
|
-- Blocks until the turtle's fuel level is at least at the required level.
|
||||||
local function refuelToAtLeast(requiredLevel, settings)
|
local function refuelToAtLeast(requiredLevel, settings)
|
||||||
refuelAll(settings)
|
refuelAll(settings)
|
||||||
while t.getFuelLevel < requiredLevel do
|
while t.getFuelLevel() < requiredLevel do
|
||||||
print(
|
print(
|
||||||
"[MS] Fuel level is too low. Level: " .. t.getFuelLevel() .. ". Required: " .. requiredLevel ..
|
"[MS] Fuel level is too low. Level: " .. t.getFuelLevel() .. ". Required: " .. requiredLevel ..
|
||||||
". Please add some of the following fuels:"
|
". Please add some of the following fuels:"
|
||||||
|
|
Loading…
Reference in New Issue