minecraftpi吧 关注:1,502贴子:2,564
  • 14回复贴,共1

[插件发布]Super Flat World Creater

只看楼主收藏回复

一楼喂熊


IP属地:陕西1楼2016-05-14 17:35回复
    二楼喂吧友@酸辣粉665 @jiahaozhe @精灵谱尼


    IP属地:陕西2楼2016-05-14 17:37
    收起回复


      IP属地:陕西3楼2016-05-14 17:38
      回复
        顾名思义,这个插件是用来创建超平坦世界的,不多说,链接http://pan.baidu.com/s/1nuSLCet


        IP属地:陕西4楼2016-05-14 17:39
        回复
          -----------------重要!----------------
          这个插件有一个明显的不足,创造超平坦世界以后退出世界重新进入这个存档会导致游戏卡死,所以退出游戏后不要进入这个插件创造的超平坦世界,当然,希望有人可以帮我解决这个问题,楼楼感激不尽


          IP属地:陕西5楼2016-05-14 17:42
          回复
            源码,注意,这段源码仅供参考,不能复制粘贴弄成文件执行,因为这个插件有大量的缩进,很难调
            from mcpi import minecraft
            from time import sleep
            from mcpi import block
            mc=minecraft.Minecraft.create( )
            print( '\033[1;37;40m' ),
            print( "Super Flat World Creater V0.0.1" )
            print( '\033[1;37;40m' ),
            print( " by KirCute" )
            mc.postToChat( "Super Flat World Creater" )
            mc.postToChat( " by KirCute" )
            print( '\033[0m' ),
            print( "[" ),
            print( '\033[1;31;40m' ),
            print( "Warning" ),
            print( '\033[0m' ),
            print( "] There is a bug in this version." )
            print( '\033[0m' ),
            print( "[" ),
            print( '\033[1;33;40m' ),
            print( "Question" ),
            print( '\033[0m' ),
            firstYN = raw_input( "] Are you really want to create the flat world? [Y/N]" )
            if not ( ( firstYN == "Y" ) or ( firstYN == "y" ) ) :
            print( '\033[0m' ),
            print( "[" ),
            print( '\033[1;36;40m' ),
            print( "Info" ),
            print( '\033[0m' ),
            print( "] Mission has been cancelled." )
            mc.postToChat( "Mission has been cancelled." )
            sleep( 0.1 )
            exit( )
            print( '\033[0m' ),
            print( "[" ),
            print( '\033[1;33;40m' ),
            print( "Question" ),
            print( '\033[0m' ),
            secondYN = raw_input( "] It's irreversible. Are you reallly want to continue? [Y/N]" )
            if not ( ( secondYN == "Y" ) or ( secondYN == "y" ) ) :
            print( '\033[0m' ),
            print( "[" ),
            print( '\033[1;36;40m' ),
            print( "Info" ),
            print( '\033[0m' ),
            print( "] Mission has been cancelled." )
            mc.postToChat( "Mission has been cancelled." )
            sleep( 0.1 )
            exit( )
            print( '\033[0m' ),
            print( "[" ),
            print( '\033[1;36;40m' ),
            print( "Info" ),
            print( '\033[0m' ),
            print( "] Started." )
            mc.postToChat( "Begin creating flat world." )
            buildingHigh = 63
            while buildingHigh >= 40 :
            print( '\033[0m' ),
            print( "[" ),
            print( '\033[1;36;40m' ),
            print( "Info" ),
            print( '\033[0m' ),
            print( "] Building " + str( buildingHigh ) + " layer." )
            mc.postToChat( "Building " + str( buildingHigh ) + " layer." )
            mc.setBlocks( -256, buildingHigh , -256 , 256 , buildingHigh , 256 , block.AIR )
            buildingHigh = buildingHigh - 1
            sleep( 1 )
            mc.setBlock( 0 , 40 , 0 , block.STONE )
            mc.player.setPos( 0 , 41 , 0 )
            while buildingHigh >= -59 :
            print( '\033[0m' ),
            print( "[" ),
            print( '\033[1;36;40m' ),
            print( "Info" ),
            print( '\033[0m' ),
            print( "] Building " + str( buildingHigh ) + " layer." )
            mc.postToChat( "Building " + str( buildingHigh ) + " layer." )
            mc.setBlocks( -256, buildingHigh , -256 , 256 , buildingHigh , 256 , block.AIR )
            buildingHigh = buildingHigh - 1
            sleep( 1 )
            print( '\033[0m' ),
            print( "[" ),
            print( '\033[1;36;40m' ),
            print( "Info" ),
            print( '\033[0m' ),
            print( "] Building " + str( buildingHigh ) + " layer." )
            mc.postToChat( "Building " + str( buildingHigh ) + " layer." )
            mc.setBlocks( -256, buildingHigh , -256 , 256 , buildingHigh , 256 , block.GRASS )
            buildingHigh = buildingHigh - 1
            sleep( 1 )
            while buildingHigh >= -63 :
            print( '\033[0m' ),
            print( "[" ),
            print( '\033[1;36;40m' ),
            print( "Info" ),
            print( '\033[0m' ),
            print( "] Building " + str( buildingHigh ) + " layer." )
            mc.postToChat( "Building " + str( buildingHigh ) + " layer." )
            mc.setBlocks( -256, buildingHigh , -256 , 256 , buildingHigh , 256 , block.DIRT )
            buildingHigh = buildingHigh - 1
            sleep( 1 )
            print( '\033[0m' ),
            print( "[" ),
            print( '\033[1;36;40m' ),
            print( "Info" ),
            print( '\033[0m' ),
            print( "] Building " + str( buildingHigh ) + " layer." )
            mc.postToChat( "Building " + str( buildingHigh ) + " layer." )
            mc.setBlocks( -256, buildingHigh , -256 , 256 , buildingHigh , 256 , block.BEDROCK )
            sleep( 1 )
            print( '\033[0m' ),
            print( "[" ),
            print( '\033[1;32;40m' ),
            print( "OK" ),
            print( '\033[0m' ),
            print( "] Mission has been completed." )
            mc.postToChat( "Mission has been completed." )
            sleep( 0.1 )
            mc.setBlock( 0 , 40 , 0 , block.AIR )
            print( '\033[1;37;40m' ),
            print( "Super Flat World Creater V0.0.1" )
            print( '\033[1;37;40m' ),
            print( " by KirCute" )
            mc.postToChat( "Super Flat World Creater" )
            mc.postToChat( " by KirCute" )
            print( '\033[1;37;40m' ),
            print( "Thanks for you use." )
            mc.postToChat( "Thanks for you use." )
            print( '\033[1;31;40m' ),
            print( "DON'T REOPEN THIS WORLD! A BUG IS IN IT!" ),
            print( '\033[0m' )
            mc.postToChat( "DON'T REOPEN THIS WORLD! A BUG IS IN IT!" )
            sleep( 0.1 )


            IP属地:陕西6楼2016-05-14 17:44
            回复
              谜之英语,A BUG IS IN IT为啥不换成BUGGY


              IP属地:美国7楼2016-05-15 12:46
              收起回复