コード例 #1
0
def do_vertical_garden():    
    # set the ground
    castle_maker.fill_area(83,113,80,94,113,89, 'minecraft:glowstone')
    castle_maker.fill_area(84,113,81,93,113,88, 'minecraft:grass')
    castle_maker.set_block(87, 114, 83,'minecraft:sapling 2')
    castle_maker.set_block(87, 114, 86,'minecraft:sapling 2')
    castle_maker.set_block(91, 114, 83,'minecraft:sapling 2')
    castle_maker.set_block(91, 114, 86,'minecraft:sapling 2')
    castle_maker.set_block(90, 113, 82,'minecraft:water')
    castle_maker.set_block(90, 113, 86,'minecraft:water')
コード例 #2
0
def main():
    clear_area.wipe_all(x = 65, y = 63, z = -71, w = 80, h = 15, d = 49)  # TOK clear bottom left corner

    # TO TEST SAME SIZE WALLS
    # castle_maker.make_castle_walls(67,63,-67,30,4,34, 6)  # big wall
    # castle_maker.gate(x=78, y=63, z=-68, width=8, height=8, length=8)
    
    castle_maker.fill_area(70,62,-77,110,62,-34, 'minecraft:grass')
    
    # really tiny castle
    castle_maker.make_castle_walls(70,63,-67,34,4,32, 2)  # outer wall
    castle_maker.gate(x=81, y=63, z=-68, width=3, height=6, length=4)
    castle_maker.tower_building(x=78, y=62, z=-55, width=11, height=5, length=10, butt_height=0)
    castle_maker.make_castle_walls(78,67,-55,10,1,9, 0)  # top parapet
コード例 #3
0
def do_garden():    
    # set the ground
    castle_maker.fill_area(30,62,30,150,62,120, 'minecraft:dirt 2')

    # path from gate to castle door
    castle_maker.fill_area(85,62,30,95,62,75, 'minecraft:stone 6')
    castle_maker.fill_area(88,62,54,92,62,70, 'minecraft:stone 4')
    for z in range(54, 71, 4):
        castle_maker.set_block(87, 63, z,'minecraft:stone 4')
        castle_maker.set_block(93, 63, z,'minecraft:stone 4')
        castle_maker.set_block(87, 64, z,'minecraft:fence')
        castle_maker.set_block(93, 64, z,'minecraft:fence')
        castle_maker.set_block(87, 65, z,'minecraft:torch 0')
        castle_maker.set_block(93, 65, z,'minecraft:torch 0')

    # plant some trees near main path
    castle_maker.set_block(79, 63, 54,'minecraft:sapling 2')
    castle_maker.set_block(79, 63, 61,'minecraft:sapling 2')
    castle_maker.set_block(79, 63, 68,'minecraft:sapling 2')
    castle_maker.set_block(101, 63, 54,'minecraft:sapling 2')
    castle_maker.set_block(101, 63, 61,'minecraft:sapling 2')
    castle_maker.set_block(101, 63, 68,'minecraft:sapling 2')

    # front left corner
    castle_maker.fill_area(33,62,33,68,62,71, 'minecraft:grass')
    castle_maker.plant(x1=38,z1=47,x2=50,z2=59,y1=62, item='minecraft:carrots 3') # 'wheat', 
    castle_maker.plant(x1=38,z1=59,x2=50,z2=71,y1=62, item='minecraft:potatoes 3') # 'wheat', 
    castle_maker.plant(x1=52,z1=47,x2=64,z2=59,y1=62, item='minecraft:wheat 4') # 'wheat', 
    castle_maker.plant(x1=52,z1=59,x2=64,z2=71,y1=62, item='minecraft:pumpkin 2') # 'wheat', 

    # front right corner
    castle_maker.fill_area(112,62,33,142,62,71, 'minecraft:grass')
    castle_maker.plant(x1=115,z1=47,x2=127,z2=59,y1=62, item='minecraft:wheat 4') # 'wheat', 
    castle_maker.plant(x1=115,z1=59,x2=127,z2=71,y1=62, item='minecraft:potatoes 3') # 'wheat', 
    castle_maker.plant(x1=129,z1=47,x2=141,z2=59,y1=62, item='minecraft:carrots 4') # 'wheat', 
    castle_maker.plant(x1=129,z1=59,x2=141,z2=71,y1=62, item='minecraft:pumpkin 4') # 'wheat', 
コード例 #4
0
def do_castle():

    # main building- - multi layers
    castle_maker.tower_building(x=71, y=63, z=76, width=38, height=11, length=30, butt_height=7)
    castle_maker.make_castle_walls(70, 70,75, 40, 1,32, 0)  # TOK 

    castle_maker.tower_building(x=71, y=74, z=76, width=38, height=12, length=30, butt_height=6)
    castle_maker.make_castle_walls(70, 80,75, 40, 1,32, 0)  # TOK 

    castle_maker.tower_building(x=71, y=86, z=76, width=38, height=24, length=30, butt_height=12)
    castle_maker.make_castle_walls(70, 98,75, 40, 1,32, 0)  # TOK 

    castle_maker.tower_building(x=81, y=110, z=78, width=16, height=18, length=14, butt_height=2)  # front tower on top of main
    castle_maker.tower_building(x=73, y=110, z=93, width=10, height=22, length=10, butt_height=0)  # back right tower on top of main
    castle_maker.tower_building(x=97, y=110, z=93, width=10, height=22, length=10, butt_height=0)  # back left tower on top of main


    # merge 1st and 2nd floors
    castle_maker.fill_area(73,70,78,106,70,103, 'minecraft:air')
    # merge 2nd and 3rd floors
    castle_maker.fill_area(73,80,78,106,80,103, 'minecraft:air')
    
    # floor
    castle_maker.fill_area(72,63,77,109,63,105, 'minecraft:stone 4')
    
    # floor lighting (and roof of above floor using glowstones)
    castle_maker.tile_block(74, 63, 78, 106, 105, 5, 'minecraft:glowstone 0')
    castle_maker.tile_block(74, 74, 78, 106, 103, 5, 'minecraft:glowstone 0')
    castle_maker.tile_block(74, 86, 78, 106, 103, 5, 'minecraft:glowstone 0')
    castle_maker.tile_block(74, 98, 78, 106, 103, 5, 'minecraft:glowstone 0')
    castle_maker.tile_block(74, 110, 78, 106, 103, 5, 'minecraft:glowstone 0')
    
    castle_maker.main_door(x=90, y=63, z=75)  # coords for door are bottom centre - ornate stuff built out from there

    castle_maker.stairs_NS(x=88, z=87, width=4, y_base=64, y_top=75, step='minecraft:quartz_stairs 2', bannister='minecraft:quartz_block 2', step_spacing=1)

    # 2nd floor
    castle_maker.stairs_NS(x=74, z=90, width=2, y_base=75, y_top=87, step='minecraft:stone 4', bannister='minecraft:stone 4', step_spacing=1)
    castle_maker.stairs_NS(x=101, z=90, width=2, y_base=75, y_top=87, step='minecraft:stone 4', bannister='minecraft:stone 4', step_spacing=1)
    
    # 3rd floor 90,86,90 --> 98 
    castle_maker.stairs_NS(x=90, z=85, width=2, y_base=87, y_top=99, step='minecraft:quartz_stairs 2', bannister='minecraft:quartz_block 2', step_spacing=1)
    
    # 4th floor - 90 90 (y=98 -> 110
    castle_maker.stairs_NS(x=90, z=85, width=2, y_base=99, y_top=111, step='minecraft:quartz_stairs 2', bannister='minecraft:quartz_block 2', step_spacing=1)
コード例 #5
0
def stables():    
    # set the ground
    castle_maker.fill_area(115,60,35,129,62,43, 'minecraft:grass') # sunken stables
    castle_maker.fill_area(115,61,33,129,65,39, 'minecraft:planks 2 hollow') # sunken stables
    castle_maker.fill_area(116,62,36,128,64,42, 'minecraft:air') # sunken stables
    castle_maker.fill_area(115,63,40,115,63,46, 'minecraft:fence') 
    castle_maker.set_block(130,63,46, 'fence_gate 1')
    castle_maker.set_block(128,63,71, 'fence_gate')
    castle_maker.set_block(115,63,46, 'fence_gate 1')
    
    castle_maker.set_block(117,64,34, 'minecraft:torch 3') 
    castle_maker.set_block(122,64,34, 'minecraft:torch 3') 
    castle_maker.set_block(128,64,34, 'minecraft:torch 3') 
    
    castle_maker.set_block(120,62,34,'hay_block')
    castle_maker.set_block(118,62,35,'hay_block')
    castle_maker.set_block(123,61,41,'water')
    #castle_maker.set_block(121,62,40,'mob_spawner 0 replace {SpawnData:{id:EntityHorse}}')  # /setblock ~ ~ ~ mob_spawner 0 replace {SpawnData:{id:Zombie}}
    #castle_maker.set_block(121,62,40,'mob_spawner {SpawnData:{id:Horse}}')  # 	/setblock ~ ~ ~ mob_spawner 0 replace {SpawnData:{id:Zombie}}
    #  /setblock ~ ~ ~ mob_spawner 0 replace {id:EntityHorse, SpawnData: {Type:3, Tame:1}}
    # /summon EntityHorse 121 62 40 {Type:4,Tame:1}
    # /setblock 121 62 40 mob_spawner 0 replace {SpawnData:{id:EntityHorse}}   <-- this works in server, but leaves cage??

    
    # {Tame:1,Saddle:1,Attributes:[{Name:generic.movementSpeed,Base:1},{Name:horse.jumpStrength,Base:2}]}
    #castle_maker.set_block(121,62,40,'mob_spawner 0 replace {SpawnData:{id:EntityHorse},{Tame:1,Saddle:1,Attributes:[{Name:generic.movementSpeed,Base:1},{Name:horse.jumpStrength,Base:2}]} }') 
    
    # SERVER COMMAND - works
    # /setblock 121 62 40 mob_spawner 0 replace {SpawnData:{id:EntityHorse}}
    
    
    # Chickens and Cows on West side
    castle_maker.fill_area(50,60,33,65,62,44, 'minecraft:grass') # sunken stables
    castle_maker.fill_area(50,61,33,66,65,39, 'minecraft:planks 2 hollow') # sunken stables
    castle_maker.fill_area(51,62,34,65,64,42, 'minecraft:air') # sunken stables
    
    castle_maker.fill_area(66,63,40,66,63,47, 'minecraft:fence') 
    castle_maker.set_block(49,63,46, 'fence_gate 1')
    castle_maker.set_block(51,63,47, 'fence_gate')
    castle_maker.set_block(65,63,47, 'fence_gate')
    
    castle_maker.set_block(52,64,34, 'minecraft:torch 3') 
    castle_maker.set_block(58,64,34, 'minecraft:torch 3') 
    castle_maker.set_block(64,64,34, 'minecraft:torch 3') 
    
    castle_maker.set_block(56,62,36,'hay_block')
    castle_maker.set_block(62,62,38,'hay_block')
    castle_maker.set_block(61,61,41,'water')