-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cant break leaves #5
Comments
Likely need adapting for mineflayer 2.0 (ie using Minecraft data directly
instead of mineflayer.*)
Feel free to do a PR for it (or I'll do it but later)
…On Sun, Feb 12, 2017, 05:04 TheTechPony ***@***.***> wrote:
------ TheTechPony: lumberjack
search for id: 17
founded log with id 17
Block {
type: 17,
metadata: 0,
light: 0,
skyLight: 0,
biome:
Biome {
id: 0,
color: 112,
name: 'Ocean',
height: undefined,
rainfall: 0.5,
temperature: 0.5 },
position: Vec3 { x: -25400, y: 64, z: 19134 },
name: 'log',
hardness: 2,
displayName: 'Wood',
boundingBox: 'block',
diggable: true,
material: 'wood',
harvestTools: undefined,
drops: [ { drop: 17 } ],
signText: undefined,
painting: undefined }
C:\Program Files\nodejs\node_modules\mineflayer-scaffold\index.js:365
var toolMultipliers = materials[material];
^
TypeError: Cannot read property 'leaves' of undefined
at equipToolToBreak (C:\Program
Files\nodejs\node_modules\mineflayer-scaffol
d\index.js:365:36)
at breakBlock (C:\Program
Files\nodejs\node_modules\mineflayer-scaffold\inde
x.js:321:11)
at moveInDirection (C:\Program
Files\nodejs\node_modules\mineflayer-scaffold
\index.js:278:7)
at Object.increaseX (C:\Program
Files\nodejs\node_modules\mineflayer-scaffol
d\index.js:110:7)
at changeState (C:\Program
Files\nodejs\node_modules\mineflayer-scaffold\ind
ex.js:249:25)
at improveX (C:\Program
Files\nodejs\node_modules\mineflayer-scaffold\index.
js:259:42)
at Object.improvePosition (C:\Program
Files\nodejs\node_modules\mineflayer-s
caffold\index.js:106:7)
at changeState (C:\Program
Files\nodejs\node_modules\mineflayer-scaffold\ind
ex.js:249:25)
at C:\Program Files\nodejs\node_modules\mineflayer-scaffold\index.js:76:9
at stop (C:\Program
Files\nodejs\node_modules\mineflayer-navigate\index.js:1
38:7)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/ACPN_v8pe4EVWXrmcbZbqanFikgXutnNks5rboTBgaJpZM4L-Yp8>
.
|
This is still an issue for me, I can't break anything using this plugin. C:\Program Files\nodejs\node_modules\mineflayer-scaffold\index.js:365 TypeError: Cannot read property 'wood' of undefined |
Okay so I've found how to fix it but when I apply the fix I get this error The fix
|
nvm I fixed it. forgot to require the module. |
Can you make a PR and reopen the issue until it's merged ? |
I don't know how to make a pull request so I'll just post my solution here. index.js |
you can just press edit on that page https://github.com/andrewrk/mineflayer-scaffold/blob/master/index.js to make a pull request |
Done. I messed up the first 3 so just ignore those |
I have this exact same issue and I have been unable to fix it. |
I did not really need it to select the right tool, so I just replaced This is still a problem though. |
------ TheTechPony: lumberjack
search for id: 17
founded log with id 17
Block {
type: 17,
metadata: 0,
light: 0,
skyLight: 0,
biome:
Biome {
id: 0,
color: 112,
name: 'Ocean',
height: undefined,
rainfall: 0.5,
temperature: 0.5 },
position: Vec3 { x: -25400, y: 64, z: 19134 },
name: 'log',
hardness: 2,
displayName: 'Wood',
boundingBox: 'block',
diggable: true,
material: 'wood',
harvestTools: undefined,
drops: [ { drop: 17 } ],
signText: undefined,
painting: undefined }
C:\Program Files\nodejs\node_modules\mineflayer-scaffold\index.js:365
var toolMultipliers = materials[material];
^
TypeError: Cannot read property 'leaves' of undefined
at equipToolToBreak (C:\Program Files\nodejs\node_modules\mineflayer-scaffol
d\index.js:365:36)
at breakBlock (C:\Program Files\nodejs\node_modules\mineflayer-scaffold\inde
x.js:321:11)
at moveInDirection (C:\Program Files\nodejs\node_modules\mineflayer-scaffold
\index.js:278:7)
at Object.increaseX (C:\Program Files\nodejs\node_modules\mineflayer-scaffol
d\index.js:110:7)
at changeState (C:\Program Files\nodejs\node_modules\mineflayer-scaffold\ind
ex.js:249:25)
at improveX (C:\Program Files\nodejs\node_modules\mineflayer-scaffold\index.
js:259:42)
at Object.improvePosition (C:\Program Files\nodejs\node_modules\mineflayer-s
caffold\index.js:106:7)
at changeState (C:\Program Files\nodejs\node_modules\mineflayer-scaffold\ind
ex.js:249:25)
at C:\Program Files\nodejs\node_modules\mineflayer-scaffold\index.js:76:9
at stop (C:\Program Files\nodejs\node_modules\mineflayer-navigate\index.js:1
38:7)
The text was updated successfully, but these errors were encountered: