Baritone AI pathfinder

Baritone AI pathfinder

72.7k Downloads

Blocks with block data don't work in schematics above 1.12.2

corsarusso opened this issue ยท 8 comments

commented

Some information

Operating system: Windows 10
Java version: Version 8 (build 1.8.0_241-b07)
Minecraft version: 1.15.2
Baritone version: 1.2? (the one that's from https://www.youtube.com/watch?v=j1qKtCZFURM)
Forge mods (if used): none

Basically the game lags out for a seconds and I get the following message but nothing actually builds:
image

Surprisingly, the exact same schematic (except it's made out of obsidian) works perfectly.
https://drive.google.com/file/d/1fWJJq8yzLa0fqMdSiYaUiz10MSv2ieMJ/view?usp=sharing

This is probably because obsidian does not have block data, where as planks do. It also doesn't work for normal planks as well. (which have block data of 0)

Exception, error or logs

latest.log

How to reproduce

Load baritone 1.15.2
Download wood4.schematics
Download here: https://drive.google.com/file/d/1HxgL3FEPHZVjdgERSIB-D_wB3Rkz68Wn/view?usp=sharing

Enter build command

Modified settings

allowinventory:true
allowParkourPlace:true
buildInLayers:True
chatControl:false
LegitMine:true
mobAvoidanceRadius:20

Final checklist

  • I know how to properly use check boxes
  • I have included the version of Minecraft I'm running, baritone's version and forge mods (if used).
  • I have included logs, exceptions and / or steps to reproduce the issue.
  • I have not used any OwO's or UwU's in this issue.
commented

I've seen this as well (See issue #1519) I've tracked it down to schematics that use blocks that have data elements (for example wood and in my case concrete)

commented

cubical.xyz is great for modifying schematic files and you easily replace the obsidian with planks

commented

cubical.xyz is great for modifying schematic files and you easily replace the obsidian with planks

While it does work for replacing it, the baritone still refuses to build the schematic. I decided to build it out of cobblestone instead since there is no block data associated with that.

commented

@royaljjj could you change the title to something like "Blocks with block data don't work in schematics above 1.12.2" (as iirc 1.12.2 works fine with these)

Yep changed

commented

Yeah that's what I did. Just build it out of something without block data and just use a /fill command on the server to replace it to the end result.

Unfortunately, I'm unable to do that because it's a survival server. Otherwise I would've pasted it with world edit which has no issues from what I can gather.

commented

Yeah that's what I did. Just build it out of something without block data and just use a /fill command on the server to replace it to the end result.

commented

@royaljjj could you change the title to something like "Blocks with block data don't work in schematics above 1.12.2" (as iirc 1.12.2 works fine with these)

commented

Metadata is not preserved with the legacy mcedit format on 1.13+:

this.states[x][z][y] = block.getDefaultState();

Use sponge format schematic created by modern WorldEdit or have default block type in inventory.