|
Post by lilleman on Jan 29, 2012 5:23:08 GMT -7
This is my custom lexicon file, almost complete. It will save you a lot of time (testing blocks orientation is very long):
' =empty 'empty '..=clear 'Clear CC=1 'smoothstone gr=2 'Grass dd=3 'Dirt cc=4 'Cobblestone ww=5 'Planks
x1=6,0 'sapling oak x2=6,1 'sapling pine x3=6,3 'sapling birch
br=7 'BedRock
wa=9 ' water la=11 'Lava
sa=12 'Sand GR=13 'gravel
uu=17,0 'Wood Oak up=17,1 ' pine ub=17,2 ' birch
L1=18,0 'Leaves Oak L2=18,1 'Leaves Pine L3=18,2 'leaves birch
gg=20 'Glass ll=22 'lapis lazuli Block
d1=23,1,3 ' dispenser d4=23,2,3 ' d3=23,3,3 ' d2=23,4,3 '
SS=24 'sandstone
N0=25,0 'Noteblock, meta don't seems to work here
B1=26,1,8 'bed B2=26,2,8 'bed B3=26,3,8 'bed B4=26,4,8 'bed
pr=27,0 'Powered rail dr=28 'Detector Rail
S5=29,0,0 'Sticky piston S4=29,1,0 S3=29,2,3 S2=29,3,3 S1=29,0,3 S0=29,1,3
we=30 'Web
g1=31,2 'fern g2=31,1 'tall grass g3=31,3 'dead bush
p5=33,0,0 'piston p4=33,1,0 p3=33,2,3 p2=33,3,3 p1=33,0,3 p0=33,1,3
oo=35,0 ' white oo oa=35,1 ' Orange oa om=35,2 ' magenta om ou=35,3 'lightblue ou oy=35,4 ' yellow oy oe=35,5 ' light green oe oi=35,6 ' pink oi of=35,7 ' Dark grey of ol=35,8 ' light grey ol on=35,9 ' cyan on op=35,10 ' purple op ob=35,11 ' blue ob ow=35,12 ' brown ow od=35,13 ' dark green od or=35,14 ' red or oc=35,15 ' black oc
fy=37 'flower yellow fr=38 'flower red
m1=39 'Mushroom1 m2=40 'Mushroom2
gb=41 ' gold block ii=42 ' iron block
=C=43,0 ' double slab =S=43,1 =W=43,2 =c=43,3 =b=43,4 =B=43,5
_C=44,5 ' half height block (slab) _S=44,1 _w=44,2 _c=44,3 _b=44,4 _B=44,5
bb=45 'Brick block
tb=46 'TNT
bs=47 'book shelf
mc=48 'mossycobblestone
OB=49 'Obsidian
t1=50, 1,4 ' torches t# t2=50, 2,4 ' torches t# t3=50, 3,4 ' torches t# t4=50, 4,4 ' torches t# t5=50, 5,4 ' torches t#
fi=51 'Fire
M0=52,0 'MobSpawner,, meta don't seems to work here
v1=53,0,2 'wooden stairs v2=53,1,2 v3=53,2,2 v4=53,3,2
c1=54,1,3 'Chest c2=54,0,0 c3=54,3,3 c4=54,0,3
rs=55 'redstone (wire)
DB=57 'Diamond block
ct=58 'workbench
se=59,0 'seeds
wd=60 'worked Dirt
f1=61,1,3 ' (furnace, eventual meta should be 2 if build facing north) f2=61,2,3 ' (5) f3=61,3,3 ' (3) f4=61,4,3 ' (4)
|4=64,0,1 'Door |2=64,0,1 |3=64,2,1 |1=64,1,1
l1=65, 1,3 ' ladder l# l2=65, 2,3 ' ladder l# l3=65, 3,3 ' ladder l# l4=65, 4,3 ' ladder l#
ra=66 'Rail
^1=67,0,2 'CobbleStairs ^2=67,1,2 ^3=67,2,2 ^4=67,3,2
s1=68,1,3 ' wallsign # s2=68,2,3 ' wallsign # s3=68,3,3 ' wallsign # s4=68,4,3 ' wallsign #
z1=69,1,4 'lever z2=69,2,4 z3=69,3,4 z4=69,4,4 z5=69,5,4
sp=70 'Stone plate
i1=71,1,6 'iron door (don't work) i2=71,2,4 i3=71,3,4 i4=71,4,6
wp=72 'wooden plate
r1=76,1,4 'Redstone torches r2=76,2,4 r3=76,3,4 r4=76,4,4 r5=76,5,4
y3=77,1,4 'Buttons y2=77,2,4 y4=77,3,4 y1=77,4,4
sl=78 'snow layer ic=79 'Ice sn=80 'Snow
ca=81 'Cacti
cl=82 'Clay
SC=83 'SugarCane
jb=84 'Jukebox
fp=85 'Fencepost
pu=86 'Pumpkin
nr=87 'NetherRack
Ss=88 'Soulsand
lg=89 ' glowstone block
PO=90,1,0 'portal
lp=91 'Lighted Pumpkin
ck=92 'Cake
R3=93,1,1 'redstone repeater R4=93,2,1 R1=93,3,1 R2=93,4,1
T1=96, 1,6 ' trapdoor T# T2=96, 2,6 ' trapdoor T# T3=96, 3,6 ' trapdoor T# T4=96, 4,6 ' trapdoor T#
sb=98,0 'Stonebrick sm=98,1 'MossyStonebrick sc=98,2 'CobbleBrick
if=101 'iron fence
gp=102 ' glass pane
wm=103 'WaterMelon
n1=106, 1,7 ' vines v# n2=106, 2,7 ' vines v# n3=106, 3,7 ' vines v# n4=106, 4,7 ' vines v#²
F1=107, 2,1 'fence gate F2=107, 1,1 'fence gate
@1=108,0,2 'brick stairs @2=108,1,2 @3=108,2,2 @4=108,3,2
#1=109,0,2 ' stonebrick stairs #2=109,1,2 #3=109,2,2 #4=109,3,2
my=110 'Mycelium li=111 'LilyPad SB=112 'soulstone brick sf=113 'soulstone fence
[1=114,0,2 'soulstone stairs [2=114,1,2 [3=114,2,2 [4=114,3,2
nw=115,0 'Nether wart
et=116 'enchantment table
'Those are MineColony's blocks, ID may change if some other mods are installed: MC=130 'Miner Chest WC=131 'WareHouse Chest FC=132 'Farmer Chest BC=133 'Bank Chest BB=134 'Builder Block CB=135 'Citizen chest TC=136 'TownHall chest (not recommended, you should have only one townhall chest) MB=137 'Market Block LC=138 'Lumberjack chest WB=139 'Warning Bell HC=140 'Hunter chest
|
|
|
Post by valhar2000 on May 26, 2012 5:11:04 GMT -7
I've tried to add a new block to the lexicon, but I can't do it. I think the problem is the metadata for the block: I can't get it right. When I scan a particular building, I get several errors related to unknown blocks. One of the is: Unknown Block 93 meta 6The lines in the default lexicon related to this block ID are the following: R3=93,1,1 'redstone repeater R4=93,2,1 R1=93,3,1 R2=93,4,1I have tried to add each of the the following lines, making sure to quite the game completely and start it again before each try: - R6=93,6
- R6=93,6,1
- R6=93,1,6
None of those work. Instead of getting the code R6 when I scan the building, I just keep getting the same error in the floorplan. How should I write the new line in the lexicon to ensure that the game will recognize the block and insert a proper code for it in the floorplan?
|
|
|
Post by valhar2000 on Jun 29, 2012 0:41:37 GMT -7
Problem solved!
It turns out that there are 2 lexicon files in the Floorplan folder: default.lexicon and scandefault.lexicon
I was adding entries to the 1st of those 2 files, but the Builder's scan function was using the 2nd, so none of my new entries were being used at all. Now that I've figured this out, I've been able to add new entries, and they all work.
In case anyone is wondering, when I get a message of the sort:
Unknown Block XX meta Y
adding an entry to the lexicon file like this one:
ZZ=XX,Y
will do the job. I have not needed to add more than one piece of meta-data for each new entry. So far, I have added redstone repeaters, sticky pistons, flowing water, and more, and they all work when the Builder creates the building.
That said, there are a few things that are not placed correctly, like stonebrick stairs, switches and buttons: they are placed, but their orientation will not match the orientation of the corresponding block in the original scanned building.
|
|